LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-02-2007, 05:15 PM   #16
digitalnerds
Member
 
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 castaglia.org

Quote:
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.

Regards
Andy
 
Old 06-02-2007, 06:58 PM   #17
LWillmann
Member
 
Registered: Oct 2003
Location: Middle Tennessee
Distribution: CentOS
Posts: 31

Original Poster
Rep: Reputation: 15
I just tried that and got the same results:
Quote:
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
LWillmann
Member
 
Registered: Oct 2003
Location: Middle Tennessee
Distribution: CentOS
Posts: 31

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
polemon
Member
 
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)

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

Rep: Reputation: 0
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:

Quote:
setsebool -P ftp_home_dir on
or man ftpd_selinux for more info.
 
  


Reply


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


All times are GMT -5. The time now is 08:54 AM.

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