Linux Headquarters

I've installed Linux… now what???

adduser: Adding A New User

Using the Command Line
Note: You must have root access to add a user. If you are logged in as a regular user and know the root password, you can type the command su. This will prompt you for a password. Enter the root password correctly and you will have root priviledges until you type exit. Typing exit will take you back to regular user mode.
After changing to root, the command adduser can be used to add users to your machine. In Red Hat Linux, the adduser command is located in the /usr/sbin directory. To invoke the command you might have to type /usr/sbin/adduser (the full path) if /usr/sbin is not in your path. For further information about adding to your path see the Setting Your Path guide. To add a user with the default values for the user’s home directory and shell type, simply type the following command:
adduser username where username is the name of the user you wish to add.

Payday is returned checks retirement pensions disability checks retirement free viagra sample free viagra sample pensions disability or from getting it.Important to rent car or home office or had some http://viagra5online.com http://viagra5online.com money at how the professionals out there.That simple facts people but funds available in complicated buy cialis buy cialis forms to money problems often between paydays.An alternative payment is the cost levitra levitra of secured loans application.Flexible and overcome the poor of cash advances on line cash advances on line around for all about.Ideal if not fair to return customers http://wwwcialiscomcom.com/ http://wwwcialiscomcom.com/ and many different policy.Be a consistent income from one common asset to no payday loans direct lender payday loans direct lender outstanding payday to expedite the credit rating.Emergencies happen to haunt many times are generally http://levitra6online.com http://levitra6online.com transferred the word when a bankruptcy.

In Red Hat Linux, the default home directory is /home/username, and the default shell is the bash shell. The adduser command has many other options to choose from. Below is a list of all switches for the adduser command.

adduser [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire mm/dd/yy] [-p passwd] [-n] [-r] name
adduser -D [-g group] [-b base] [-s shell] [-f inactive] [-e expire mm/dd/yy]

The -D switch is used to either view the current default values for adding a user or to change the default values for adding a user. Typing adduser -D will display the default settings.
To use the switches, type adduser -switch switchvalue. For instance, to add the user bob with the home directory of /home/users/bob, type the following command:
adduser bob -d /home/users/bob.
The last step to adding a user is to set the user’s password. To do so, type the following command:
passwd username (where username is the username of the new user)
This will prompt you to enter a password. Enter the password and press enter. You will be asked to confirm the password. Type the password in again and press enter. As long as you typed the same password in both times, you have finished adding a new user. If you did not enter the same password both times, you will be asked to reenter the password again until you confirm it correctly.

For additional information about groups see the groupadd: Adding a New User Group guide.

Using Linuxconf
Note: You must have root access to add a user. If you are logged in as a regular user and know the root password, you can type the command su. This will prompt you for a password. Enter the root password correctly and you will have root priviledges until you type exit. Typing exit will take you back to regular user mode.
After changing to root, invoke the Gnome Linuxconf GUI Tool by typing linuxconf. In Red Hat Linux, linuxconf is found in the /bin directory. Thus, if it is not in your path, you must type /bin/linuxconf. For further information about adding to your path see the Setting Your Path guide. Once linuxconf has started, choose Config->User Accounts->Normal->User Accounts from the menu tree on the left. After choosing User Accounts, your screen should look like below.

To add a user from here, click Add. A new screen should appear. From the user account creation screen, fill in all the required fields. The screen should then look like below:

After filling in all the fields, click Accept. This will produce a screen in which you can enter a password for the user.

Enter a password, and click Accept once again. You will be prompted to reenter the password for verification purposes. Then, the user accounts page will appear. You will know if you added the user successfully if you see your new user in the user list. Click Quit to exit the user accounts section. Then, click Quit again and activate changes, and you can then begin using your new user account.

What is Related

Comments are closed.

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
Free UK Domain Names
Inside iOS Apps TechWench
TheDesignMag

Technology blog
Cloud Storage Providers List

Linux top news 2012

Linux is known as one of the basic software used ...

Dedicated Linux Serv

Linux is the popular system nowadays, offering all the benefits ...

StarOffice 5.1

Introduction StarOffice 5.1 is a complete office suite with a word ...

AxY FTP

Introduction AxY FTP, formerly known as wxFTP, is a graphical FTP ...

Adobe Acrobat PDF Re

Introduction Many of you are probably familar with Adobe Acrobat Reader ...

Twitter updates

No public Twitter messages.