Difference between revisions of "WinShares"

From SGEES Wiki
Jump to navigation Jump to search
 
Line 20: Line 20:
 
* For H drive - <code> gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME </code>
 
* For H drive - <code> gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME </code>
 
where USERNAME is your STAFF login
 
where USERNAME is your STAFF login
 +
 +
Volume will become available as <code>/run/user/NUMBER/gvfs/smb-share/\:server\=stastocoiscifs1.....</code> (NUMBER is your local user ID)
 +
  
 
Note: This syntax works in Ubuntu since 18.04, for older distribution (16.04) use <code>dbus-launch gvfs-mount smb://....</code>  
 
Note: This syntax works in Ubuntu since 18.04, for older distribution (16.04) use <code>dbus-launch gvfs-mount smb://....</code>  

Latest revision as of 02:45, 20 April 2020

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