Update README.md

This commit is contained in:
2024-03-24 14:50:38 +00:00
parent 85de9133f9
commit c9321c0d56

View File

@@ -156,18 +156,27 @@ mount -a
smb share
```
mount -t cifs //ip/share /mnt/backups -o credentials=/path/filename,uid=1000,gid=1000,dir_mode=0755,file_mode=0755
Create credentials file
```
smb share
```
sshfs username@server:/serverpath /targetfolder
#/home/mf/.credentials/smb:mf@nas.lan
username=shareuser
password=sharepassword
domain=domain_or_workgroupname
```
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