Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-05-2009, 11:11 AM   #1
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Rep: Reputation: 16
Thumbs down about vsftpd

1) can we configure local users not able to read other folders
(etc,var...)when they r logging to ftp
2)if they want to log other folders(if they have proper rights) only given by correct path only

can vsftpd in RHEL5 configure like this
Old 03-05-2009, 11:26 AM   #2
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
that would be more of a local permissions issue than an vsftp issue
when you configure a user in linux, they should be able to ftp into their own home directory unless you explicitly deny them access in vsftpd
my reccomendation would be to create groups and assign users to those groups, then change group ownerships of those directories to the appropriate group so that when they log in using ftp, their group membership gives them the appropriate permissions to those directories

the commands to do this are
useradd *user* (there i believe is an option to create the home directory at this point but i've never used it)
mkdir /home/*user* (unless you specified the create home option as above then skip this step)
chown *user* /home/user (unless you created the home directory using useradd then skip this step)
passwd *user* (set password for user
groupadd *group* (create a group)
chgrp *group* *durectory* to assign a group ownership to a directory(folder)
chmod (man chmod for specifics) to change permissions of a file/directory

then you should be set
Old 03-05-2009, 12:30 PM   #3
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Original Poster
Rep: Reputation: 16
ok i know
by changing their home directories it is possible to locate in to a single directory.(that not a problem)
but when they connected their is a option give by ftp client software go to one up level

generally etc,var...umask value is 755. so they can read those directories.

my question is they do not able to go one more up level. The local users are not read remaining folders( also have read permissions)

is it possible ?
Old 03-05-2009, 07:13 PM   #4
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
Going up one level does not necessarily lead to the root directory. If you have your ftp directories within some parent directory that doesn't allow entering (executable bit unset), then the user will not be able to walk upwards in the directory tree.

There are certainly some configuration options to do this some other way, but that will really depend on the FTP server that is used. And it is certainly possible to do, because there are a lot of ftp sites that do not allow stepping out of the home directory.


Arch Linux

Last edited by T74marcell; 03-14-2009 at 12:59 AM.
Old 03-05-2009, 09:14 PM   #5
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Original Poster
Rep: Reputation: 16

by putting in to in subdirectries we can avoid to go to the root directory .

thank you for u r reply. this is very help to me.


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 settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
vsftpd & ssl - how do I tell if it's actually vsftpd maintaining the connections?? hunterhunter Linux - General 0 03-27-2006 04:41 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration