Re: no home no shell accounts

2011-09-28 Thread Stefan Johnson
I stand corrected. Here is the procedure for setting up sftp-only with /usr/bin/false as the shell: Create your user with the appropriate shell: useradd -m -s /usr/bin/false -d /home/anonsftp anonsftp (Note that you might want to set up your own login class for it instead, or add other details)

Re: no home no shell accounts

2011-09-28 Thread Stefan Johnson
On Wed, Sep 28, 2011 at 7:10 AM, David Walker wrote: > Hi Stefan. > > On 28/09/2011, Stefan Johnson wrote: > > Please disregard my last... gmail sent the email before I was finished > > composing it. > > I figured as much. > > > Using false for your shell is okay for ftp. It is not for ssh/sftp.

Re: no home no shell accounts

2011-09-28 Thread David Walker
Hi Stefan. On 28/09/2011, Stefan Johnson wrote: > Please disregard my last... gmail sent the email before I was finished > composing it. I figured as much. > Using false for your shell is okay for ftp. It is not for ssh/sftp. I kind of expect that SSH (the shell) either passes commands direct

Re: no home no shell accounts

2011-09-27 Thread Stefan Johnson
Please disregard my last... gmail sent the email before I was finished composing it. On Tue, Sep 27, 2011 at 10:43 AM, David Walker wrote: > Hi. > > I have some accounts that don't require home directories or shells. > In the past I used ftpd for web uploading and would do the > shell==false thin

Re: no home no shell accounts

2011-09-27 Thread Stefan Johnson
On Tue, Sep 27, 2011 at 10:43 AM, David Walker wrote: > Hi. > > I have some accounts that don't require home directories or shells. > In the past I used ftpd for web uploading and would do the > shell==false thing and chroot them and set the login directory via the > passwd file. > Bye bye ftpd, h

no home no shell accounts

2011-09-27 Thread David Walker
Hi. I have some accounts that don't require home directories or shells. In the past I used ftpd for web uploading and would do the shell==false thing and chroot them and set the login directory via the passwd file. Bye bye ftpd, hello sshd. So I'm looking at this again, using the sshd's internal