LinuxQuestions.org
Register a domain and help support LQ
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 10-04-2005, 11:03 AM   #1
Brian Du Preez
LQ Newbie
 
Registered: Oct 2005
Location: south africa
Posts: 2

Rep: Reputation: 0
adding new users


Hi to all,

I have a ferdoa mail server that was setup by my technician was has since left . i would like to know how to add a new user. The command that i tried was: useradd usersname -s bin /false. can anybody please help me with the correct formula.

regards
brian
 
Old 10-04-2005, 01:33 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,681
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
man useradd

It appears you're trying to setup a new user who has no real login shell. If so then your syntax would be:

useradd -s /bin/false username

The username goes and there should be no space between bin and false - it is a path (do ls -l /bin/false to see it if you want).

Note that the above will use default for home directory and won't create an actual home directory. This also only creates an OS user. It doesn't have anything to do with mail per se. Also since the shell is /bin/false this user would not be able to login directly.

I also always like to add a comment as why the user is there so that when I leave the next guy will. You could do something like:

useradd -c "User added for mail purposes only" -s /bin/false username

Last edited by MensaWater; 10-04-2005 at 01:35 PM.
 
  


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
Adding users Abbaddon Linux - Newbie 7 09-01-2004 05:30 AM
adding users... Digital_Err0r Linux - General 1 03-31-2004 04:08 PM
adding users Lucasite Linux - Newbie 3 03-04-2004 12:30 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 11:37 AM
Adding users... philfighter Linux - General 3 07-23-2001 11:48 PM


All times are GMT -5. The time now is 10:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration