Dan Anderson wrote:
> I'm trying to setup a CIFS share on a non-ZFS filesystem on NV79.  There's a 
> good example for ZFS at 
> http://opensolaris.org/os/project/cifs-server/gettingstarted.html
> For non-ZFS (say, UFS) it refers to "How to Create a CFS Share (sharemgr)" at
> http://opensolaris.org/os/project/cifs-server/Admin-Guide/p12.html#createstaticsmbsharetask
> 
> So, lets say I want to export directory "/myfs", I would type:
> # sharemgr create -P smb my-group
> # sharemgr add-share -r [i]resource-name[/i] -s /myfs my-group
> 
> [b]QUESTION 1: what do I use for "[i]resource-name[/i]"?[/b]

Whatever name you want to give your share.  This is the name
that you would use from a CIFS client.  The admin guide
contain a note on valid/invalid characters, which is based
on Windows restrictions.

> As a side note, for NFS, it's a lot simpler:

They should be equivalent.

> # sharemgr add-share -s /myfs -d "myfs for NFS" default
> 
> [b]QUESTION 2: can I omit -r and use group "default" for CIFS also?[/b]

        # sharemgr list -v
        default enabled smb nfs
        zfs     enabled

        # sharemgr add-share -r home -s /export/home default

        # sharemgr show -vp
        default smb=() nfs=()
                home=/export/home

You can use the default group but you need to give the share a name
or you will not be able to access it from Windows: the CIFS protocol
uses names to access shares.

Alan
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to