Académique Documents
Professionnel Documents
Culture Documents
system.
The root users account is stored in the directory /root.
a computer system.
Linux is a multi-user operating system identified by a user ID and
Contd
system.
The root user has the rights to edit or modify and delete user accounts. The root user sets the password aging policy to protect a user account. The root user maintains the user accounts in the /home directory
Contd
The root user should develop a test plan for each change in the system
Contd
sharing protocol.
Contd
create it.
So the system administrators will plan convenient methods to secure
The /etc/passwd file that contains information about every user in the system can be hand-edited to add a user.
Contd
Using Commands
A new user is created or added by using the command-line utility
useradd.
The useradd command is located in the /usr/sbin directory. A new user is added into the system by typing:
Contd
system.
The /etc/passwd file consists of information on user and system
accounts.
The rights to access /etc/passwd, has to be 644. An entry into the file is in a defined syntax
be created.
The name of the user private group is same as the username and has the
The syntax is: usermod [options] username The following options can be used: -c <comment>
Click on delete.
For example: userdel sam deletes the user with the username, sam.
If it is required to remove the user account along with its home directory,
The syntax is userdel r username For example: userdel r sam will delete the user account sam along with its home directory.
Lab Exercises
In this lab you have to use useradd, usermod, and userdel commands
to add, modify and delete user account by performing the following steps.
Change password for John to 123abcABC Try to login with John Delete the John account so that its home directory also removed.
set, and groups are deleted. Groups as in the Red Hat User Manager
Contd
or by using groupadd.
To delete or remove groups, groupdel is used. The syntax is: # groupdel groupname To change the name of the group, groupmod can be used. The syntax is: # groupmod n newname oldname
system administrators .
Password aging prevents an intruder using the cracked password only
policy of an organization.
The minimum period of time also has to be set for a password to be in
use.
The syntax is # chage [options] username
Contd
Go to the Main Menu Button => System Settings => Users & Groups Click on the Users tab, select the user from the user list, and click Properties from the button menu Then click the Password Info tab and enter Days before change required
An editor and syntax checker, visudo edits the file /etc/sudoers. sudo is easy to configure and is used in a straightforward syntax.
Contd
Conclusion
Summary A root user is a user who has access to all the resources that are restricted to other users.
A new user account is managed in the Linux database system by using command utilities or graphical front-end. sudo (superuser do) is a program which can be used by normal users to execute programs as root user