我正在尝试设置一个自动安装的networking驱动器。 networking驱动器需要用户/通行证。 在“mount.cifs”的手册页中有两种方法来提供用户/密码。
1-[not recommended] put the user/pass in /etc/fstab 2-create a separate credentials file and put the user/pass in the credentials file
cat / etc / fstab //192.168.1.17/imp/sql/imm/cifs cifs credentials = / root / credentials
文件凭证包含用户名和密码(root用户可以读取此文件)。 并且密码以纯文本forms存储。
我的问题是如何在CIFS / SAMBA中使用密码encryption?
客户端必须能够访问明文密码才能对服务器进行身份validation。 如果您在客户端上encryption密码,则在将密码提供给服务器之前,您需要使用另一个(明文)密码来解密encryption的密码。 然后root用户可以使用它来解密encryption的Samba密码。
即使客户端只是提供encryption密码给服务器,也不会有什么收获,因为root用户也只需要访问encryption密码。
您无法保护系统不受其pipe理员的影响。