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

[email protected]:/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

[email protected]:/tom$ sudo mount -t cifs //10.21.76.104/ /tom -o username=tom
Password for [email protected]//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
所以要对挂载的时候加上文件掩码
Linux Samba cannot mount read-only
这样除了root之外的用户不用sudo也能修改里面的文件了

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-11-04
  • 2021-09-17
猜你喜欢
  • 2021-12-20
  • 2021-04-05
  • 2022-12-23
  • 2021-06-27
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案