how to share directory between windows and opensolaris
By gerhardhofweber on Mrz 24, 2009
a few people might know that opensolaris supports native CIFS.
This means that you can either use a computer installed with opensolaris to share disks (e.g. ZFS luns) and export it as CIFS or the other way round.
Meaning having an opensolaris client which access a windows share.
The last version is what I want to document (and if you read my blog entries they are also for me as my external brain )
So my need was to access an other windows laptops directory.
I expect that everybody knows how to share a directory within windows. So what did I have to do on my opensolaris laptop?
- svcadm enable smb/client
- to see what shares are available
smbutil view //<user>@<windows-pc>
Share Type Comment
6 shares listed from 6 available
- so now it is easy to mount
mount -F smbfs //<user>@<windows-pc>/<share name> /mnt
- and now you can use e.g. unison to sync the directories
or any copy of file command
that's it - but you also can do it with nautilus (then you don't need any CLI)
- go to "Places" in the top menu
- choose "connect to server"
- enter your credentials