I need to deploy Samba Sharing between Linux Host (Samba Server) and Linux (Client) and Windows (Client) . Now this folder on Server will share documents between Linux and Windows Client machines. On Samba Server i made two test users lets call them venice and john. Now on Samba Server I set the file context for samba and enabled RO and RW booleans and set the permissions for john and venice
> getfacl: Removing leading '/' from absolute path names
> # file: samba/docs/
> # owner: venice
> # group: venice user::rwx user:venice:rwx user:john:rwx group::r-x mask::rwx other::r-x default:user::rwx default:user:venice:rwx
> default:user:john:rwx default:group::r-x default:mask::rwx
> default:other::r-x
and in samba configuration file i did following configuration
[smbdocs]
comment = Documents share
path = /samba/docs
browseable = yes
read only = yes
write list = venice john
guest ok = no
printable = no
hosts allow = 10.8.8.51
While mounting on samba using
mount.cifs //10.8.8.50/smbdocs -o username=venice,password=pass /samba/docs/
im not able to create files using venice and john users, even though it is allowed from system level permission and Samba level.
Now if i mount using the uid and gid of venice
mount.cifs //10.8.8.50/smbdocs -o username=venice,password=pass,uid=1001,gid=1001 /samba/docs/
im able to create the file using venice user but john still not able to create the files or edit the files
Any advice
Host OS version RHEL 7.4
venice
at/home/venice/samba/docs
and forjohn
at/home/john/samba/docs
using the respectiveuid
andgid
.