Managing Users and Groups from the Command Line

Although linuxconf gives you the option of having a GUI admin tool for managing users and groups, you can also manage users and groups from the command line. This is something Linux is pretty famous for.

Adding Users

The useradd command is a command-line utility that you can use to create a new user or to update an existing user. To add new user Barney Rubble to the system, simply su to root and type:

							[root@cartoons]# useradd -c "Barney Rubble" -d /home/brubble brubble
						

Note

If you have permission problems or if the command is not found, you may want to make sure that you issue a su - command to obtain a root login shell.

The -c option is the full name of the person. The -d option is the home ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.