Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux server-install swat

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report