vsftpd: problems with "chown_username"
Sent again (2005-8-22) as the first post (19/08/05) didn't appear on
the list. Is there something wrong in this message?
*** I am not subscribed to the list
*** Please CC me at jllopez.p@tvcatalunya.com
If this is not the right place to post, please let me know.
OS: Debian Sarge GNU/Linux
vsftpd: 2.0.3-1
kernel: 2.6.11-1-686
$ di
Filesystem Mount Megs Used Avail %used fs
Type
/dev/md0 / 9388,7 2005,9 6905,9 26% ext3
tmpfs /dev 10,0 2,9 7,1 29%
tmpfs
tmpfs /dev/shm 252,1 0,0 252,1 0%
tmpfs
/dev/md3 /home 142984,1 116260,2 26723,9 81% xfs
/dev/md4 /home/backup 346384,9 32,1 342833,7 1% ext3
/dev/md1 /var 25340,4 1781,0 23044,5 9% ext3
1- Even with this configuration, uploaded files had the following
permissions (0600)
-rw------- 1 107 65534 2025 Aug 19 08:02 index.html
[...]
chown_uploads=YES
chown_username=ftp
anon_umask=022
file_open_mode=0666
The umask only affected the creation of directories (I tried different
umasks).
2- After commenting the "chown" entries like this
#chown_uploads=YES
#chown_username=ftp
anon_umask=022
file_open_mode=0666
permissions worked well, e.g.
-rw-r--r-- 1 107 65534 2025 Aug 19 08:47 index.html
3- With the following configuration, the ftp client got an OOPS:
ftp> put index.html
local: index.html remote: index.html
200 PORT command successful. Consider using PASV.
500 OOPS: fchown
ftp> ls
OOPS: priv_sock_get_result
421 Service not available, remote server has closed connection.
Config:
chown_uploads=YES
chown_username=(normal-user)
anon_umask=022
#file_open_mode=0666
I tried this last config. with a normal user just to experiment.
The log /var/log/vsftpd.log shows nothing relevant.
I have settled with the configuration shown in number 2, as it works for
me.
Questions:
1- Is this behaviour of vsftpd normal or is this a bug?
(I might have been doing something wrong in the config)
2- Where or how can I get error messages?
Just to try, I put a wrong entry in the config file (something like
this_is_rubbish), but I saw no error messages in any of the following
files:
/var/log/vsftpd.log
/var/log/messages
/var/log/syslog.
Thank you for your time,
Josep L. López
Reply to: