LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   question on vsftpd (https://www.linuxquestions.org/questions/linux-newbie-8/question-on-vsftpd-498215/)

nevxille 11-03-2006 05:14 AM

question on vsftpd
 
i have allowed this setto yes in vsftp.conf(not using xinetd to control it)
local_enable=YES
i'm able to ftp as a local user into the server no problem, but i don't want to the user to see all the files in his/her home dir , like all the hiden . files (profiles)..etc..
is there a way i only let the user see a particular dir in his home dir when they ftp in the server.
thks

dcdbutler 11-03-2006 09:08 PM

I only have chroot_local_user enabled on my server, so I don't really know if the following will work or how to implement it exactly, but this is from the docs

Quote:

passwd_chroot_enable
If enabled, along with chroot_local_user , then a chroot() jail location may be specified on a per-user basis. Each user's jail is derived from their home directory string in /etc/passwd. The occurrence of /./ in the home directory string denotes that the jail is at that particular location in the path.

Default: NO
Check out man vsftpd.conf for more stuff on chroot'ing

Cheers

JimBass 11-04-2006 01:38 PM

I don't think there is a way to hide the hidden files in the user within their home directory. In any case, as a user they can read and write to these files in any case, so why hide them over ftp?

If you get the chroot enabled, the user will only see within their own home directory, so it won't be any problem.

Peace,
JimBass


All times are GMT -5. The time now is 10:26 PM.