I'm sharing my files over the network through SAMBA so whenever I created a sub-folder in the main shared folder the users can't see it because I've to change the permissions manually as the main folder's permissions. Same problem happen when network users add a new folder to my shared folder, I can't access it until I modify the permissions manually.
Since /First is set to owner = mbnoimi , permissions = 700 none of your samba clients can add to or even access the share unless they are coming in as mbnoimi but for the sake of argument one solution is to make everyone look like mbnoimi:
Add the following line to /etc/samba/smb.conf:
Code:
force user = mbnoimi
Where you put that line depends on how you created the samba share. If you want it to apply globally to all your shares then add it under the "workgroup = " line. If you want it to happen only to a specific share then add it to the share definition.
Then restart samba:
Code:
sudo service smbd restart
After the samba client gains access either as a guest or as a credentialed user he will be converted to mbnoimi. Everything they do they will do as mbnoimi - at least for your samba share.
EDIT: This post:
I'm sharing my files over the network through SAMBA so whenever I created a sub-folder in the main shared folder the users can't see it because I've to change the permissions manually as the main folder's permissions. Same problem happen when network users add a new folder to my shared folder, I can't access it until I modify the permissions manually.
Is just the opposite of what you originally described as your requirement: You wanted all subfolders to have owner = mbnoimi and permissions of 700.
Bookmarks