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

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



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 ?

Chris...

-- 
\ Chris Johnson                 \
 \ cej [at] nightwolf.org.uk          \
  \ http://cej.nightwolf.org.uk/  ~-----------------------------------+
   \ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____



___________________________________________________________________

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

  GNU the choice of a complete generation.