Accessing the SMB filesystem with Linux

There are at least two ways to access the SMB network filesystem from Linux, GUI and command line.  Try GUI method first, but large files are slow to download, try the command line method.

Off-campus: Connect to WiscVPN first. Short instructions: install openconnect plugin for networkmanager. Then configure to use the gateway server “wiscvpn.doit.wisc.edu” .

Mounting with GUI file manager

In general, access //smb.physics.wisc.edu/smb and enter your physics username and password. The username might have to have @PHYSICS.WISC.EDU after it.

The following example was illustrated using the Ubuntu 16.04 LiveCD:

Open “Files” on left, choose “Connect to Server”. For Server Address enter smb://smb.physics.wisc.edu/smb , then “Connect”.

Connect As “Registered User”. Enter physics username followed by @PHYSICS.WISC.EDU for username.  Leave Domain unchanged.  Enter physics password.  Select “Connect”.

Congratulations!  You should now see the filesystem contents!

Disconnecting

Eject “smb on smb.physics.wisc.edu” using file manager.

Remove applicable credentials using the Gnome Keyring manager “Seahorse”.

Mounting with CIFS kernel module

Initial setup

Edit /etc/fstab and add the following line, replacing physicsusername with your physics account name:

# the following is a single line to add to /etc/fstab
//smb.physics.wisc.edu/smb /smb cifs sec=krb5,username=physicsusername@PHYSICS.WISC.EDU,user 0 0

Don’t forget to create the mount point directory!

sudo mkdir /smb

Mounting

If you are connecting from off-campus you must first connect to WiscVPN.  Openconnect is a VPN client available in many distributions which works well. If you need help, please email help@physics.wisc.edu

Once you have connected by WiscVPN or are connecting from on-campus follow these instructions:

Open a terminal and get a kerberos ticket for physicsusername@PHYSICS.WISC.EDU:

kinit physicsusername@PHYSICS.WISC.EDU
mount /smb
ls /smb

Congratulations!  You should now see the filesystem contents!

Disconnecting

Open a terminal and run:

umount /smb
kdestroy