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.