基于上述问题,我的问题是我的samba/cifs密码中确实有'*‘和'&’字符,这些字符指向了行:
if [ -e "$credfile" ]
then
opts=$opts",credentials=$credfile"
smbclientopts="-A "$credfile怎样才能正确地破解密码呢?在信贷文件中
username='user'
password='*pass&word?Secure'这种方式失败了
username=user
password=\*pass\&word\?Secure或修复“smbclientopts="-A "$credfile”
谢谢你的评论。
2020更新:干净pop-os安装
> apt install samba autofs smbclient
> sudo nano /etc/creds/<>
> sudo chmod rw-r-r /etc/creds/<>
> sudo nano /etc/auto.master ###edit: /smb auto.smb --timeout=300
> sudo systemctl restart autofs.service结果:
> the ls /smb/<> show all the shares
> but ls /smb/<>/<>
> ls -l /smb/ccollart/home
> ls: cannot open directory '/smb/ccollart/home': No such file or directorysyslog:
> Feb 5 11:26:33 pop-os kernel: [10292.285802] CIFS: Attempting to mount //ccollart/home
> Feb 5 11:26:33 pop-os kernel: [10292.285816] Unable to determine destination address.然后安装winbind:
sudo apt安装libnss-winbind winbind
顺便说一句,我的本地域名系统确实添加了搜索域= localdomain,DNS同时解析了IPv4 -- "host“和"host.localdomain”
发布于 2020-02-05 19:35:03
我的解决方案是安装CIFS-UTILS,因为FS类型是opts="-fstype=cifs“。
sudo apt安装cifs-utils
但是我所遵循的大多数教程都没有包括这个步骤,也许
https://unix.stackexchange.com/questions/551319
复制相似问题