On 12/14/04 10:11 AM, Josh Paetzel sat at the `puter and typed: > I am looking for a way to give a user an sftp account without giving > them a shell. So far I've tried setting their shell > to /sbin/nologin, but when they try to log in via sftp it gives them > a "message to long" error. > > Any pointers would be appreciated...I've tried the FAQ, handbook and > google so far.
Can you restrict external logins from /etc/login.access? You can do it by username or group, ie. ftponly. This should do it: # Disallow logins to all in the ftponly group -:ftponly:ALL This should only affect shell logins, so ftp should still work. -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Correspondence Corollary: An experiment may be considered a success if no more than half your data must be discarded to obtain correspondence with your theory. _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"