加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

如何使用加密密码从Linux客户端计算机挂载SAMBA共享文件夹?

发布时间:2020-12-14 02:57:22 所属栏目:Linux 来源:网络整理
导读:我正在尝试设置自动安装网络驱动器.网络驱动器需要用户/通行证.在“mount.cifs”的手册页中,有两种方法可以提供用户/传递. 1-[not recommended] put the user/pass in /etc/fstab2-create a separate credentials file and put the user/pass in the credent
我正在尝试设置自动安装网络驱动器.网络驱动器需要用户/通行证.在“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 / imp / sql cifs credentials = / root / credentials

文件凭据包含用户名和密码(root用户可以读取此文件).密码以纯文本格式存储.

我的问题是如何在CIFS / SAMBA中使用密码加密?

解决方法

客户端必须能够访问明文密码才能对服务器进行身份验证.如果您在客户端上加密密码,则需要另一个(明文)密码来解密加密密码,然后再将其提供给服务器.然后root用户可以使用它来解密加密的Samba密码.

即使客户端有一种方法只是向服务器提供加密密码,您也不会获得任何东西,因为root用户也只需要访问加密密码.

您无法保护系统免受其管理员的侵害.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读