Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a problem with vsftpd on Debian: I can upload files if the chmod of all folders is 777, but with chmod 755.

Please help.

vsftpd.conf:

local_umask=022
anon_umask=0755
file_open_mode=0755
share|improve this question

migrated from stackoverflow.com Dec 4 '11 at 8:21

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Sounds like the user you're logging in as has no ownership rights of the folder you're accessing.

FWIW 777 isn't neccessary as you don't need execute (just read/write)

You could possibly put the ftp user in the same group as the owner then chmod g+rw or you could chown -R ftpfolder ftpuser.ftpuser but consider the potential implications of other users that may need access.

share|improve this answer
    
that was exactly the issue. tnx! –  user1047737 Dec 3 '11 at 18:40
    
Great! BTW please mark this answer as accepted so it is removed from the unanswered question list. meta.stackexchange.com/questions/5234/… –  M_M Dec 3 '11 at 20:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.