https://help.ubuntu.com/community/Samba/SambaServerGuide
Note: For Ubuntu 8.04 (Hardy) and later, shared directories are created directly from the directory. Browse to the location of the directory you would like to share, right-click the directory, and choose Sharing Options. Click the "Share this folder".
The shares are defined in the background using the "net usershare" command and the definitions are saved in /var/lib/samba/usershares/ . Therefore, shares defined with this method are not visible in smb.conf.
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
Samba Server Configuration by GUI
For Gnome, the package system-config-samba is convenient. Once installed, launch System - Administration - Samba. (Shares created using the "Sharing options" context menu will not be visible in this tool.) Or launch it by searching samba in dashhome. 找到对应的leon用户,然后输入samba 用户名和密码并确定。
A less friendly but also graphical tool is , a web-based interface.