On Fri, Feb 21, 2003 at 06:59:51AM +0100, Cliff Sarginson wrote: > On Fri, Feb 21, 2003 at 12:13:12PM +1300, Jonathan Chen wrote: > > On Thu, Feb 20, 2003 at 04:15:18PM -0600, Darryl Hoar wrote: > > > Greetings, > > > I have a machine setup running 4.7 - stable. It is an internal machine. > > > How do I setup a user (so they can upload with ftp) but can't login at > > > the shell ? Is this possible ? > > > > Set up the users with a non-existent shell (eg: /nonexistent), and add > > the non-existent shell entry into /etc/shells. > > Conventionally such users woud be given a shell of "/sbin/nologin", which > must also be added into the list contained in "/etc/shells". > The program "/sbin/nologin" already exists, so no need to create it.
As an added measure of security, I'd advise making a link of /sbin/nologin called /sbin/ftponly and adding that to /etc/shells instead of nologin. That way, system accounts that shouldn't be able to be logged in through ftp either can still have the shell /sbin/nologin. Users that should only be able to access the system through FTP get the shell /sbin/ftponly. It also make the passwd file more understandable. Jim Trigg -- Jim Trigg, Lord High Everything Else O- /"\ \ / ASCII RIBBON CAMPAIGN Hostmaster, Huie Kin family website X HELP CURE HTML MAIL Verger, All Saints Church - Sharon Chapel / \ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message