Ubuntu uses SWAT to manage SAMBA servers

Source: Internet
Author: User
Ubuntu manages SAMBA server with SWAT 1. apt-getinstallxinetdswat depends on xineed to work normally 2. sudoapt-getsambasamba-commonsmbfssmbclientswat3, modify vi/etc/inetd. conf will # swatstreamtcpnowait.400root/

Use SWAT to manage SAMBA servers in Ubuntu

1. apt-get install xinetd swat depends on xineed to work normally

2. sudo apt-get samba-common smbfs smbclient swat

3. Modify vi/etc/inetd. conf

Set # swat stream tcp nowait.400 root/usr/sbin/tcpd \/usr/sbin/swat

Change

Swat stream tcp nowait.400 root/usr/sbin/tcpd \/usr/sbin/swat

If you have removed #, you can. Sometimes it is removed by default.

4. Create the swat file sudo vi/etc/xinetd. d/swat.

The content is as follows:

# Description: SAMBA SWAT

Service swat

{

Disable = no

Socket_type = stream

Protocol = tcp

# Shoshould use a more limited user here

User = root

Wait = no

Server =/usr/sbin/swat

}

5. sudo dpkg-reconfigure xinetd

6. Check whether swat is running.

Run the command: netstat-lt

If tcp 0 0 *: swat *: * LISTEN is displayed, the swat configuration runs successfully and is being monitored.

7. http: // localhost: 901 success!

If you do not use the ROOT account. Only monitoring is possible. There are only four icons. Ubuntu does not activate ROOT by default.

Sudo passwd root

Enter the password twice. You can.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.