I am setting up a linux to act as a fileserver, using CentOS 6.3.
Since I want to have disk quotas and can't install LVM (it is a 32 bit machine), I am using an LVM volume with ext4 mounted as
I have created
/samba/seg, assigned a domain group, changed FS permissions to 770, executed:
semanage fcontext -a -t samba_share_t /samba/seg
restorecon -R -v /samba/seg
My config (from
[seg] comment = Remote unit path = /samba/seg valid users = @DOMAIN\GROUP read only = No create mask = 0660 force create mode = 0660 directory mask = 0770 force directory mode = 0770 hide unreadable = Yes access based share enum = Yes
When I try to connect from a Windows box (logged as domain user) I get a message stating that I have no access rights to the share. I have to make
setenforce Permissive in order to access the share.
The domain configuration seems ok. I can login with a domain user, check users of domain groups and so on.
In the other hand, I just did create a directory (not a filesystem) in
/samba/test and replied the steps with it; it worked without problem so the issue seems to be when sharing a mounted filesystem.