1. Home
  2. Docs
  3. IT Documentation
  4. File servers
  5. Manually map shares on Linux

Manually map shares on Linux

All devices managed by IST Austria IT, should have the most important network shares mounted automatically when you login to the system. If this is not the case for you device, please contact us at it@ist.ac.at, so we can resolve the issue.

Here are 2 methods for mounting our network shares with Linux:

Using the GUI (Graphical User Interface)

This is the easier way, and also the default configuration for managed devices. (The following screenshots have been taken running the desktop-environment “MATE”, if you run a different environment the windows may look a bit different.)

In your file manager go to “Locations” or “Places” and click “Connect to Server…”:

The following (or similar) window opens:

Here you’ve to choose the correct protocol (“Windows share”, could also be Samba/Cifs)

Servername: istsmb3.ist.local

Shares are either your [ISTUser] (e.g. flastname) or your group (e.g. somegrp). If you add a bookmark, you just click on the bookmark name and the share will open.

For IST devices, such bookmarks have been pre-created for you, you only need to click such bookmark and access your desired share. Also, you should not be asked for a password – please contact us otherwise.

Using the command-line

The command-line option has the advantage, that the share is not different from any other mounted device.

For mounting from the command-line, the command mount.cifs will be used, so please make sure it’s installed. If needed, you can install it on Debian/Ubuntu by:

sudo apt install cifs-utils

You need a folder in your home-directory, which will be used to mount the server to, e.g.:

mkdir sudo /media/fs3_home

Of course, you need to create a folder for every share you want to mount. (e.g. fs3_home, fs3_group, archive3_group,…). Mounting (for example your fs3_home) is fairly simple, just enter:

sudo mount.cifs //istsmb3.ist.local/[ISTUser] [local_mountpoint] -o dom=IST,user=[ISTUser],uid=[your_local_uid],file_mode=0600,dir_mode=0700
  • [ISTUser] … your Username
  • [local_mountpoint] … where to mount the share to (e.g. /media/fs3_home)
  • [your_local_uid] … your local userid, you can get it by: getent passwd [ISTUser]
  • file_mode=0600,dir_mode=0700 … makes sure only your user (userid) has access to the files if you’re on a multi-user system.

Adding the mount into /etc/fstab for persistence

You can put the lines below into /etc/fstab, so you can just mount the shares by executing the following in a terminal window after you logged in. You need to have a valid Kerberos (klist) for this to work.

mount /path/to/share (eg. mount /fs3/group)

after you logged in.

## CIFS network shares
#//istsmb3.ist.local/[somegrp]  /fs3/group  cifs  user,noauto,rw,vers=3.0,sec=krb5i,domain=IST 0 0
#//istsmb3.ist.local/[ISTUser] /fs3/home  cifs  user,noauto,rw,vers=3.0,sec=krb5i,domain=IST  0 0
#//archive3.ist.local/archive-[somegrp] /archive3/group-archive  cifs user,noauto,rw,vers=3.0,sec=krb5i,domain=IST 0 0

If you have any issues or additional questions, please don’t hesitate to contact us via it@ist.ac.at.

Was this article helpful to you? Yes No

How can we help?