Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.