如何在Ubuntu上安装Samba

Ubuntu
2017-02-15 07:37

Contents

1. 安装Samba

sudo apt-get install samba

2. 编辑/etc/samba/smb.conf

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

加入

security = user
username map = /etc/samba/smbusers

[workspace]
	comment = "workspace"
	path = /home/<username>/workspace
	valid users = <username>
	force user = nobody
	force group = nogroup
	group = nogroup
	read only = No
	create mask = 0777
	directory mask = 0777
	directory mode = 0777
	guest ok = Yes

3. 更改Samba 用户密码

sudo smbpasswd -a <username>

4. 测试服务

sudo testparm
sudo service smbd restart
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何在Ubuntu上安装Samba

Ubuntu
2017-02-15 07:37

Contents

1. 安装Samba

sudo apt-get install samba

2. 编辑/etc/samba/smb.conf

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

加入

security = user
username map = /etc/samba/smbusers

[workspace]
	comment = "workspace"
	path = /home/<username>/workspace
	valid users = <username>
	force user = nobody
	force group = nogroup
	group = nogroup
	read only = No
	create mask = 0777
	directory mask = 0777
	directory mode = 0777
	guest ok = Yes

3. 更改Samba 用户密码

sudo smbpasswd -a <username>

4. 测试服务

sudo testparm
sudo service smbd restart
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何在Ubuntu上安装Samba

Ubuntu
2017-02-15 07:37

Contents

1. 安装Samba

sudo apt-get install samba

2. 编辑/etc/samba/smb.conf

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

加入

security = user
username map = /etc/samba/smbusers

[workspace]
	comment = "workspace"
	path = /home/<username>/workspace
	valid users = <username>
	force user = nobody
	force group = nogroup
	group = nogroup
	read only = No
	create mask = 0777
	directory mask = 0777
	directory mode = 0777
	guest ok = Yes

3. 更改Samba 用户密码

sudo smbpasswd -a <username>

4. 测试服务

sudo testparm
sudo service smbd restart
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI