Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'What about /dev/null/?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What about /dev/null/?
Authored by: serversurfer on Sep 13, '02 08:51:32PM

Couldn\'t you just go in to NetInfo Manager and change their shell to /dev/null/?

Then they should be able to sftp, but not ssh or telnet, right? It seems to me like the above method would just give them an sftp connection whenever they try to use ssh to get in. (Which, I guess, may be what you wanted )

[ Reply to This | # ]
What about /dev/null/?
Authored by: kholburn on Sep 13, '02 09:46:47PM

When you log in using ftp then the system checks that your default shell is in /etc/shells (also that your user name is not in /etc/ftpusers). If your default shell isn't in /etc/shells you are denied access. I would imagine stfp does something similar.


[ Reply to This | # ]