Results 1 to 3 of 3
Thread: ProFTPd wont login
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2005
ProFTPd wont login
i am having a problem with proftpd on a FC5 system
when i try to login the ftp client says incorrect login, when i know its 100% right
so i looked in the logs and i was getting the following message
May 14 11:46:45 92-81 proftpd: hostname (xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx]) - USER admin: Login successful. May 14 11:46:45 92-81 proftpd: Hostname (xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx]) - notice: unable to use '~/' [resolved to '/home/']: Permission denied May 14 10:46:45 92-81 proftpd: Hostname (xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx]) - Preparing to chroot to directory '~/' May 14 10:46:45 92-81 proftpd: Hostname (xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx]) - admin chroot("~/"): No such file or directory May 14 10:46:45 92-81 proftpd: Hostname (xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx]) - error: unable to set default root directory
drwxrwxrwx 16 admin admin 4096 May 14 12:02 /home
anyone got any ideas on how to fix this?
- Join Date
- Feb 2007
- Adelaide, Australia
Given the fact your home directory permissions are 777 proftpd may possibly be complaining about this as a security issue.. however I'm not completely sure..
drwxr-xr-x 18 root root 4096 Mar 7 21:53 home
Not only that check /etc/passwd and check teh users homedirectory, its a little unusual to have someones homedirectory being /home only...
- Join Date
- Oct 2006
- Plainsboro, NJ
How exactly did you install and set up proftpd? Installed via RPM? If so, try removing it (rpm -ev proftpd) and reinstalling (rpm -ivh proftpd) it to make sure it loaded the proper pam modules and such.
It could also be complaining about the lax security settings you have on your /home directory too.
Though, like the above poster mentioned, you're a pretty daring person allowing full permissions to everyone on your server to fully write into the /home dir. Change /home to 775 and make sure you're setting the right default adduser prefs when creating the accounts.
'useradd -m [user]' sets the proper user directory inside /home assuming your adduser default prefs has your HOME dir set up as /home.
If those fail, try copying and pasting your /etc/proftpd.conf file so that we can attempt seeing if it's a configuration error.