Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-02-2007, 05:15 PM   #16
Registered: May 2007
Distribution: Debian
Posts: 103

Rep: Reputation: 15

Just for the sake of all these lines written here, chmod 777 your home dir (go figure) and try to login. im curious what kind of permissions proftpd wants on the user's home dir. Reading on

The DefaultRoot directive is commonly used to restrict or "jail" users into specific directories, usually their individual home directories. This is done via:

DefaultRoot ~

where the tilde (~) is expanded to the home directory of the logging in user. Now, when proftpd is resolving the tilde, it switches to the privileges of the logging-in user and attempts to resolve the home directory. This ensures that the user will, once restricted to that directory, will have the ability to see files and move around. So if using the tilde does not appear to be working in your configuration, double-check that the permissions on the home directory of the user in question at least allow that user to change into the directory (which requires execute permission on the home directory). If proftpd finds that the permissions are too restrictive, an error message like:

chroot("~"): No such file or directory

will be logged.
Anyway as a final advice i recommend you switching to vsftpd and just let proftpd go away. If you need advice/help configuring the vsftpd let me know by email.

Old 06-02-2007, 06:58 PM   #17
Registered: Oct 2003
Location: Middle Tennessee
Distribution: CentOS
Posts: 37

Original Poster
Rep: Reputation: 15
I just tried that and got the same results:
Jun 2 14:51:34 mail proftpd: pam_unix(proftpd:session): session opened for user lee by (uid=0)
Jun 2 14:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - USER lee: Login successful.
Jun 2 14:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - notice: unable to use '~/' [resolved to '/home/lee/']: Permission denied
Jun 2 19:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - Preparing to chroot to directory '~/'
Jun 2 19:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - lee chroot("~/"): No such file or directory
Jun 2 19:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - error: unable to set default root directory
Jun 2 19:51:34 mail proftpd: pam_unix(proftpd:session): session closed for user lee
Jun 2 19:51:34 mail proftpd[8977]: myhost (::ffff:myip[::ffff:myip]) - FTP session closed.
The only thing that changed was the time basically.

I suppose I will look into vsftp
Old 06-12-2007, 07:29 AM   #18
Registered: Oct 2003
Location: Middle Tennessee
Distribution: CentOS
Posts: 37

Original Poster
Rep: Reputation: 15
I have not had a chance to look into vsftp yet, but I am still having problems with this.

Does anyone have any other ideas by chance?
Old 06-19-2007, 12:53 PM   #19
Registered: Jun 2005
Distribution: Fedora 18, Ubuntu 11.10, Ubuntu Server 11.10, DamnSmallLinux 3.4.4, FreeDOS 1.1, OpenBSD 5.0
Posts: 194

Rep: Reputation: 31
I had a problem that seems quite similar to yours.

All I had to do, was to set the proper permissions for /etc/passwd
(It was -rw------- for some reason)

Old 04-17-2012, 08:30 PM   #20
LQ Newbie
Registered: Jul 2007
Posts: 2

Rep: Reputation: 1
Just thought i'd add this in case anyone else is searching for this problem and happened on this thread

The reason you get the errors with the home dirs is because of selinux, to fix your issue:

setsebool -P ftp_home_dir on
or man ftpd_selinux for more info.
1 members found this post helpful.
Old 11-08-2018, 04:29 AM   #21
LQ Newbie
Registered: Apr 2010
Location: UK
Distribution: (K/X/ )Ubuntu, RHEL, Fedora, SLES
Posts: 7

Rep: Reputation: 1
I know this is ancient, but after many days of searching *this* resolved the issue. SELinux was the cause for me, and SELinux didn't record any information showing what the problem was. Symptom was that run from init.d proftpd failed to log on an ordinary user, run in debug mode from command line it worked... because it was run as root from the command line.

I must have read almost everything on the internet concerning this and they all referenced permissions on the file but this was the first thread that suggested SELinux as the cause.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd tell me can not login namit Linux - Software 5 12-11-2005 10:24 AM
Can't login to ProFTPd Martin Strand Linux - Networking 8 07-11-2005 09:59 PM
can't login proftpd pipio Linux - General 0 04-19-2004 12:55 PM
Why my proftpd sometimes can't login? itebooks Linux - Software 0 03-29-2004 09:48 PM
proftpd can't login nocturnal Linux - Software 3 12-15-2003 05:33 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration