Linux Connection (EN)
Prerequisites
cifs-utils
package:
- Arch Linux
Download and install the package.
sudo pacman -S cifs-utils
- Debian / Ubuntu
Download and install the package.
sudo apt install cifs-utils
- Fedora
Download and install the package.
sudo dnf install cifs-utils
- openSUSE
Download and install the package.
sudo zypper install cifs-utils
One-time connection
This connection will be automatically disconnected after the user logs out.
- Connect to one of FIT’s networks (see Remote connection).
Create the directory to which you want to connect the remote home directory.
At the command line, run the following command:
sudo mount.cifs \ //drive.in.fit.cvut.cz/home/<username> \ <mountpoint> \ -o sec=ntlmv2i,file_mode=0700,dir_mode=0700,uid=$UID,user=<username>
- Replace <username> with the CTU username.
Replace <mountpoint> with the existing directory to which you wish to mount the directory.
Recommended parameters:
ntlmv2i
- hashed password transmission and forced packet signing.file_mode=0700,dir_mode=0700
- without these parameters, other users have implicit access to the connected directory.uid=$UID
- ensures access to the connected directory by the currently logged-in user.mountpoint=/media/$USER/drive.in.fit.cvut.cz
- mounts the home directory to a folder visible by a regular file explorer as a network drive with the name "drive.in.fit.cvut.cz".Optional parameters:
gid=100
- provides access to the connected directory to the local groupusers
.
- Log in with the CTU password.
- After a successful connection, you will find the connected home directory in the directory of your choice.
Disconnection
To disconnect a one-time connection, run the following command at the command line:
sudo umount <mountpoint>
Replace <mountpoint> with the existing directory to which you initially mounted the remote directory.