LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-11-2010, 10:21 PM   #1
BYoungTGS
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
vsftpd directory listing issue


We are running a Red Hat 9 x86_64 server with apache. Apache stores all the files accessible in /var/www/html. I have setup just a basic FTP server using vsftpd. I have a local user in a group that I made specifically for uploads and modification of the /var/www and sub-directories. I have it so local users can login, and I can login using a FTP client from any local user.

But, no matter what user I log in with, through a ftp client, I cannot see anything in /var, it simply thinks it's an empty directory. I can see things in bin, sbin, and other directories.

Also...
I'm not sure how to make it so that if someone logs in with users in a specific group, they are only allowed access to /var/www, because as of right now, they can see everything on the machine.

I have looked through the possibly configuration options for vsftpd, but I can't seem to figure it out.
 
Old 06-13-2010, 12:35 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 780
Blog Entries: 6

Rep: Reputation: 75
try this way, edit vsftpd.conf add as following

chroot_local_user=YES

restart vsftpd if not work then follow up here maybe someone can help further
 
Old 06-13-2010, 07:10 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
I think routers is on the right track with the chroot_local_users option. That should keep the user where you want them. The other thing to look into is permissions in /var/www. Does your user have permission to see what is in /var/www?

Quote:
Also...
I'm not sure how to make it so that if someone logs in with users in a specific group, they are only allowed access to /var/www, because as of right now, they can see everything on the machine.
As far as this one goes, are you dealing with a single site that multiple people need to edit or does each individual have their own site? If it is the latter, you might considering approaching this from the Apache side of things and have the files in each user's home directory.
 
Old 06-13-2010, 07:30 AM   #4
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 92

Rep: Reputation: 15
Hello ,

i think too that both routers & hangdog42 are right ,

you need to check /var/www permissions & ownership

ls -ld /var/www

lsattr -d /var/www

& also check the option

chroot_local_user=YES

in vsftpd main config file

thanks for everyone,,

Last edited by HuMan-BiEnG; 06-13-2010 at 07:31 AM.
 
  


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
Vsftpd listing directory with time - Windows Explorer client neo571 Linux - Server 0 10-26-2009 08:23 AM
vsftpd: no directory listing with remote connection Sjonnie48 Linux - Software 1 11-16-2008 02:09 PM
vsftpd and directory listing disable for user eugene2008 Linux - Software 0 07-06-2006 08:18 PM
Apache2 Directory Listing issue DrJonesAC2 Linux - Software 5 09-12-2004 04:25 AM

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

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