Linux Samba cannot mount read-only

装完deepin之后挂载不了Samba服务器

westwood@westwood-PC:/tom$ sudo mount -t cifs //10.21.xx.xxx/tom /tom -o username=tom
mount: /tom: cannot mount //10.21.xx.xxx/tom read-only.

解决方法

https://superuser.com/questions/515777/error-mounting-samba-share-cannot-mount-block-device-xxxx-read-only

$ ls /sbin/mount.cifs
ls: cannot access /sbin/mount.cifs: No such file or directory
$ mount.cifs
The program 'mount.cifs' is currently not installed.  You can install it by typing:
apt-get install cifs-utils

然后可以链接了但是报premission denied

westwood@westwood-PC:/tom$ sudo mount -t cifs //10.21.76.104/ /tom -o username=tom
Password for tom@//10.21.76.104/:  **********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

https://www.cnblogs.com/paul8339/p/7199520.html

Linux挂载Windows共享时,报以下错误:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方法:

用户名和密码用双引号括起

mount -t cifs -o username=“域\用户名”,password=“密码” //10.72.16.111/test /mnt

然后是因为是借助于sudo来挂载的,导致挂载共享硬盘里面的文件全部都只有root能进行修改

Linux Samba cannot mount read-only_第1张图片
所以要对挂载的时候加上文件掩码
Linux Samba cannot mount read-only_第2张图片
这样除了root之外的用户不用sudo也能修改里面的文件了

你可能感兴趣的:(Linux)