how to share directory between windows and opensolaris

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?

  1. svcadm enable smb/client
  2. to see what shares are available
    smbutil view //<user>@<windows-pc>
    Password:

    shows e.g.


    Share        Type       Comment
    -------------------------------
    ADMIN$       festplatte
    C$           festplatte
    fotos        festplatte
    H            festplatte
    IPC$         IPC       
    sortiert     festplatte

    6 shares listed from 6 available

  3. so now it is easy to mount
    mount -F smbfs //<user>@<windows-pc>/<share name> /mnt

  4. 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)

  1. go to "Places" in the top menu
  2. choose "connect to server"
  3. enter your credentials
  4. done ;-)
Kommentare:

Senden Sie einen Kommentar:
  • HTML Syntax: Ausgeschaltet
About

blincks and hints around my work

Search

Categories
Archives
« April 2014
MoDiMiDoFrSaSo
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Heute
Friends
News

No bookmarks in folder

Blogroll

No bookmarks in folder