Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup user for email, but no login.

Status
Not open for further replies.

devostyle

MIS
Jan 27, 2001
21
US
I have a linux box hosting a few domains. I would like to set up the server to allow people to check email without being able to login to the system through telnet, ftp, ssh, etc. Can anyone help?
 
I believe if you if you set up the users shell to "/dev/null"....it will not let them log on through telnet, ftp, ssh, and etc.
 
I don't that will restrict ftp, but will restrict telnet or ssh (even better than /dev/null, lots of service accounts have a shell of /bin/false). You need to restrict FTP in another fashion. Check the docs for your ftp server. If you have a lot of mail-only users and few users that are allowed to FTP, you can probably use an allow list instead of a deny list.
 

Check out IMP.

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
I use /usr/bin/passwd. User still has the ability to change his/her password, but nothing else.
 
I created a script called addmail:

------------------------------------------
#!/bin/sh
# Add a user without login privilages
/usr/bin adduser -n -d /dev/null $1
passwd $1
------------------------------------------

usage = addmail newmailuser

good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top