LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list (https://www.linuxquestions.org/questions/linux-server-73/500-oops-could-not-open-chroot-list-file-etc-vsftpd-chroot_list-929687/)

sunrised24 02-16-2012 06:54 AM

500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list
 
Hi
i had configured a ftp server.I have directory /data,/root,/ dir with 777 permision.How can i block users of VSFTPD/FTP will be limited to accessing only files in their own home directory.

They should not access other than they home directory .So i tried the below documentation to chroot to particular home directory.But im facing out the below error ,Currently im using out the below command to block users to limit other than home directory.

setfacl -m u:username:rwx /data --data with full access
setfacl -m u:username:--- /root --blocking root access
setfacl -m u:username:--- /temp

But it denied permission but i can view directory listting of the directory.Im just trying out to block directory listing
.So im trying to chroot user to there home directory alone

Link which i followed to enable chroot

http://www.cyberciti.biz/tips/vsftp-...directory.html

vi /etc/vsftpd/vsftpd.conf i had enabled these two lines for chroot

chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list


500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list


cananyone help me wat the conf error i have done in my configuration?Whether i can achieve these using chroot

TB0ne 02-16-2012 09:34 AM

Quote:

Originally Posted by sunrised24 (Post 4604018)
Hi
i had configured a ftp server.I have directory /data,/root,/ dir with 777 permision.How can i block users of VSFTPD/FTP will be limited to accessing only files in their own home directory.

They should not access other than they home directory .So i tried the below documentation to chroot to particular home directory.But im facing out the below error ,Currently im using out the below command to block users to limit other than home directory.

setfacl -m u:username:rwx /data --data with full access
setfacl -m u:username:--- /root --blocking root access
setfacl -m u:username:--- /temp

But it denied permission but i can view directory listting of the directory.Im just trying out to block directory listing
.So im trying to chroot user to there home directory alone

Link which i followed to enable chroot

http://www.cyberciti.biz/tips/vsftp-...directory.html

vi /etc/vsftpd/vsftpd.conf i had enabled these two lines for chroot

chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list


500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list

cananyone help me wat the conf error i have done in my configuration?Whether i can achieve these using chroot

Have you checked Google, or the search on this very site?
http://www.linuxquestions.org/questi...chroot-920124/

The error states very clearly that the list file can't be opened. Is the list file there? What are the permissions on it?


All times are GMT -5. The time now is 10:15 AM.