Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Our Ubuntu Server 12.04 system has a remote NTFS filesystem mounted via Samba at /media/blarg.

One of our users had problems writing to the remote system, but not reading from it.

Since the auto-mount script we've set up has a different user (we'll call it sagaba) mounting the remote system, I figured I'd change the permissions for /media/blarg to 774 sagaba:sagaba, and make our user a member of the sagaba group, so he can go about his business.

Unfortunately, when I attempt this (even as root), I get a permission denied error.

chown: changing ownership of `/media/blarg': Permission denied

Does this have to do with root squashing? I can't understand how it would, since the mount point is a directory on the local system.

share|improve this question
up vote 3 down vote accepted

You can't modify the file permissions of a NTFS filesystem mounted via CIFS on the VFS by default. Even when chmod and chown don't complain, they have no effect under these filesystems.

Your best chance is to use mounting options to do the work. That is, define the permissions at mounting time. Take a look at man mount.cifs for the parameters uid and gid.

Please note that CIFS supports chmod and chown when you are serving ext4 filesystems, but not when serving NTFS filesystems. NTFS mounting support permissions, but they are disabled by default because you need to map the Windows User IDs (SID) to UIDs on your system. Please take a look at the article pointed on the comments by Eliah Kagan. Even when you can make the permissions mapping and make the permissions work with a direct mount, I don't know if they will work trhough CIFS, though.

share|improve this answer
This is untrue. (1) Editing permissions CIFS/SMB works out-of-the-box, with zero configuration! Perhaps you're experiencing a problem relating to the underlying filesystem on the server (e.g., maybe it's FAT or NTFS). When I share an ext4 partition from one Ubuntu system to another with Samba, permissions and ownership work fine. (2) FAT filesystems really don't support permissions, you're right about this. (3) NTFS filesystems do support ownership and permissions and are almost completely compatable with chmod, but not quite; changing them with chown/chmod works but is off by default. – Eliah Kagan Jan 14 '13 at 23:35
See this article for details. – Eliah Kagan Jan 14 '13 at 23:36
Thank you, I'll modify my answer to reflect this. – Jorge Suárez de Lis Jan 14 '13 at 23:43

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.