LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2015, 06:28 AM   #1
enrique786
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
FTP USER only can access own home directory


Dear all

I want to know ftp user in linux only can access own home directory , user must not see and download and upload any other location via filezilla or command line .,

ftp-user

/home/ftp-user << user directory

ftp-user have to limit only access own directory

ftp-user should not use access /opt /mnt /media /var /lib ... all directories
only access for /home/ftp-user
 
Old 09-07-2015, 07:41 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,927

Rep: Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817
where are you starting from?

What you seek is a 'jail'. It restricts the user to his home folder and below.
How you do this can depend upon what server software you use. You did not mention what you are using, or if you are open to installation of a server of choice.
I recommend VSFTP (Very Secure FTP) server, as it has had settings enforcing this kind of setup for some time.

BTW: this question, and my answer, have little to do with networking. This is a server issue. I am not sure if there is a better place for the question than Linux Security or Linux Server, but it might have fit under Linux Software better than Linux Networking. As long as the mods do not complain, I will not.

If I may ask, what is your situation or event that prompts the question?
Also, where are you starting from and what are your environmental factors and limits?
 
  


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
How to assign ftp user home directory sandykrishn1988 Linux - Newbie 1 07-29-2015 09:02 AM
[SOLVED] Why shouldn't a user own their home directory when using FTP and chroot? maples Linux - Security 5 04-02-2015 09:25 PM
vsftpd -- keep ftp user inside home directory ahwm Linux - Server 2 08-23-2010 11:37 AM
Make FTP user and specify directory outside home mirror51 Linux - Newbie 4 09-21-2009 12:19 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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