sudoers file location 1

sudoers file location

/etc/sudoers

Here is what the above code is Doing:
1. Create a new user called ‘bob’
2. Add ‘bob’ to the ‘sudo’ group
3. Create a new file called ‘/etc/sudoers.d/bob’
4. Add the following line to the file: ‘bob ALL=(ALL) NOPASSWD:ALL’

Similar Posts