limit non login id for ftp

Hi All,

How can I limit a userid (/bin/false) to have access only to ftp service? On redhat ent 4.

Thanks!

Create a softlink to /bin/false named /bin/ftponly, add ftponly to /etc/shells. Assign the user to this shell. This will enable them to log in, but even if they succeed in getting a shell, they will immediately be logged out.