fstab

To implement Shares in fstab open /etc/fstab as root.

Mount U

# U share mount from user /mnt/BFH Account
//data-be.bfh.ch/BFH Account              /mnt/BFH Account  cifs    _netdev,noauto,user,username=BFH Account,domain=bfh.ch,vers=3.0 0 0

Mount:

mount /mnt/BFH Account

Mount P

# P share mount to /mnt/P
//data-be.bfh.ch/Share                    /mnt/P          cifs    _netdev,noauto,user,username=BFH Account,domain=bfh.ch,vers=3.0 0 0

List of Shares

  • data-ahb
  • data-hafl
  • data-hkb
  • data-services
  • data-ti

WGS old

  • data-wgs

WGS new

  • data-g
  • data-s
  • data-w

Mount share “Scan to Folder”

# Scan Folder /mnt/scan
//app-smb-be.bfh.ch/scan                  /mnt/scan       cifs    _netdev,noauto,user,username=BFH Account,domain=bfh.ch,vers=3.0 0 0

Mount transfer

# Scan Folder /mnt/transfer
//data-be.bfh.ch/pool                  /mnt/transfer       cifs    _netdev,noauto,user,username=BFH Account,domain=bfh.ch,vers=3.0 0 0

Hint

As BFH Account please provide your username (eg. 3-5 letters followed by a number).

Automount shares

To be able to mount the above shares automatically, the recommended way is to use pam_automount module. This will soon be documented. In the meantime a .smbcredentials file can be used.

cat > /path/to/.smbcredentials << EOF
username = user1
password = yourverysecretpassword123
domain = bfh
EOF

Replace the user and password as needed.

Alter the above mentioned fstab entries as follows.

//data-be.bfh.ch/BFH Account              /mnt/BFH Account  cifs    _netdev,user,credentials=/path/to/.smbcredentials,vers=3.0 0 0

Warning

Although it is possible, it is not recommended to use a .smbcretentials file as one writes his password plaintext on the filesystem.