Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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:

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


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.