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

I want the user 'kevin' to be able to ftp/sftp read/write/execute files in the /home/kevin/public_html dir...

This shouldn't be hard, I'm just a beginner. Any advice is welcome!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

make sure kevin is the owner of the directory, you can use the chown command like this:

chown -R kevin.kevin public_html

assuming you are already in /home/kevin

also you may need to change the read/write/execute permissions like this:

chmod -R 644 public_html

you may want to use 755 for files that need to be executable.

For more info on octal file permissions, see http://en.wikipedia.org/wiki/Chmod

You can find out other info my typing man chown or man chmod

There may be other things you have to do depending on which FTP daemon you are using. For example, if you are using the ProFTPd, check out this HOWTO: http://ubuntuforums.org/showthread.php?t=79588

share|improve this answer
    
+1 You beat me to the punch! –  Safado Jun 9 '11 at 17:39
    
You want to ensure the directories retain the execute bit. This is required in order to chdir into the directory. So a chmod 644 -R on public_html will actually deny access to 'kevin'. –  Kyle Smith Jun 9 '11 at 18:04

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.