On Thu, 20 Jul 2000, James wrote:

> I have a situation where I have given a user POP3 *only* access through
> using "linuxconf".  Now I wish to give the same user FTP access as well.
> Do I need to delete his "Special account" then create him all over again?
> And if so, how do I give him POP3 access as well as FTP access to his own
> directory on my server?

A POP3 user under linuxconf has /bin/false as a shell. Now, the ftp server
will verify if the user has a valid shell before granting access. 

You can add /bin false to /etc/shells, but that will let *all* POP3 users
to access their directory by FTP. This is what most ISPs do.

Otherwise, here is what I suggest:
usermod -g popusers -G $USER $USER
ln -s /bin/false /bin/ftpaccess 
echo /bin/ftpaccess >> /etc/shells
chsh -s /bin/ftpaccess $USER

This adds the user to his own group, creates a special shell that will let
the user check mail, use ftp (and maybe a few other minor things), but he
will not be able to telnet or login to the system.

Jean-Michel Dault
[EMAIL PROTECTED]


Reply via email to