LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 12-28-2008, 12:46 PM   #1
pierce77x
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.
thanx
 
Old 12-28-2008, 12:51 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

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

repo@cannabis:~$ su
Password:
cannabis:/home/repo#

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
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,135
Blog Entries: 52

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

Rep: Reputation: 37
Try this....

The brackets [ ] indicate your input. Do not include the brackets in the command.
Code:
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
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
man useradd
man adduser
 
  


Reply


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


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

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