Contents
In Windows those are your NTFS permissions, in Isilon they are implemented using extended ACLs which mimic the NTFS permissions. Here’s what you should do. 1. For the share, allow the “run as root” permission to a Windows account you have control over.
How to get Samba to set proper permissions on created?
The parent directory has the set group id flag, thus the sambashare group owner. The idea is that both samba users and server users belong to the sambashare group, and thus are to be able to edit, delete, and create files and directories.
How to force user / group ownership of files?
Consider the /tmp director: it is a scratchpad which allows multiple users to create, modify or delete files. To prevent user A from deleting a file owned by user B, the directory has the sticky bit set: Notice the t flag of the permissions: this indicates the “ sticky ” bit is set for the directory.
After a lot of trial and error, this is the correct code to share samba dir using SGID and unix groups. If user connects anonymously he gets r/o, if he logs in and is a member of assigned group he gets r/w. I have group named ‘admin’ set as primary group to users with write privileges, everyone else gets read only rights.
How to enable SMB sharing on a dataset?
To enable SMB sharing on the dataset, set the share.smb property to on. To enable SMB sharing on individual named shares, first set share.smb=off on the dataset and then set share.smb=on on the individual shares.
How to create a SMB share in Solaris?
Create an SMB share by using the ZFS file system’s share property. Use this procedure to make a dataset available to clients. Enable guest access to an SMB share. Use the zfs command to enable guest access for a specified share. These commands enable this feature by setting the guestok property.
Is it possible to have a samba share read only for guests, and read write for authenticated users? If I put guest ok on an share then I am not prompted for a password, and effectively logged as guest with read only rights. But I want to be authenticated so that I can also write. Could anyone provide a sample smb share stanza to achieve this?