Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"passwd: unknown user" on x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Drone4four
Apprentice
Apprentice


Joined: 09 May 2006
Posts: 247

PostPosted: Sat Jun 24, 2006 2:07 am    Post subject: "passwd: unknown user" on x86 Reply with quote

I do just as the Gentoo handbook tells me to, yet I can’t figure out why I can’t add a password to my freshly created user account!
Here is the input and output:
Code:
#passwd masterjohn
Passwd: unknown user masterjohn
wtf?
_________________
My rig:
IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)


Last edited by Drone4four on Sat Jun 24, 2006 3:17 am; edited 1 time in total
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Sat Jun 24, 2006 2:21 am    Post subject: Reply with quote

Can you show us what code you tried to use to create the user masterjohn?
_________________
Toshiba Satellite A105 laptop, 1.7 mHz Celeron M, 100 Gb hard disk, 512 Mb RAM, 2006.0, 2.6.16-r7 kernel
Homemade desktop, 3.2+ mHz AMD Athlon 64 processor, 120 Gb hard disk, 1 Gb RAM, 2005.0, 2.6.14-r2 kernel
Back to top
View user's profile Send private message
Drone4four
Apprentice
Apprentice


Joined: 09 May 2006
Posts: 247

PostPosted: Sat Jun 24, 2006 2:53 am    Post subject: Reply with quote

Sure:
Code:
# useradd -m -G audio,users,cdrom,portage,usb,video,wheel /bin/bash masterjohn
Usgae: useradd [...]
           useradd [...]

_________________
My rig:
IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Sat Jun 24, 2006 9:20 am    Post subject: Reply with quote

If you call a programm in Linux and it tells you something about its usage, you have certainly done something wrong, and the command has definitely not been exexuted. In your case, the correct command would be
Code:
useradd -m -G audio,users,cdrom,portage,usb,video,wheel -s /bin/bash masterjohn


Don't forget to create, assign and chown a home directory to that user, or you'll get problems later.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Drone4four
Apprentice
Apprentice


Joined: 09 May 2006
Posts: 247

PostPosted: Sun Jun 25, 2006 8:51 pm    Post subject: Reply with quote

lx0 wrote:
If you call a programm in Linux and it tells you something about its usage, you have certainly done something wrong, and the command has definitely not been exexuted. In your case, the correct command would be
Code:
useradd -m -G audio,users,cdrom,portage,usb,video,wheel -s /bin/bash masterjohn


Don't forget to create, assign and chown a home directory to that user, or you'll get problems later.

Thanks lx0, this is exactly what I was looking for!
_________________
My rig:
IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum