samba: add alternative to cifs file

master
tiyn 5 days ago
parent b0c84c4d0c
commit 027410d25e

@ -9,19 +9,32 @@ and unix.
The mounting of Samba shares requires a package containing `mount.cifs` in many The mounting of Samba shares requires a package containing `mount.cifs` in many
distributions packaged in the `cifs-utils` package to be installed. distributions packaged in the `cifs-utils` package to be installed.
Samba shares then can be mounted by adapting and running the following example: Samba shares then can be mounted by adapting and running the following example.
`mount -t cifs //<server address>/<share name> <path to mount point> -o username=<username>,password=<password>`
```sh
mount -t cifs //<server address>/<share name> <path to mount point> -o username=<username>,password=<password>
```
### Automatic Mounting ### Automatic Mounting
The mounting of Samba shares requires a package containing `mount.cifs` in many The mounting of Samba shares requires a package containing `mount.cifs` in many
distributions packaged in the `cifs-utils` package to be installed. distributions packaged in the `cifs-utils` package to be installed.
To automount Samba shares the following line has to be adapted and added To automatically mount Samba shares the following line has to be adapted and added
to `/etc/fstab`: to `/etc/fstab`.
`//<server address>/<share name> <path to mountpoint> cifs,nofail credentials=<path to authentication file> 0 0`.
```txt
//<server address>/<share name> <path to mountpoint> cifs,nofail credentials=<path to authentication file> 0 0
```
An authentication file looks like the following: An authentication file looks like the following:
```txt ```txt
username=<username> username=<username>
password=<password> password=<password>
``` ```
Alternatively the following line can be used inside `/etc/fstab`.
```txt
//<server address>/<share name> <path to mountpoint> cifs,nofail username=<username>,password=<password> 0 0
```

Loading…
Cancel
Save