Click to See Complete Forum and Search --> : proftpd question


13x
08-11-2003, 04:12 PM
Hi

I have a few questions regarding this tutorial :
http://www3.telus.net/public/dale_d/proftpd.html

Next, set the permissions on the ftp directory structure.


chown -R /ftproot ftp.ftpusers


chmod -R 770 /ftproot


usermod -c FTP -d /ftproot -g ftp-users -s /bin/false ftpjd


My first question is that, shouldn't the "ftp" in the chown statement be "ftpjd" ? (since the author has created ftpjd as a special FTP account )

Also, what should i do if i want to have more than one user account ( logins ) for the ftp server ? Can i simply add the usernames to the "User" field in the proftpd.conf file ?

Basically what i want to do is to create accounts for two of my friends. "user1" and "user2". What is the best way to do this ?

OS : Redhat 8.0
Proftpd version : 1.2.8-1
Firewall installed : Firestarter

PS : n00b alert :)

Thank you
13x

Hayl
08-11-2003, 04:35 PM
Originally posted by 13x
Hi

My first question is that, shouldn't the "ftp" in the chown statement be "ftpjd" ? (since the author has created ftpjd as a special FTP account )

no. the ftpjd account is in the ftp-users GROUP. the only reason i have the "ftp" account is that my ftp daemon runs as the user "ftp". if your daemon runs as root then you can either A: use the chown command with root.ftp-users (bad idea) or B: create a ftp user account and run the daemon as that user (good idea).

Also, what should i do if i want to have more than one user account ( logins ) for the ftp server ? Can i simply add the usernames to the "User" field in the proftpd.conf file ? that section of the file controls what user account the daemon runs as, not what users are able to log in.

no. create them the same was as the example user and make sure they are in the ftp-users GROUP per the tutorial.

i suggest you re-read the tutorial and also read the proftpd documentation on their web site.

13x
08-12-2003, 03:31 AM
When i try to do "chown -R /ftproot ftp.ftpusers", i get "/ftproot Invalid user account"
I checked the man page of chown and syntax seems to be wrong. It should have been ( i think ) "chown -R ftp.ftpusers /ftproot".
Still i get an error saying that ftpusers is an invalid group. I checked my /etc/group file and there is no group by that name. Should i simply create that group ? or is ftpusers actually ftp-users ?

Thanx for the reply :) .. ur tutorial rocks !

13x

13x
08-12-2003, 04:58 AM
I get the following error on boot-up now :
( from the boot log )
proftpd 327 - Fatal: Socket operation on non-socket
proftpd 327 - (Running from command line ? User 'ServerType standalone' in config file! )
proftpd - proftpd startup failed

Now i tried connecting from my windows box ( LAN ) and it worked fine :confused: I am using xinetd mode. Y do i get the above error ?

Also, after i make changes to the proftpd.conf file, how can i restart the proftpd process ? ( will restarting xinetd do ? service xinetd restart )

Thank you
13x

13x
08-12-2003, 11:00 AM
Hey, i finanlly got it to work .. Yippeee :)

Just one more question : What changes should i make for it to work through a firewall ? ( passive connection must work too )

Thanx
13x

Hayl
08-12-2003, 11:07 AM
try reading the ProFTPD docs on the ProFTPD web site. they have excellent documentation.

http://proftpd.linux.co.uk/

re: getting it to work through a firewall with PASV - you are going to have to open a range of posts to get it to work. try doign a searc on JL on: PASV ftp, I seem to remember seeing a post on it a few weeks ago.

PS: i fixed the typo you pointed out with teh one command. thanks. :)