On Sun, Mar 18, 2007 at 12:44:18AM +0800, Wei Chen wrote: > > Will there be problem if I lock an account with one program and unlock with > another? > I don't know. Why don't you try it and see? :-)
> 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. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com
signature.asc
Description: Digital signature