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能进行修改

在这里插入图片描述
所以要对挂载的时候加上文件掩码
在这里插入图片描述
这样除了root之外的用户不用sudo也能修改里面的文件了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值