LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-18-2010, 12:57 AM   #1
DaFakaMatt
LQ Newbie
 
Registered: Sep 2009
Location: Western Australia
Distribution: Debian 505 (Lenny)
Posts: 28
Blog Entries: 1

Rep: Reputation: 15
How to add a user so that they have no shell access


Hello

Im want to know the command to add a user with no shell access so they cannot log onto the system, but there a user on there so for example they can be part of the email server.

Cheers,

DaF
 
Old 02-18-2010, 01:07 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
When you create the user, set their shell to "/bin/false" and that should do it.

Check the man page for either "adduser" or "useradd" depending which one your system uses; the option that sets the new user's shell, is the one you want (I think it's the -s option, but you better check..).

Sasha
 
Old 02-18-2010, 01:59 AM   #3
DaFakaMatt
LQ Newbie
 
Registered: Sep 2009
Location: Western Australia
Distribution: Debian 505 (Lenny)
Posts: 28

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Legend (Y) Cheers
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add new user via shell script Ingenico1 Linux - Software 3 10-05-2008 03:14 PM
how to add user in command shell man_J Linux - Software 4 11-05-2006 08:09 AM
I lose ftp access when I disable shell access for user captainObvious Linux - General 3 11-13-2004 05:49 PM
Add user to Webmin through SHELL? mikeshn Linux - General 1 12-05-2003 02:00 PM
Add a user thorugh SHELL? mikeshn Linux - General 4 01-08-2003 10:31 PM

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

All times are GMT -5. The time now is 05:41 AM.

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