I have a MacOS
with a shared directory. I am able to access in Ubuntu Linux
with:
# From Linux to MacOS
sudo mount -t cifs //192.168.1.X/directory_shared
/mnt/192.168.1.X/directoryname
-o username=username,
rw,
uid=####,
gid=####,
nounix,sec=ntlmssp
The problem is that if I do ls -l
in the client side the group always have r-x
.
if I do in the server (macOS) sudo chmod -R g+w XXX
it is not reflected in the client, and if in the client the sudo chmod -R g+w XXX
command is executed it does not apply the new settings, therefore is ignored (it remains with r-x
). I need the group write permissions in the mounted directory to write/edit any content created in the server.
Note: The username in the server and client are different - the owner can be alpha
and in the client can be Beta
, but Beta
exists how a created user in the server too, it to let the connection from the client to server. So for security reason is not allowed do a connection from the client to the server based with the alpha
type, just with Beta
, and the owner of the files in the server is mostly Alpha
(it is in a /Users/Shared
location in Mac for any user). These users (server and client) share the same group name (a secondary group type). So, it does not matter by whom is created a new file/directory, they must let complete access to all users because the primary group of that files is the same assigned how the secondary group for these users.
How I can accomplish this goal? it either through the sudo mount -t cifs ... [options]
or something missing through the chmod
command.