[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] A simple question I'm sure



On Mon, 2002-10-14 at 14:29, Chris J wrote:
> 
> And Lo! The Great Prophet " Neil R Porter" uttered these words of wisdom...
> >
> > I want to setup an ftp account using proftpd so people can log in and get
> > some files off my server (not anon though, still want a password).  How do
> > I set up a username and password for this user without making them a user
> > proper on the whole system?  I can configure proftpd np if the user is
> > already a user (as added using userdrake).  However, I'm not at all
> > familiar with all the PAM, authentication gubbins etc.
> 
> Just create them as a normal user :) But instead of giving them a normal
> shell, set the shell to /bin/false, or write a small bit of C to print a
> message like "Go away" and simply exiting. You'll need to mention the
> program you use in /etc/shells as well.
> 
> It might be possible to have things authenticate from a different database
> rather than /etc/passwd, but this is the simplest and quickest to implement
> :)
> 
> Okay, this /does/ make a user proper but it does mean the user can't log in.
> Is this more what your after, or do you actually want to have a non-real
> user ?
> 

Nope, that sounds like just the ticket.  I had sshd set up so only one
user can log in (me :) and all that, but I just didn't know how to
tighten everything else up.  This will do nicely methinks.

Thanks

Neil

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.