smb linux 挂载参考说明

主要记录下linux 挂载smb 的配置以及包含密码的使用说明

软件包准备

yum install cifs-utils

挂载

包含认证的,使用credentials 配置选项

//server_name/share_name  /mnt  cifs  credentials=/root/smb.cred  0 0

credentials 格式

配置权限 chmod 600 /root/smb.cred

username=user_name
password=password
domain=domain_name

参考资料

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/mounting_an_smb_share

posted on 2022-10-22 01:04  荣锋亮  阅读(142)  评论(0编辑  收藏  举报

导航