Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Yesterday I installed vsftpd in my centos server. But I am not able to upload files permission denied error. So I set owner and 775 file permission, and also i set 777 permission and then also I cant able to upload the file.

Here I am sending the link which i have followed.

http://www.server-world.info/en/note?os=CentOS_6&p=ftp

Please anyone help me to solve the problem.

share|improve this question

migrated from stackoverflow.com May 21 '13 at 10:46

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

    
Lets see the ownership and permissions of the file you uploaded while having 777 on your directory –  mogul May 21 '13 at 5:44
    
please see this drwxrwxrwx. 2 temp1 tempftp 4096 May 20 17:33 temp user : temp1 group: tempftp –  user170773 May 21 '13 at 6:25

1 Answer 1

Make sure user has write permission to the directory where file is going to be saved.

We have seen that user create files as the temp1 user, so one solution could be to make temp1 own the destination directory.

If that is impractical, an other solution could be to use group membership, either by chgrp'ing destination to tempftp or by adding user temp1 to the group that actually owns the destination.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.