PDA

View Full Version : vsftpd config


Guyhoward
2007-09-27, 10:10 PM CDT
I'm trying to set up an ftp server, but no luck. ive made my user and gave him permissions and what not but still having a hard time. I dont know if this will help but I'm going post what it says:

[root@localhost ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@localhost ~]# ftp [for my eye's only]
Connected to for my eye's only (for my eye's only).
220 ~WHAT ARE YOU DOING! UNAUTHORIZED ACCESSED! PROCEED FTW!~.
Name (for my eye's only:root): user1
331 Please specify the password.
Password:
500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list
Login failed.

I went into /etc/vsftpd/vsftpd.conf took the hash of of chroot() list file:/etc/vsftpd/chroot_list but im still getting no where.

I look forward to your help and advice.

PatMcLJr
2007-09-28, 07:08 AM CDT
I don't think vsftp, or SELinux will let you log in as root
you might need to log into a non root user account and then try and log into the ftp server.

I do think you can change the config file to let you log in as root and set a switch in SELinux to let you do that, but you will have to go by a bunch of warrings not to do it. Sorta defets the chroot thing.

just my guess, I do think the config file is well commented

Guyhoward
2007-09-28, 08:45 AM CDT
Ah! well after some time i figured it out. I put back the hashes on chroot() and file:/etc/vsftpd/chroot_list. After that it gave me a 500 OOPS: cannot change directory:/home/ftp-docs so i chown user1:ftp-users /home/ftp-docs and it worked, but to say if that user was limited to that directory only I'm not sure I was lazy and didnt test it :D . Thanks for your help!