通过swat配置samba

swat页面我们可以看到有8个选项,每个选项可以配置samba的不同功能。
HOME:Samba相关程序及文件说明。
GLOBALS:设置Samba的全局参数。
SHARES:设置Samba的共享参数。
PRINTERS:设置Samba的打印参数。
WIZARD:Samba配置向导。
STATUS:查看和设置Samba的服务状况。
VIEW:查看Samba的文本配置文件,即smb.conf。
PASSWORD:设置Samba用户,可以修改密码,新建删除用户。

① HOME:介绍Samba的相关程序和文件及其使用方法
Daemons:进程,service smb start启动smbd和nmbd。
smbd- the SMB daemon
nmbd – the NetBIOS nameserver
winbindd – the winbind daemon
Configuration Files:配置文件,默认在/etc/samba目录下
smb.conf – the main Samba configuration file
lmhosts – NetBIOS hosts file
smbpasswd- SMB password file
Administrative Utilities:Samba管理工具
smbcontrol- send control messages to Samba daemons
smbpasswd – managing SMB passwords
SWAT – web configuration tool
net- tool for administration of Samba and remote CIFS servers
pdbedit – Samba user account management tool
tdbbackup – Tool for backing up TDB databases
Client Tools:Samba客户端工具
rpcclient – command line MS-RPC client
smbtar – SMB backup tool
smbclient – command line SMB client
smbmnt- helper utility for mounting SMB filesystems on Linux hosts
smbmount – user space tool for mounting SMB filesystems under Linux
smbumount – user space tool for umounting SMB filesystems under Linux
ntlm_auth- allow external programs to use NTLM authentication
smbcquotas – get or set quotas on NTFS 5 shares
smbspool- Send a print job to an SMB printer
smbtree- Text-based SMB network browsing
Diagnostic Utilities:Samba测试工具
smbstatus – monitoring Samba
testparm – validating your config file
nmblookup – NetBIOS name query tool
wbinfo- Tool for getting winbind information
Misc. Utilities:其他工具
profiles – migrating profiles from one domain to another
log2pcap – generate pcap files from samba log files

② GLOBALS:设置Samba的全局参数,即smb.conf文件的[global]。
在GLOBALS中,分为Basic(基本的)和Advanced(高级的,完全的)两个选项。
在Basic选项中可以设置Samba的基本参数。
在每个参数项中有很多的参数可以设置。
Base Options:基础选项
Secutity Options:安全选项
Logging Options:日志选项
Protocol Options:协议选项
Browse Options:浏览选项
WIINS Options:wins选项
EventLog Options:系统日志选项
Winbind Options:winbind选项
在Advanced选项中可以设置Samba的高级参数。
Advanced在Basic的基础上又有一些参数项可供设置,并且每个参数项又有很多参数可供选择。
Tunning Options:系统运行选项
Printing Options:打印选项
Filename Handing:文件名处理
Domain Options:domain选项,在security=domain时,该参数项中参数才生效
Locking Options:锁定选项
Ldap Options:LDAP选项
Miscellaneous Options:杂项
VFS module options:VFS模块选项
在设置完这些参数后,要记得“Commit Changes”保存配置。“Reset Values”是恢复到缺省值。

③ SHARES:设置Samba的共享参数
在SHARES中,也分为Basic和Advanced两个选项。
可以选择共享,删除、创建共享。

④ PRINTERS:设置Samba的打印共享参数
它的设置和SHARES一样。

⑤ WIZARD:Samba设置向导
独立服务、域成员、域控制器。

⑥ STATUS:查看和设置Samba服务状况
在这个选项中可以启动和停止samba服务,可以查看活动的连接、共享,打开的文件等。
有Active Connections、Active Shares、Open Files等选项。

⑦ VIEW:查看Samba的配置文件,即同“cat /etc/samba/smb.conf”

⑧ PASSWORD:密码设置
在这个选项中,可以新建用户,设置或更改密码。
“Change Password:更改密码”、“Add New User:新建用户”、“Delete User:删除用户”、“Disable User:锁定用户”、“Enable User:解锁被锁定用户”。