歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu利用SWAT管理SAMBA服務器

Ubuntu利用SWAT管理SAMBA服務器

日期:2017/2/28 16:48:27   编辑:Linux教程

  Ubuntu下利用SWAT管理SAMBA服務器

  1、apt-get install xinetd swat依賴xineed才能正常工作

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

  3、修改 vi /etc/inetd.conf

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

  改為

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

如果已去掉了##就可以了。有時也默認就去掉了

  4、新建swat文件 sudo vi /etc/xinetd.d/swat

  內容如下:

  # description: SAMBA SWAT

  service swat

  {

  disable = no

  socket_type = stream

  protocol = tcp

  #should use a more limited user here

  user = root

  wait = no

  server = /usr/sbin/swat

  }

  5、sudo dpkg-reconfigure xinetd

  6、查看swat是否運行

  運行命令: netstat -lt

  如果出現tcp 0 0 *:swat *:* LISTEN,表示swat配置運行成功,正在監聽

  7、 http://localhost:901 大功告成!

如果你不使用ROOT賬號。可能只能監視。只有4個圖標。ubuntu默認是沒有激活ROOT的。

sudo passwd root

輸入兩次密碼。就可以了

Copyright © Linux教程網 All Rights Reserved