In case the following parameters are set in a Samba file share configuration:
create mask = 711
force create mode = 750
What are the effective permissions of a file created with the permissions 777?
The effective permissions of a file created with the permissions 777 can be calculated considering the create mask and force create mode.
create mask = 711 implies that the permission bits are ANDed with 0711, i.e., only the owner can read, write, and execute.
force create mode = 750 implies that certain permission bits are always set, specifically 0750, i.e., read, write, and execute for the owner, and read and execute for the group.
The create mask reduces the permissions to 0711, and then force create mode adds the 0750 mask to the result.
Original permission: 777 AND with create mask (711): 711 OR with force create mode (750): 751
Thus, the effective permission is 751.
Samba smb.conf man page - create mask
Kassandra
23 days agoAn
30 days agoBrett
1 months agoMicaela
11 days agoHubert
12 days agoDexter
18 days agoMing
1 months agoShawna
1 months agoBulah
1 months agoTheresia
6 days agoStevie
9 days agoJosphine
15 days agoCassie
20 days agoAshlyn
1 months agoSkye
2 months agoMiesha
21 days agoGilberto
24 days agoRegenia
26 days agoYoulanda
29 days agoMabelle
1 months ago