Tuesday, May 6, 2008

How To Treat Pitted Acne Scars

Create users with administrative privileges

Users sudoers. WORK UNIT No. 5

When installing the system, only the user created during installation can perform administrative tasks, always run the command sudo . If we do not execute the order sudo continuously, you can run sudo su once, in each session, and , since then, performing administrative tasks.

If we use the user root you must enable it as described in the entry Ubuntu Linux. Enable account root user in this blog.

For safety, it is not appropriate to initiate a session with the user root to work normally. It is safer to start a session with another user and run the command sudo or sudo su when you want to perform administrative tasks.

When creating new users, they can not perform administrative tasks with the order sudo, because only users included in group admin may execute the order sudo to manage system. This configuration is done in the file / etc / sudoers , whose contents are shown below:

# / 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.
# Host alias specification # User alias specification

# Cmnd alias specification # Defaults

Defaults! Lecture, tty_tickets,! Fqdn # User

privilege specification root ALL = (ALL) ALL # Members of the
group admin May gain root privileges
% admin ALL = (ALL) ALL

The last line of this file is indicating that all users group members admin can perform administrative tasks with the order sudo .

If we consult the file / etc / group , which is the file that contains the groups created, and its members, created in the system, we'll see a line similar to this:

admin: x: 117: Coralie, root

This line indicates that users coralie and root are the only members of the group users admin and, therefore, only these users can perform administrative tasks with the order sudo .

To include a user in the group admin , you can run the command adduser user admin where user is the account you want to add the group admin . The following lines show the output of this command:

servidor2dai root @: ~ # adduser user admin

Adding user 'user' to group 'admin' ...

Done.

If we look at the contents of / etc / group , see the following line:

admin: x: 117: Coralie, user

these lines we note that the user named user has been added to the group admin and, therefore, may perform administrative tasks with the order sudo .


0 comments:

Post a Comment