You are not logged in.
Hello, I am having an issue with my proftp setup.
I have it installed and it works, but not when i set my home dir to the folder i want
if i set the home dir to /srv/http/htdocs I can login fine
but when i change it to the actual folder i need i get this error in the proftp log
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): FTP session opened.
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): notice: unable to use '~/' [resolved to '/home/hosting/mysite.com/']: Permission denied
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): Preparing to chroot to directory '~/'
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): chroot to '~/' failed for user 'gman': No such file or directory
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): error: unable to set default root directory
Jan 26 01:37:36 www proftpd[2094] localhost.localdomain (192.168.0.30[192.168.0.30]): FTP session closed.
I have tried changing the owner of /home/hosting/mysite.com/ to http:hosting and changed the permissions as far as 777, now i have it setup the exact same as the working folder and still cant get in
Here is my setup
Apache runs under http:hosting
Proftp runs under ftp:hosting
here is the working folders permissions (htdocs is the apache DefaultDir)
ls -li /srv/http
total 4
1343495 drwxr-xr-x 4 root root 4096 Jan 26 11:02 htdocs
Here is the folder I want to use (mysite.com being the folder I want)
ls -li /home/hosting
total 12
5439659 drwxrw-rw- 3 root root 4096 Jan 26 00:47 mysite.com
5439657 drwxrwxrwx 2 root root 4096 Jan 23 16:00 logs
5439658 drwxrwxrwx 2 root root 4096 Jan 23 16:25 mail
Here is the login info for proftp
+----+----------+-------+-------+----------+-------------------------------+------------+---------------+-------------+---------------------+----------+----------+------------+------------+------------+
| id | username | uid | gid | password | homedir | shell | login_enabled | login_count | last_login | up_count | up_bytes | down_count | down_bytes | customerid |
+----+----------+-------+-------+----------+-------------------------------+------------+---------------+-------------+---------------------+----------+----------+------------+------------+------------+
| 1 | gman | 10000 | 10000 | ###### | /home/hosting/mysite.com | /bin/false | Y | 3 | 2010-01-26 01:33:49 | 0 | 0 | 0 | 0 | 1 |
+----+----------+-------+-------+----------+-------------------------------+------------+---------------+-------------+---------------------+----------+----------+------------+------------+------------+
and again if i change the homedir to "/srv/http/htdocs" every thing works to an extent of course, cant create or delete files cause its all owned by root
Thank you in advance
Don
Last edited by =OTS=G-Man (2010-01-26 18:25:14)
Offline