LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2001, 07:49 PM   #1
siffux
LQ Newbie
 
Registered: Sep 2001
Posts: 1

Rep: Reputation: 0
Lightbulb cammand


What is the command for creating a user name in the Bash shell?????
 
Old 09-10-2001, 10:58 PM   #2
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
Code:
useradd <username>
followed by
Code:
passwd <username>
will set up thier accounts, and a login password.
To modify user account settings, you can use
Code:
usermod <options> <username>
To remove a user account from the system, AND thier login directory, use
Code:
userdel -r <username>
HTH
 
Old 09-11-2001, 02:37 PM   #3
ascii2k
Member
 
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154

Rep: Reputation: 30
adduser <username> also works.
 
Old 10-11-2001, 07:23 AM   #4
rahul
LQ Newbie
 
Registered: Oct 2001
Location: India
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Post

adduser username will work fine

but i got problem with the default shell settings. i tried

adduser rahul

so it created a user by that name but the default shell entry in the passwd file was /dev/null

so better specify the shell also

adduser -s /bin/bash rahul

hope it will work for you also
it worked for me

regards
 
Old 10-11-2001, 07:40 AM   #5
TimBeR
LQ Newbie
 
Registered: Oct 2001
Distribution: Redhat 7.1
Posts: 11

Rep: Reputation: 0
you can also try userconf wich is also a nice little semi GUI for adding users with a little more options then just useradd
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:11 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