操作步骤
1.安装samba
apt-get install samba
apt-get install smbclient
2.启动Samba服务器只需执行如下命令:
#sudo /etc/init.d/samba start
关闭Samba服务器:
#sudo /etc/init.d/samba stop
重新启动Samba服务器:
#sudo /etc/init.d/samba restart
3.配置samba服务
mkdir /wealth/share vim /etc/samba/smb.conf
配置
[share] comment = Share Folder browseable = yes path = /wealth/share create mask = 0777 directory mask = 0777 public = yes writable = yes available = yes
4.重启samba服务 访问测试
/etc/init.d/smbd restart
结果示意图
转载请注明:苏demo的别样人生 » ubuntu 安装samba 共享文件服务