如何配置autofs/automount,使每个用户都能完全访问自动安装的CIFS共享?
这就是我目前所配置的:
/mnt /etc/auto.htpc --ghosthtpc -fstype=cifs,username=content,password=content ://192.168.0.2/Content只要用户是根用户,它就能很好地工作。
我尝试过添加uid=fred,guid=fred,但最终允许"fred“用户读写访问,所有其他用户都会被”拒绝“权限。
我也尝试过添加umask=000,但是只有root才有访问权限。
发布于 2023-03-25 11:49:54
将/etc/auto.htpc改为:
htpc -fstype=cifs,rw,file_mode=0777,dir_mode=0777,username=content,password=content ://192.168.0.2/Content,这将允许任何用户从挂载点进行读写。
https://unix.stackexchange.com/questions/518013
复制相似问题