Update README.md
This commit is contained in:
25
README.md
25
README.md
@@ -156,18 +156,27 @@ mount -a
|
|||||||
|
|
||||||
smb share
|
smb share
|
||||||
|
|
||||||
```
|
Create credentials file
|
||||||
mount -t cifs //ip/share /mnt/backups -o credentials=/path/filename,uid=1000,gid=1000,dir_mode=0755,file_mode=0755
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
#/home/mf/.credentials/smb:mf@nas.lan
|
||||||
smb share
|
username=shareuser
|
||||||
|
password=sharepassword
|
||||||
```
|
domain=domain_or_workgroupname
|
||||||
sshfs username@server:/serverpath /targetfolder
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Secure credentials file permission
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod 0600 /home/mf/.credentials/smb:mf@nas.lan
|
||||||
|
```
|
||||||
|
|
||||||
|
Add line
|
||||||
|
|
||||||
|
```
|
||||||
|
#/etc/fstab
|
||||||
|
//nas.lan/homes /mnt/smb-share:mf@nas.lan,share=homes cifs credentials=/home/mf/.credentials/smb:mf@nas.lan,uid=1000,gid=1000,nofail 0 0
|
||||||
|
```
|
||||||
|
|
||||||
## gio
|
## gio
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user