How to Add New Users to Linux
Linux is an operating system with a tremendous amount of functionality for both casual users and adept computer wizards. Using any version of Linux, it's possible to manipulate the OS right down to the the overall layout of the GUI. It's also easy to serve as a system administrator and add or remove new users whenever you need.
Instructions
-
-
1
Add a new user with the "adduser" command. The "user" command requires both the command itself as well as the name of the user account you wish to add. Thus you would type "adduser john" to create a user account named "john."
-
2
Note the root directory for all new user accounts are set to default to the "/home" directory. For example, using the "adduser john" command would default the "john" account to the "/home/john" directory.
-
-
3
Change a user's home directory using the "-d" command line parameter, followed by the new home directory. You could set the "john" account to the home directory /home/john_jane by typing "adduser -d/home/john_jane john."
-
4
Protect a user account with a password using the "-p" command line parameter. You will be prompted to retype the password once you've pressed "Enter," but type the password into the initial console command: "adduser -p1234 john" creates the user "john" who has a password of "1234."
-
5
Add a user to multiple groups in Linux using the "-g" and "-G" commands. The "-g" parameter is responsible for adding a user to her primary group, while the "-G" command adds the user to additional groups beyond the primary group. Commas should be used after each subsequent group to separate them on the command line ("-G exec,business,mgmt").
-
6
Provide comments within a user account to make them clearer to administrators. Comments are enabled using the "-c" command line parameter. Using more than one word in a comment requires the use of parentheses, while single words do not. For example, "adduser -c "John Smith" john" adds the comment "John Smith" to the user account and will be listed under the comments section of any user search.
-
1
Tips & Warnings
Add users to Linux using easy to remember usernames. If your Linux OS is being used at a business, a good standard is the first letter of the first name and the full last name ("j_smith123") or even just "John Smith," for example.
Ensure you include a password for new users in order to protect new accounts from unauthorized intrusion. A default password can be created by you and the new users can then change their passwords to whatever suits them later.