Hi Mike,

I was able to make my share read-only using the following command:

bleon...@opensolaris:~$ *pfexec sharemgr set -P smb -p ro="*" zfs/rpool/export/home*
bleon...@opensolaris:~$ *sharemgr show -vp zfs*
zfs
   zfs/rpool/export/home smb=()
     bleonard=/export/home     smb=(ro="*")

So for you it should be:

*pfexec sharemgr set -P smb -p ro="*" zfs/spool/shares*

Does that work for you?

/Brian

Mike Freeman wrote:
Your blog is very helpful and mentions the broken dependantcy which ins't in the Opensolaris Bible (but purhaps it's out of date). However I had managed to get to a similar point using the OB. Where I'm stuck is making spool/swap writable and spool/shares read only. I gather guest access has only just been added to Solaris and isn't in Opensolaris so I created a user called guest but several problems still exist. Although existing files in spool/shares are readonly by virtue of the file permissions and ownership, guest can still create new files in spool/shares which is less than ideal. Also when guest does create files they have ownership but no permissions which is a bit odd e.g.
    d _ _ _ _ _ _ _ _ _  1 guest other  ....etc, etc

So! Can I make spool/shares read only?
Can I control permissions on the files guest creates, as you can with Samba?

The good news is that my Windows 7 clients can write to swap without hanging!

--
W. Brian Leonard
Technology Evangelist
408.404.6884
http://blogs.sun.com/observatory

_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to