我成功挂载了 Synology NAS Samba 共享,并附加了/etc/fstab
以下行:
//192.168.1.91/shared /media/shared cifs uid=viktor,credentials=/home/viktor/.champignac,user,iocharset=utf8,sec=ntlm 0 0
//192.168.1.91/home /media/home cifs uid=viktor,credentials=/home/viktor/.champignac,user,iocharset=utf8,sec=ntlm 0 0
//192.168.1.91/photo /media/photo cifs uid=viktor,credentials=/home/viktor/.champignac,user,iocharset=utf8,sec=ntlm 0 0
然而,我希望每个用户都使用自己的凭据登录这些共享,这些凭据将共享映射/home
到他们自己的目录。我该如何处理这个问题?这可以使用fstab
and吗cifs
?
先感谢您!