LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2006, 04:17 AM   #1
tkt
Member
 
Registered: Apr 2005
Posts: 37

Rep: Reputation: 15
vsftp


Hi,

I have set up an FTP server with mounting point to /var/ftp/pub, but was quite amazed that I could view whole FTP server by clicking ...up level in FTP software. Is there any way such that the FTP server will just allow FTP user to view /var/ftp/pub, but not folders above that level?

Thanks.
 
Old 05-26-2006, 06:12 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
just change the chroot for the user in vsftpd.conf.
Read the man pages first.
You did not mention your distribution, but most distributions come with a local chroot
for users config of vsftpd
If at all all you have to do is uncomment the lines where chroot_list_enable is given.
 
Old 05-26-2006, 07:24 PM   #3
tkt
Member
 
Registered: Apr 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

The distribution for vsftp is 1.2.1-5. I have put in the chroot just like below.

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

In vsftpd.chroot_list, I added in /var/ftp/pub.

However, after restarting vsftp service, ftp users still could view whole FTP server.

Any idea?

Thanks.

Last edited by tkt; 05-26-2006 at 08:14 PM.
 
Old 05-26-2006, 08:32 PM   #4
tkt
Member
 
Registered: Apr 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thanks. I editted vsftpd.chroot_list and added the user list in, and now they could just view their own directories.
 
Old 05-28-2006, 12:51 AM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
It's Alright. When I said distribution I mean Linux Distribution(like Fedora, Mandrake etc) not the version number of vsftp. Next time you ask a question, remember that.
And by the way, you figured it out yourself(that /etc/vsftpd.chroot_list should contain users). That means you searched for answers.
That's good.
 
  


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
Vsftp Mojosue Linux - Software 3 02-18-2005 06:20 AM
vsFTP toejam Linux - Security 6 05-15-2004 09:38 AM
help with vsftp a2carat Linux - Software 7 02-16-2004 10:38 AM
vsftp, yes again cawpin Linux - Newbie 2 12-14-2003 01:37 PM
vsftp help ksgill Linux - Newbie 7 09-25-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 PM.

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