Cannot list "Var" content via FTP

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
mroushdy
Posts: 3
Joined: 2014/07/14 14:06:08

Cannot list "Var" content via FTP

Post by mroushdy » 2014/07/14 14:09:14

hello,
I can browser all directories via FTP except for "VAR" and I don't know why, I've granted all permissions to all, I just want to get to /var/www

I've also trued to FTP using "root" user, but the same issue, I cannot list contents of /var, im using vsftpd

Thank you

mroushdy
Posts: 3
Joined: 2014/07/14 14:06:08

Re: Cannot list "Var" content via FTP

Post by mroushdy » 2014/07/16 12:47:36

Can't anyone help me out?

how can I grant FTP users access to "/var" directory?

User avatar
Super Jamie
Posts: 310
Joined: 2014/01/10 23:44:51

Re: Cannot list "Var" content via FTP

Post by Super Jamie » 2014/07/25 12:14:45

Are you running SELinux?

/var/www is httpd_sys_content_t, and the ftpd doesn't have access to that context by default.

Several options are covered at: http://wiki.centos.org/TipsAndTricks/SelinuxBooleans

Post Reply

Return to “CentOS 5 - Server Support”