LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-25-2014, 02:44 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Rep: Reputation: Disabled
ftp files/folders not showing up


I am using filezilla on my client, and am using ubuntu for my server. I am able to connect to the server. I followed this tutorial to set it up, and secure it: https://www.digitalocean.com/communi...n-ubuntu-12-04.
 
Old 02-25-2014, 03:09 PM   #2
wfouly
LQ Newbie
 
Registered: Feb 2014
Distribution: Ubuntu
Posts: 5

Rep: Reputation: Disabled
Open vsftpd.conf And find :

Code:
chroot_local_user=
And make it NO
Code:
chroot_local_user=NO
Then restart vsftpd
Code:
service vsftpd restart
 
Old 02-26-2014, 09:13 AM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
I would like to limit my users to their home directory though.
 
Old 02-26-2014, 09:51 AM   #4
wfouly
LQ Newbie
 
Registered: Feb 2014
Distribution: Ubuntu
Posts: 5

Rep: Reputation: Disabled
How do I limit users of vsftp to only their home directory? Therefore, that user cannot go outside other directories to browser something.

If you do not wish FTP users to be able to access any files outside of their own home directory, set up chroot jail.

For consider following example:
  • Ftp username : user1
  • FTP home directory: /home/user1
Code:
ftp ftp.domain.com
Now normal user can go to /etc directory (may be to all other directories) and if there is read only permission to sensitive files user can download the file via ftp.
To avoid this security problem you can lock ftp user in a jail.
Open vsftpd configuration file - /etc/vsftpd/vsftpd.conf
Make sure following line exists (and uncommented):
Code:
chroot_local_user=YES
Save and close the file. Restart vsftpd.
Code:
 service vsftpd restart
Now all users of VSFTPD/FTP will be limited to accessing only files in their own home directory. They will not able to see /, /etc, /root and /tmp and all other directories.
This is an essential security feature.
 
Old 02-26-2014, 01:41 PM   #5
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
It is set to yes. I can still view the items. When I delete a text file on the server, it does not update in Filezilla.
 
  


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
joomla installation page showing only files and folders Gil@LQ Linux - Server 4 05-11-2012 04:13 PM
joomla installation page showing only files and folders Gil@LQ Linux - Server 1 04-13-2012 05:53 AM
Evolution is showing hidden files and folders in the folder tree Cyberman Linux - Software 1 10-11-2010 01:58 AM
ftp hiding files and folders sasser *BSD 4 07-19-2010 03:11 AM
not showing files or folders with special characters, like umlauts pinknyunyu Slackware 16 05-06-2009 10:16 AM


All times are GMT -5. The time now is 07:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration