LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 11:46 AM   #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, 11:51 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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 11:52 AM.
 
Old 12-28-2008, 01:29 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
The text never shows when you type in a password.
 
Old 12-28-2008, 01:50 PM   #4
okos
Member
 
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.
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 01:57 PM.
 
Old 12-28-2008, 02:44 PM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
man useradd
man adduser
 
  


Reply



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 07:31 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 01: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 10:02 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
add my user account to the root group konabumm Linux - Newbie 2 08-01-2003 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 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
Open Source Consulting | Domain Registration