Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

We've mounted a CIFS share from a Windows Server 2008 R2 machine on an RHEL 4u6 box, as 'cifs' filesystem, with full permissions on both the Windows and Linux sides so that it is possible to write to the mounted filesystem on Linux. However, we can't successfully touch files in the filesystem:

touch: setting times of `/mnt/testhub/testfile': Permission denied

What is the reason that touch fails? I've seen that for instance vim, on other hand, is able to update file modification times.

share|improve this question
I have cifs mounted via debian and ubuntu and touch works correctly. Due to the error it does sound like permissions or virus software blocking it but do not have a direct answer to your question. – pablo Feb 18 '11 at 10:10
up vote 0 down vote accepted

I found the reason, by fooling around. It turns out that files are created with root as the owner and 755 for permissions. I'm in the owning group, but as it has only read access touch is not able to update the file after creating it :)

share|improve this answer

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.