Pages

Thursday, November 29, 2007

Quick how-to sudoers file ubuntu

sudoers file to give permission to some users to act as if they were root.


To edit it, use the command

# visudo /etc/sudoers

You will see a file more or less like this.

 

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL



As you can see there is basically one line

root ALL=(ALL) ALL

This lines means that the user root can execute from ALL terminals, acting as ALL (any) users, and run ALL (any) command.

1 comment:

Diabolic Preacher said...

how do you add a user to the sudoers file...your howto is barely useful without it