歡迎您光臨本站 註冊首頁

Ubuntu安裝samba-swat

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

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

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

  3、修改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 大功告成!

[火星人 ] Ubuntu安裝samba-swat已經有308次圍觀

http://coctec.com/docs/linux/show-post-128614.html