When you want to mount a samba to modify the file , there are always some issues :
- all kind of file permission issues
- how to auto mount samba
- Samba server setting
file permission
gid=1000,uid=1000,you can use id command to find your current user info
1 | $ id |
how to auto mount samba
here is my /etc/fstab
1 | //dbs-04/data /nfs/data/ cifs credentials=/home/.smbcredentials,uid=1000,gid=1000 0 0 |
the client user info is in /home/user/.smbcredentials,
1 | $ cat /home/user/.smbcredentials |
my server setting
1 | [data] |
remember add your samba user into your server