LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-22-2010, 11:40 PM   #1
ahwm
Member
 
Registered: Jan 2010
Location: Idaho
Distribution: Slackware 14.1
Posts: 41

Rep: Reputation: 16
vsftpd -- keep ftp user inside home directory


I'm using Slackware 13.0 on my server and am going to be employing a file-sharing service for a client. I was able to enable a quota, but my problem now is keeping the user inside their home directory. I've searched around and found an old thread on here (from 2003) that gave me some ideas, but it still isn't working.

Should I be running vsftpd standalone or leave it on the inetd?

If I set the shell to /sbin/nologin or /bin/false, the user can't log in through FTP, even.

Any ideas?

/etc/vsftpd.conf:
Code:
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
from /etc/passwd:
Code:
ftpuser:x:1004:210::/home/ftpuser/./:/bin/bash
 
Old 08-23-2010, 12:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
If I set the shell to /sbin/nologin or /bin/false, the user can't log in through FTP, even.
Make sure that both the above "shells" exist in /etc/shells.

Quote:
Should I be running vsftpd standalone or leave it on the inetd?
It's irrelevant to your problem.


Re: the chroot problem, make sure that there is an entry for ftpuser in /etc/vsftpd.chroot_list

Regards
 
Old 08-23-2010, 11:37 AM   #3
ahwm
Member
 
Registered: Jan 2010
Location: Idaho
Distribution: Slackware 14.1
Posts: 41

Original Poster
Rep: Reputation: 16
Fixed it, thanks!
 
  


Reply



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
i got a problem with vsftpd in F7, 500 OOPS: cannot change directory:/home/ftp-docs hosanna Fedora 1 05-25-2007 09:17 PM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
vsftpd - limit user to his/her home directory kaon Linux - Software 0 01-15-2005 12:32 AM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 02:04 PM
vsFTPd: howto keep a user in his home directory jonnyz Linux - Networking 1 06-20-2003 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration