

These are initially configured via webgui as described above in "Dataset User and Group Permissions".

Trivial (default) ACLs only represent the traditional UNIX owner/group/other entries. There are two types of Access Control Lists (ACLs) - trivial and non-trivial. ZFS (the filesystem used by FreeNAS) provides a pure ACL model, where all files have an ACL. An ACL contains zero or more Access Control Entries (ACEs) which specify which users or groups are allowed or denied access to the file or folder. This procedure is more fully explained in the freenas handbook at the following site: Īn access control list (ACL) is a data structure containing permissions attached to a file or folder. Additional fine-tuning should be managed through modifying filesystem ACLs. By default "full control" of your samba share is granted to the owner(user) and owner(group), and "read-only" access to all other authenticated users.

Permissions type should be set to "Windows" regardless of client type. In contrast with this, there are four primary access control facilities for Samba on FreeNAS: dataset user and group permissions in the FreeNAS webgui, Access Control Lists (ACLs), Samba share definitions, and share permissions.ĭataset user and group permissions are controlled through the FreeNAS webgui by expanding "Storage" in the left pane of the webgui, clicking on the "View Volumes" button, selecting the dataset corresponding to your samba share in the right panel, then clicking on the "Change Permissions" icon in the lower-left side of the aforementioned panel.
#Word for mac samba can not save windows
This how-to will cover the basic points of control for Samba (CIFS) permissions and give an example of a fairly simple working Samba configuration on a FreeNAS server.Īccess Control Methods for FreeNAS Samba ServersĪccess control for SMB shares on a Windows server are determined through two sets of permissions: NTFS Access Control Lists (ACLs) and share permissions (which are primarily used for access control on Windows filesystems that do not support ACLs). While this is extremely useful for experienced admins (and is necessitated by the sheer variety of devices and operating systems supported by the Samba project), the flexibility of samba permissions often trips up new users. To this end, Samba offers several points of control for permissions. In the case of Samba servers this becomes even more important for the server administrator because he or she has to understand the differences between Windows and Unix permissions models (Windows ACLs vs ZFS ACLs vs Unix mode bits, Windows SIDs vs Unix UID/GID, etc), as well as Samba's methods to implement the Windows permissions model on Unix servers. Correctly setting permissions on any server requires care and planning.
