个人工具

“共享可读写主文件夹(需授权)”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: == 共享可读写主文件夹(需授权) == *请参阅 如何安装 Samba 服务器来提供 文件/目录 分享的服务? <pre><nowiki> sudo cp /etc/samba/smb.conf...)
 
共享可读写主文件夹(需授权)
 
第37行: 第37行:
 
sudo /etc/init.d/samba restart
 
sudo /etc/init.d/samba restart
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
[[Category:网络]]

2010年5月15日 (六) 02:25的最新版本

共享可读写主文件夹(需授权)

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
  • 搜寻这一行文字
...
; security = user
...
  • 用下面这几行取代
security = user
username map = /etc/samba/smbusers
  • 搜寻这一段文字
...
# By default, the home directories are exported read -only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no
...
  • 用下面这几行取代
# By default, the home directories are exported read -only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = yes
sudo testparm
sudo /etc/init.d/samba restart