Linux server-install swat
Install swat
Swat is a graphical samba management software that can help unfamiliar people configure samba services flexibly.
1. Install swat
[root@localhost wj] # yum install-y samba-swat
Dependency Updated:
Libsmbclient.i686 0VOR 3.6.23-51.el6 samba.i686 0RU 3.6.23-51.el6
Samba-client.i686 0VOR 3.6.23-51.el6 samba-common.i686 0RU 3.6.23-51.el6
Samba-winbind.i686 0VOR 3.6.23-51.el6 samba-winbind-clients.i686 0RU 3.6.23-51.el6
Complete!
[root@localhost wj] #
2. Modify the swat configuration file "/ etc/xinetd.d/swat"
[root@localhost wj] # gedit / etc/xinetd.d/swat
Service swat
{
Port = 901 / / Port number
Socket_type = stream
Wait = no
Only_from = 127.0.0.1 / / whether only local login is allowed. If you want to log in on other computers, comment out this sentence with #.
User = root
Server = / usr/sbin/swat
Log_on_failure + = USERID
Disable = no / / this must be no, default yes
}
3. Modify the firewall and add port 901 of tcp
[root@localhost wj] # gedit / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 901-j ACCEPT
[root@localhost wj] # service iptables restart
Iptables: set chain to policy ACCEPT: filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
4. Start the swat service
[root@localhost wj] # service xinetd start
Starting xinetd:
5. Type "ip:901" in the browser and you can see a graphical management interface.
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk