Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 installed proftpd on my server, I tried to connect to the server but I get LOGIN INCORRECT. I have seen the log and I found this:

Apr 26 13:02:39 vmi** proftpd[16738] vmi**.**.com (***[::ffff:...*]): notice: unable to use '~/' [resolved to '/home/lighttpd/vhosts/']: Permission denied

The permissions of /home/lighttpd/vhosts/mywebsite/web are:

drwxr-x--- 2 4096 2011-04-26 12:04 web

proftpd runs with proftpd:proftpd permissions.

To solve this I added the proftpd user to the group.

Take a look at /etc/group

So I added proftpd to the group and set RW permissions to /web directory.

I don't understand why I get PERMISSION DENIED.

share|improve this question

Did you restarted proftpd daemon after adding user proftpd to group? If you did not then currently running proftpd process doesn't have that group in it's privileges.

If you however did restart proftpd, then try su to proftpd user and manually enter directory you get permission denied. Maybe you do not have privileges on some higher level directory(ies)...

share|improve this answer
namei -l /home/lighttpd/vhosts/mywebsite/web is a quick way to see if all parent directories have the required permissions set. – grawity Apr 26 '11 at 21:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .