- Samba软件安装
apt-get install samba
- Samba客户端安装
apt-get install smbclient
- Samba启动
/etc/init.d/samba start
service samba start
- Samba关闭
/etc/init.d/samba stop
service samba stop
- Samba重启
/etc/init.d/samba restart
service samba restart
- Samba服务查看
ps -aux
- 备份Samba配置文件
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
- 将文件中的内容做如下相应修改:
#security=user 后面添加:security=share
在文件结尾添加如下行:
[share]
comment=this is Linux share
directorypath=/home/myth/share
public=yes
writable=yes
- 添加samba用户
sudo smbpasswd -a qina
输入密码后即可使用
网友评论