Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm just getting started with CentOS and running into a strange issue with vsftp. When I FTP in, then change directory to /var I don't get a folder list. Is there something about CentOS or vsftp in particular that I may be missing that causes this behavior?

The permissions on the folder are like others that I am able to see while connected via FTP.

Thanks for any help.


share|improve this question
Is your install of vsftpd chrooted by default? – Zak May 5 '10 at 17:38
All the chroot stuff is left commented out, which means users should not be taken to their home dir by default (as far as i can tell at least) – evanmcd May 6 '10 at 18:41
up vote 1 down vote accepted

Is AppArmor or SELinux installed on the machine? Setting the correct security settings with those programs may be preventing any action.

share|improve this answer
I haven't installed either of those, so unless they come with the default CentOS 5.3 install, no. – evanmcd May 5 '10 at 17:43 It appears that it does come with SELinux. It was first introduced in CentOS 4. – Nitrodist May 5 '10 at 18:13
Ahh I see, I will take a look and see what I can turn up there. Any idea where I might look? Thanks. – evanmcd May 6 '10 at 18:42
Yup, it was SELinux after all. Thank you! This was the additional step that I needed: /usr/sbin/setsebool -P ftp_home_dir=1… – evanmcd May 6 '10 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.