Re: vsftpd problem
From: Ohmster (ohmster_at_newsguy.com)
Date: 09/11/03
- Next message: Dr. Deb: "Re: Newbie: UPS"
- Previous message: Medgar \: "Teh Future of Linicks was Re: Party at Anja's"
- In reply to: Yousaf: "vsftpd problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Sep 2003 23:24:13 GMT
Yousaf <yousaf@NOBLOODYSPAM.freeserve.co.uk> wrote in
news:1063209339.826624@ananke.eclipse.net.uk:
> # If you want, you can arrange for uploaded anonymous files to be owned by
> # a different user. Note! Using "root" for uploaded files is not
> # recommended!
> #chown_uploads=YES
> #chown_username=whoever
Yer config looks alright. Mine works and has anon upload and makdir ability.
I do use this option though...
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
chown_uploads=YES
chown_username=ohmster
ohmster is a real user on the system (me). I do this because I am able to
samba into the ftp directories and can read, write, and delete files this
way. Still, I had upload and before doing this and it worked.
This I do not have in my vsftpd.conf file at all:
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
My config file ends with:
pam_service_name=vsftpd
...and that is all. This might be affecting your uploads, I dunno, it is not
in my config file. Since you *are* running vsftpd from xinetd, you should not
have any kind of standalone options enabled. This is to run vsftpd as a
standalone process and not be a system service. Since you are starting vsftpd
from xinetd, you should not have this in your conf file at all. Take it out.
So far as what permissions you need for the directories, this is how mine is
setup:
[root@ohmster ftp]# ls -la
total 32
drwxr-xr-x 7 root root 4096 Jul 10 17:22 .
drwxr-xr-x 26 root root 4096 Jun 26 22:18 ..
d--x--x--x 2 root root 4096 Oct 24 2002 bin
d--x--x--x 2 root root 4096 Apr 11 18:49 etc
drwx-wx-wx 5 ohmster ftp 4096 Sep 10 18:48 incoming
drwxr-xr-x 2 root root 4096 Apr 11 18:49 lib
-rwxr--r-- 1 root root 225 Jul 10 17:22 .message
drwxr-xr-x 3 ohmster ftp 4096 Jul 19 21:14 pub
[root@ohmster ftp]#
incoming is write and execute , no reading allowed or you will end up with a
warez file server. pub is read and execute. If I am not mistaken, the execute
is for listing the directories, it has been a while so I am not sure but it
works quite well this way. I experimented a lot with this before getting it
just right. incoming and pub I changed group to me so that I can access the
files for writing and deleting from a samba connection. You don't have to do
that if you are just going to access the files as root.
I think you really need to take out those last 4 lines from your vsftpd.conf
file and then restart xinetd:
[root@ohmster root]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@ohmster root]#
Or just reboot the machine. Actually rebooting might be a better option if
you have a standalone vsftpd process running. You could just use ps to look
for vsftpd and kill the process after stopping xinetd and then restarting
xinetd again but rebooting might be easier. Good luck and let us know if you
got it working.
Cheers,
-- ~Ohmster
- Next message: Dr. Deb: "Re: Newbie: UPS"
- Previous message: Medgar \: "Teh Future of Linicks was Re: Party at Anja's"
- In reply to: Yousaf: "vsftpd problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|