Click to See Complete Forum and Search --> : How to add a user to proftpd


EvilBunny
06-30-2001, 08:24 PM
Alright I have searched the boards and everything. How do I add a user to proftpd that requires a username and password and has a default directory the person goes to.

Thanks in advanced

ssadams
06-30-2001, 08:58 PM
if you check the doc for proftpd it will list an example of this.Or you can add users to a group called something like ftplocalusers and they will require a valid name and password.If you want to limit their browsing potential while in ftp mode add that to the ftplocalusers config in proftpd.conf

EvilBunny
06-30-2001, 09:22 PM
Man I must be the stupidest person alive cause I checked the doc and it shows all this stuff and I don't know how to config this thing can you send me the URL by any chance to the doc page you are talking about or a good begginers guide to proftpd.

Cuthbert
07-01-2001, 08:55 AM
Here is an expample for an proftpd.conf file:

I'm no proftpd guru or anything, but here goes. In the example, I'll set up an account for user bill, group billy

ServerName "anything you like"
ServerType standalone
DefaultServer on

Port 21
Umask 022
Maxinstances 30

User nobody
Group nobody

<Directory /*>
AllowOverwrite on
</Directory>

(Now the part you're looking for)
<Anonymous /web/ftp/pub/> (by specifying the directory, the user will be jailed there when he logs in)
User bill
Group billy
AnonRequirePassword on

<Limit READ STOR (or whatever you like)>
AllowAll
</Limit>

HideUser root
HideGroup root

</Anonymous>


Hehe.... if I've screwed up that example... feel free to let me have it!! :rolleyes:

Cuthbert
07-01-2001, 08:59 AM
You can read all the docs you want over at http://proftpd.org ... but I learned what little I do know from examining the sample .conf files they have posted. I learned just enough to do what I wanted to do.

ssadams
07-01-2001, 10:46 AM
proftpd is a simple program but the options can be danting.It can grow to a complexity rivaling sendmail.cf . Try the link provided it may help you,but the best bet is to use groups and not users.

EvilBunny
07-01-2001, 12:07 PM
I found this old post but where do I get crypt.

#!/bin/bash

useradd -g ftp -d /home/pub $1
echo UserPassword $1 `crypt $2` >> /etc/proftpd.conf
killall -HUP proftpd
echo "done."


get crypt here http://wam.umd.edu/~jeffj/crypt

EvilBunny
07-01-2001, 12:09 PM
NM the link works now just what do I do with the crypt file?

Also when I try the example that one guy gave it says user bill not found..

[ 01 July 2001: Message edited by: EvilBunny ]

Cuthbert
07-01-2001, 02:11 PM
LOL Man!! Replace user bill and group billy with a user and group that actually exist on your machine... I used those just for the sake of example. :)

EvilBunny
07-01-2001, 03:18 PM
Yay you solved my problem and I found out I am a complete nob