WinShares

From SGEES Wiki
Revision as of 02:45, 20 April 2020 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It's possible to get files from your Windows account ("disks H: and M:") via SMB protocol.

Check if you have GVFS and CIFS (samba) installed and install if necessary:

sudo apt install gvfs gvfs-backends cifs-utils

From any file manager which supports SMB (Dolphin, Thunar, Nautilus). Also works for MacOS Finder ("Go->Connect to server")

  • For M drive - smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/
  • For H drive - smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME

where USERNAME is your STAFF login

  • domain name: staff
  • login: your_windows_login
  • password: Your Staff (Windows) password
  • [x] Remember Password

From command line as ordinary user

  • For M drive - gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/
  • For H drive - gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME

where USERNAME is your STAFF login

Volume will become available as /run/user/NUMBER/gvfs/smb-share/\:server\=stastocoiscifs1..... (NUMBER is your local user ID)


Note: This syntax works in Ubuntu since 18.04, for older distribution (16.04) use dbus-launch gvfs-mount smb://....

With mount (user must be in sudo group):

sudo mount -t cifs -o domain=staff,username=your_windows_login //stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_home/your_windows_login/ /Path/to/mount/point/of/windows/home_drive

sudo mount -t cifs -o domain=staff,username=your_windows_login //stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_shared/ /Path/to/mount/point/of/shared_drive