Le 27/11/2023 à 13:00, Toomas Soome via illumos-discuss a écrit :


On 27. Nov 2023, at 13:47, [email protected] wrote:

Hello,

I'm new to Illumos / OmniOS and looking at replacing my actual SAMBA server (in workgroup) with OmniOS.

After reading a bunch of man pages and online documentation, I'm quite puzzled. In Oracle Solaris 11.4, they say
The legacy|sharemgr|command is no longer available to manage SMB shares. Instead, use the enhanced|zfs|,|share|, and|unshare|commands. Also, the automatic sharing of SMB and NFS shares is managed by SMF rather than by the legacy|/etc/dfs/dfstab|file, which has been removed.

What is the proper way to manage SMB shares on Illumos / OmniOS ?
Is it sharemgr or zfs (un)share ?

Thank you.

PS: I already asked this on omnios-discuss but was told I should ask here (too).

Solaris 11.4 has widen the gap about the management approaches, you should not rely on Solaris 11.4 docs to manage illumos any more. With

Ok, thanks. What would be the last applicable Solaris documentation ?
When searching on the Internet, I often get links to Solaris docs.

illumos, you can use either zfs sharenfs and sharesmb properties or sharemgr command. dfstab file is also there (for NFS), but text based configuration files (such as dfstab is) are more painful for scripting.

Are those complementary or are they two distincts ways of managing shares?

For example, if I create a share using sharemgr, it seems the sharesmb property of the dataset is still set to off.

Another example is setting resource-name using the `-r` option of sharemgr. I can't find the equivalent in ZFS dataset properties and trying to set `name` issues an error saying this property is read-only.

Thanks,
Joel C.


------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/T10871ae5205bb53b-M99aeefb19ffb999e5024aac1
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to