Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Last year I wrote an entry on Accessing Windows Shares from OpenSolaris. This is the other way around setting up OpenSolaris as a CIFS server so I could browse its shares from Windows. To begin, install the CIFS server packages:
bleonard@opensolaris:~$ pfexec pkg install SUNWsmbskr PHASE Indexing Packages DOWNLOAD (MB) Completed 0.42/0.42 ITEMS 554/554 PKGS 1/1 FILES 6/6 XFER
bleonard@opensolaris:~$ pfexec pkg install SUNWsmbs DOWNLOAD (MB) Completed 1.07/1.07 PKGS 1/1 FILES 28/28 XFER
Note, there's a broken dependency between SUNWsmbs and SUNWsmbskr, which is why it's necessary to install both packages. This will be addressed with the upcoming 2009.06 release. See bug 5390 for more details. After the packages are installed, reboot the system (there is a work-around, which you can read here. Personally I found it easier to reboot). You can follow bug 8647 to track the progress of this issue.
Notice that the CIFS server is dependent on the Native Identity Mapping Service, which is disabled by default:
bleonard@opensolaris:~$ svcs -l smb/server fmri name enabled state next_state state_time restarter dependency dependency dependency svc:/network/smb/server:default smbd daemon true offline none Thu Apr 30 16:57:28 2009 svc:/system/svc/restarter:default require_any/error svc:/milestone/network (online) require_all/error svc:/system/filesystem/local (online) require_all/error svc:/system/idmap:default (disabled)
So start the CIFS server using the -r option to start all dependent services:
Then reset your password so it can be stored by the CIFS password encrypter (OpenSolaris will not let you set the same password, however, you can change it to something else and then back if you want to keep your original password):
bleonard@opensolaris:~$ passwd passwd: Changing password for bleonard Enter existing login password: New Password: Re-enter new Password:
bleonard@opensolaris:~$ sharemgr show -vp default nfs=() zfs zfs/rpool/export/home smb=() rpool_export_home=/export/home
Note the share name from Windows will appear as "rpool_export_home". You can use the sharemgr to change this to something more friendly, such as just "home".
Once connected, you can browse the OpenSolaris machine just like you would your local Windows drive: