mirror of
https://github.com/tiyn/wiki.git
synced 2026-03-18 20:14:47 +01:00
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
# Samba
|
|
|
|
[Samba](../samba.md) is the standard Windows interoperability suite for linux
|
|
and unix.
|
|
|
|
## Usage
|
|
|
|
### Manual Mounting
|
|
|
|
The mounting of Samba shares requires a package containing `mount.cifs` in many
|
|
distributions packaged in the `cifs-utils` package to be installed.
|
|
Samba shares then can be mounted by adapting and running the following example.
|
|
|
|
```sh
|
|
mount -t cifs //<server address>/<share name> <path to mount point> -o username=<username>,password=<password>
|
|
```
|
|
|
|
### Automatic Mounting
|
|
|
|
The mounting of Samba shares requires a package containing `mount.cifs` in many
|
|
distributions packaged in the `cifs-utils` package to be installed.
|
|
To automatically mount Samba shares the following line has to be adapted and added
|
|
to `/etc/fstab`.
|
|
|
|
```txt
|
|
//<server address>/<share name> <path to mountpoint> cifs,nofail credentials=<path to authentication file> 0 0
|
|
```
|
|
|
|
An authentication file looks like the following:
|
|
|
|
```txt
|
|
username=<username>
|
|
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
|
|
```
|