安装centos时在防火墙中开启文件共享服务,并选择安装文件共享服务器2.启动 Samba 服务。
# chkconfig smb on ← 设置 Samba 自启动
# service smb start← 启动Samba服务
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]# smbpasswd -a root ← 将系统用户 root 加入到 Samba 用户数据库
New SMB password: ← 输入该用户用于登录 Samba 的密码
Retype new SMB password: ← 再次确认输入该密码
Added user centospub.
# chkconfig smb on ← 设置 Samba 自启动
# service smb start← 启动Samba服务
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]# smbpasswd -a root ← 将系统用户 root 加入到 Samba 用户数据库
New SMB password: ← 输入该用户用于登录 Samba 的密码
Retype new SMB password: ← 再次确认输入该密码
Added user centospub.