# "不允许一个用户使用一个以上用户名与服务器或共享资源的多重连接"
C: 之前曾经与主机成功进行连接,连接断开后未将连接状态清除
$: net use */del /y
# "samba配置相关点"
配置文件所在位置
$: /etc/samba/smb.conf
查看samba服务状态
$: service smb status
查看samba安装状态
$: rpm -qa | grep samba
安装/卸载samba所有依赖关系包
$: sudo yum install -y samba*
$: sudo yum move -y samba*
#: For example:Samba configuration quickly
$: sudo mkdir /home/share
$: sudo vi /etc/samba/smb.conf
shift + g
a
[share]
comment = public area
path = /home/share
browseable = no
public = yes
writable = yes
Esc wq
$: sudo chown -R nobody:nobody /home/share
$: sudo service smb start
# $:不要设置security = user 和passdb backed = tdbsam,如果设置了,用分号注销掉。