PROFTPD - Why permissions denied?
Every directory in the full path has to have x
(execute) permission for the mywebsite.com user, otherwise he'll not be able to cwd into it. So you have to check permissions of:
/home
/home/lighttpd
/home/lighttpd/vhosts
/home/lighttpd/vhosts/mywebsite
/home/lighttpd/vhosts/mywebsite/web
not only /home/lighttpd/vhosts/mywebsite/web
Additionally /home/lighttpd/vhosts/mywebsite/web
should have r
permission set to allow read the directory, i.e. list its content.
Related videos on Youtube
Damiano
Updated on September 18, 2022Comments
-
Damiano almost 2 years
I have 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/mywebsite.com/web/']: Permission denied
The permission of /home/lighttpd/vhosts/mywebsite/web are:
drwxr-x--- 2 mywebsite.com mywebsite.com 4096 2011-04-26 12:04 web
PROFTPD runs with proftpd:proftpd permissions.
TO solve this I have added proftpd user to mywebsite.com group.
Take a look at /etc/group
mywebsite.com:x:1003:proftpd
So I have added proftpd to the group and set RW permissions to /web directory.
I don't understand why I get PERMISSION DENIED.
-
Dan McClain about 13 yearsWhat user name are you logging into proftpd with?
-
Admin about 13 years@phsr I'm tring to login with mywebsite.com user
-
rombarcz about 13 years
-