diff --git a/wiki/linux/samba.md b/wiki/linux/samba.md index 7afc87f..9677ad3 100644 --- a/wiki/linux/samba.md +++ b/wiki/linux/samba.md @@ -9,19 +9,32 @@ and unix. 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: -`mount -t cifs /// -o username=,password=` +Samba shares then can be mounted by adapting and running the following example. + +```sh +mount -t cifs /// -o username=,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 automount Samba shares the following line has to be adapted and added -to `/etc/fstab`: -`/// cifs,nofail credentials= 0 0`. +To automatically mount Samba shares the following line has to be adapted and added +to `/etc/fstab`. + +```txt +/// cifs,nofail credentials= 0 0 +``` + An authentication file looks like the following: ```txt username= password= ``` + +Alternatively the following line can be used inside `/etc/fstab`. + +```txt +/// cifs,nofail username=,password= 0 0 +```