Page 1 of 1

Questions regarding vsftp [Red Hat Linux 8.0]

Posted: Thu Sep 30, 2004 3:14 pm
by visionmaster
Hello,

[Red Hat Linux 8.0, vsftp]

I would like a user to upload/delete/rename files in a specific folder e.g. /www/www.domain.de/

Using following command actually works fine:

useradd -g users -d /www/www.domain.de/ smith

Using WinSCP and logging on as the user smith I directly land in the folder /www/www.domain.de

Enabling the user to copy, delete and rename within this folder I did following:

chown -R roelle http://www.personaldomain.de

Questions:
1. Using WinSCP I can go up the tree structure and look into other folders and even copy files from these folders to my local computer. As the user smith I can't rename and delete the files of other folders, which is ofcourse correct.
=> How can I avoid the user smith of changing to other folders other than his folder /www/www.domain.de ?
=> If I can't avoid the user smith changing to other folders can I at least avoid him copying any files from these folders to his local computer or elsewhere?
=>Can I even disallow the displaying of any other files or folders other than his?
=>Are there any good newbie tutorials about Linux user and group policies and how to's?

owner smith
group users

Thanks!

Posted: Thu Sep 30, 2004 6:09 pm
by Breckenridge
Here it is

edit your /etc/vsftpd/vsftpd.conf file

make sure you have a line that reads

Code: Select all

chroot_local_user=yes
if you want exclude some users and give them total access you can
1. remove the # aka uncomment the line:

Code: Select all

#chroot_list_file=/etc/vsftpd.chroot_list
2. add that users to /etc/vsftpd.chroot_list