[cifs-discuss] OpenSolaris 2008.05 CIFS - "cannot share...smb add share failed"
Dave Koelmeyer
d.koelmeyer at auckland.ac.nz
Sat May 31 06:02:52 PDT 2008
Hi All,
After a LOT of tinkering I eventually determined exactly where I am going wrong. It's to do with the ZFS ACLs I am applying. Why this is resulting in the behaviour I am seeing, I do not know - perhaps someone can spell it out to me.
To cut a long story short, this is how I am creating my file systems:
http://web.mac.com/davekoelmeyer/Dave_Koelmeyer/Dave_Koelmeyer_-_OpenSolaris_2008.05_ZFS_File_Systems_and_Snapshots_1.html
Now, when I apply ACLS in the "Set ACLs on each filesystem" section in the above link, the filesystem will consistently fail to share on server reboot. In fact, it will consistently fail to share if the pool is exported, and then imported even in the same session.
I tried every trick I could think of to get the sharing up and running again, including the tip Rob helpfully shared above, as well as;
rebooting
zfs set sharesmb=off tank/fs
zfs set sharesmb=on tank/fs
zpool export tank
zpool import tank
sharemgr start -P smb zfs
svcadm disable smb/server
svcadm enable -r smb/server
In various combinations, all with zero success. After a lot of playing around, I discovered the ACE combination that would secure my filesystems in the way I want (nothing fancy), and, allow the file system to be shared automatically as one would expect.
Check it out:
http://web.mac.com/davekoelmeyer/Dave_Koelmeyer/Dave_Koelmeyer_-_OpenSolaris_2008.05_smb_add_share_failed_2.html
ie. a single allow read_attribute ACE for everyone.
Now, why would this be?
--
This messages posted from opensolaris.org
More information about the cifs-discuss
mailing list