Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I am using CentOS 6.5 - users authenticate using winbind, all are domain users except for root.

/home is mapped to a cifs share on a windows server in /etc/fstab with this line: \\server\home$ /home cifs credentials=/root/samba.txt,_netdev 0 0

Under the home$ share there are folders corresponding to each username, that are their home directories in windows. Each user has full windows permissions to their individual folders.

However, when on the linux system, users only have read and execute access to /home/$username Chmodding and chowning does not throw any errors, but neither have any effect on the subdirectories, which are all owned by root.

Each user should ideally own, but at least have full access to read/write to their home directories, but they must not be able to read another users home dir.

share|improve this question
If you're mounting them with shared credentials, that's going to result in all users on the system seeing the same user owning the files (root by default). You probably want to work with cifs.upcall so that each individual user authenticates to the CIFS share using their kerberos credentials. Not where I can write a full answer but here is a reference. – Bratchley Mar 13 '14 at 13:34
Also note, Samba 3 clients have issues with using Kerberos authentication with DFS in general. If you're using DFS, keep that in mind. – Bratchley Mar 13 '14 at 13:35

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.