LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2010, 04:43 AM   #1
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 0
FTP user restrictions


Hello everyone,

I got up and running a FTP server for which I use to access it a generic user "FTPuser". Of course this FTPuser can access his local home folder. What I want to do is to "force" this user to access an other folder where I have some files that I want to change.
I have read the vsftpd.conf man page and discovered that by editing the vsftpd.chroot_list file this goal can be achieved. The problem is that i haven't found a relevant link to how to do it.
For my example let's suppose that FTPuser wants to access /var/www. How do I do that? (I try to play a little with web pages)

PS: I use vsftpd as ftp server
 
Old 10-27-2010, 04:52 AM   #2
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
Best would be to setup the user with /var/www as home-directory and use
Quote:
chroot_local_user=YES
in vsftp.conf

Code:
useradd FTPUser -d /var/www -s /bin/false
 
Old 10-27-2010, 10:07 AM   #3
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 0
Very good observation feinbein, but now I want to make available few directories for my FTPuser. Any idea? Thank you in advancce.
 
Old 10-27-2010, 05:31 PM   #4
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
You could try with symlinks or bind-mounts inside your ftp-home.
 
Old 10-28-2010, 04:50 PM   #5
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 0
Thank you very much. I solved it out with symlinks:

ln -s /path_to_dir_that_I_want_access_to /path_desired_folder

And it stays after reboot

Again Thanks

Last edited by coss_cat; 10-28-2010 at 04:52 PM.
 
  


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
FTP user restrictions JuliaNell Linux - Server 14 09-28-2010 02:51 PM
FTP access restrictions Fabian10 Linux - Server 2 11-28-2007 10:49 AM
Telnet, FTP login directory and restrictions energiza Linux - Networking 3 08-04-2006 01:05 PM
How to remove FTP access restrictions goodman Linux - Newbie 4 08-16-2003 06:07 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 01:33 PM

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

All times are GMT -5. The time now is 07:44 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