Restricting access to users
Just a quick (prob fairly obvious solution..) question –
I have several accounts for some of my friends to use for email access (using postfix etc.).. However, I want to restrict their access - so that they cannot ssh in etc.. ie, not have a shell account on the system - i just want them to be able to log into webmail etc.. How do I do this? Can i do it via webmin or something?
Thanks in advance,
~ Peter.
3 Replies
@peterb:
I have several accounts for some of my friends to use for email access (using postfix etc.).. However, I want to restrict their access - so that they cannot ssh in etc.. ie, not have a shell account on the system - i just want them to be able to log into webmail etc.. How do I do this?
You can just set their shell to /bin/false, either using chsh or directly in /etc/passwd.
Alternatively, you can set up your mail system so that mail accounts are administered independently of Linux accounts.
I figured it out.. i just set the default shell for the users to false..
~ Peter
With this kind of setup Postfix checks that user exists in database (or flatfile) and gives mail to Cyrus.