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


FTP? | 15 comments | Create New Account
Click here to return to the 'FTP?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
FTP?
Authored by: vonleigh on Mar 11, '02 03:34:56AM

One question, can the user still log in through ftp? I'm looking for a method that will _not_ allow the user to log into the computer via shell, but will allow him/her to ftp to their account.


thanks,
Vonleigh



[ Reply to This | # ]
FTP?
Authored by: jkusnier on Mar 11, '02 06:58:50AM

try changing their shell to /usr/bin/true i've never tried this on os x, but it works on every linux distro i've ever used



[ Reply to This | # ]
FTP?
Authored by: Moo0 on Mar 11, '02 10:33:00AM

I've changed it to /dev/null which works too :)

a comment on that: i heard proftpd requires a valid shell. Here, using slack 8, we set it to /etc/ftponly - but I have no idea wether this is linux/proftpd-only.



[ Reply to This | # ]
FTP?
Authored by: a1291762 on Mar 11, '02 04:46:36PM

The "Unix way" would be to set the user's shell to /sbin/nologin. You may need to add that to /etc/shells if your ftpd requires users to have a valid shell.

/sbin/nologin is better than /usr/bin/true and /dev/null because it notifies the user that they can't login by writing a message when they log in.



[ Reply to This | # ]