fstab文件挂载认证

fstab文件挂载认证

添加挂载项目:

vim /etc/fstab

//192.168.1.10/IT-Temp/   /mnt    cifs    credentials=/root/.credentials   0 0

认证文件:

cat /root/.credentials

username="test"

passwd="123456"

挂载fstab中定义文件系统:

mount -a
posted @ 2020-03-30 16:04  Beavan  阅读(246)  评论(0)    收藏  举报