Debian 10 安装配置samba

samba, smb 在IPMI安装OS的时候非常有用,可以实现远程挂载. 对于远程挂载这种服务来说,可以简单配置一下samba就可以实现.

在debian 10 上安装十分的简单:

apt install samba

编辑samba的配置文件:

删掉/etc/samba/smb.conf文件,用下面的内容代替:

[global]
workgroup = WORDGROUP
netbios name = samba
security = user
map to guest = bad user

[share]
comment = Home Directories
path = /samba/share
browsable =yes
writable = no
guest ok =yes
read only = yes

这个表示目录位于/samba/share. 下面重启samba服务并且写入开机自启动服务:

systemctl restart smbd

systemctl enable smbd

十分的简单,这就完成了

需要挂在OS iso文件,直接放入/samba/share下面就可以了

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.