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 mounting an SMB/CIFS share on my CentOS 6.4 server using /etc/fstab as follows:

Mount windows share to /mnt/mywebsite

// /mnt/mywebsite cifs username=httpd,password=topsecret,uid=apache,gid=apache 0 0

I then issue mount -a and I see that my mount is created and the owner is apache:apache.

I can create files and directories just fine but if I try and do a chmod on files. For example:

mkdir test chmod 755 test

I get the following error: chmod: changing permissions of `test': Permission denied

I'm trying to figure out why I'm getting this. Is there an SELINUX policy blocking me? Do I need to add some additional parameters in my /etc/fstab?

I tried doing grep http /var/log/audit/audit.log | audit2why and I'm not seeing SELINUX blocking me.

Thanks Brad

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.