| Author |
Message |
peterb
Joined: 17 Apr 2004
Posts: 8
|
| Posted: Sat Jul 03, 2004 8:06 am Post subject: Restricting access to users |
|
|
Hi All,
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. |
|
| Back to top |
|
rhashimoto
Joined: 13 Aug 2003
Posts: 55
|
| Posted: Sat Jul 03, 2004 10:18 am Post subject: Re: Restricting access to users |
|
|
peterb wrote: 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. |
|
| Back to top |
|
peterb
Joined: 17 Apr 2004
Posts: 8
|
| Posted: Sat Jul 03, 2004 8:12 pm Post subject: Got it! |
|
|
Thanks :D
I figured it out.. i just set the default shell for the users to false..
~ Peter |
|
| Back to top |
|
mattio
Joined: 14 Jul 2004
Posts: 6
|
| Posted: Thu Jul 15, 2004 2:01 am Post subject: |
|
|
You can also use Cyrus and Postfix to fully virtualize users.
With this kind of setup Postfix checks that user exists in database (or flatfile) and gives mail to Cyrus.
[url] http://www.tldp.org/HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO/[/url] |
|
| Back to top |
|
| |