5.3.1 Creation masks Samba has several options to (Web design service)

5.3.1 Creation masks Samba has several options to help with file creation masks. File creation masks (or umasks) help to define the permissions a file or directory will receive at the time it is created. In Unix, this means that you can control what permissions a file or directory does not have when it is created. For files accessed from Windows, this means you can disable the read-only, archive, system, and hidden attributes of a file as well. For example, the createmaskoption will force the permissions of a file created by a Windows client to be at most 744: [data] path = /home/samba/data browseable = yes guest ok = yes writeable = yes create mask = 744 while the directorymaskoption shown here will force the permissions of a newly created directory to be at most 755: [data] path = /home/samba/data browseable = yes guest ok = yes writeable = yes directory mask = 755 Alternatively, you can also force various bits with the forcecreatemodeand force directorymodeoptions. These options will perform a logical OR against the file and directory creation masks, ensuring that those bits that are specified will always be set. You would typically set these options globally in order to ensure that group and world read/write permissions have been set appropriately for new files or directories in each share. In the same spirit, if you wish to explicitly set the Unix user and group attributes of a file that is created on the Windows side, you can use the forceuserand forcegroupoptions. For example: 160
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply