Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-28-2008, 12:46 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
"To add a new user account, log in to the root account" how do i do this (im new)

i dont know how to do this. I am using xandros so i dont now if it is even possible. if so, when i try to open a root shell it says password:. text doesnt show when i enter it. when enter is pressed, it returns to the user/home> shell. damn im a newb.
Old 12-28-2008, 12:51 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
When you see a # you are root

repo@cannabis:~$ su

whoami also gives you some indication

Or you could use sudo
sudo useradd

Last edited by repo; 12-28-2008 at 12:52 PM.
Old 12-28-2008, 02:29 PM   #3
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,809
Blog Entries: 58

Rep: Reputation: Disabled
The text never shows when you type in a password.
Old 12-28-2008, 02:50 PM   #4
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Try this....

The brackets [ ] indicate your input. Do not include the brackets in the command.
useradd -g users -G disk,cdrom,plugdev,wheel,lp -d /home/[user name]/ -s /bin/bash -m [user name]
This will add your user name plus add the user to the following groups: disk,cdrom,plugdev,wheel,sys,lp. Each group gives or denies the user permission to a specific part of the operating system or device. To see all the groups try: less /etc/group

disk - gives the user access to disk drives.
cdrom - same
plugdev- I beleive plug-dev are usb devices.
wheel - you may not want to add for security reasons.
lp - enables access to hp-toolbox for printers and scanners.

The, -d /home/[user name]/, creates a personal directory for your user in the /home/ directory.

-s /bin/bash enables you to use the bash command line as default. Google bash linux

hope this helps

Last edited by okos; 12-28-2008 at 02:57 PM.
Old 12-28-2008, 03:44 PM   #5
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
man useradd
man adduser


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Made LiveCD, root account "auto-logs in" but it shouldnt! un_pilote Linux - General 4 04-25-2008 08:31 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 02:35 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 11:47 AM
add my user account to the root group konabumm Linux - Newbie 2 08-01-2003 12:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration