[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Different ways of locking accounts





On 3/18/07, Albert Dengg <a_d@gmx.at> wrote:
On Sun, Mar 18, 2007 at 01:08:13AM +0800, Wei Chen wrote:
...
> >BTW, both methods lock shells as well as ftp and sftp. Changing the shell
> >to
> >> /usr/sbin/nologin allows ftp but still prevents sftp.
> >> Is there a method that locks shell but allows ftp and sftp? Thanks.
> >>
> >I think that you just described it.  Change the user's shell to
> >/bin/false or something similar.
>
>
> But changing the shell to nologin or false will also block sftp access...
apt-cache search sftp turns up rssh and scponly

Just had a look at their introductions. It seems that either of them
should work. I will try them. Thanks.

yours
albert
--
Albert Dengg < a_d@gmx.at>




--
Cheers,
Wei
http://www.acplex.com/people/wchen/
Reply to: