Ubuntu 12.04 搭建 SAMBA-SWAT(Samba Web 管理工具)
2015-09-24 10:53
483 查看
参考了:http://linux.chinaunix.net/techdoc/net/2007/03/14/952274.shtml,对其进行了部分修改完善。
依次执行
1、sudo apt-get samba samba-common smbfs smbclient swat
2、apt-get install xinetd swat依赖xineed才能正常工作
3、修改xinetd.conf (路径位置为:root@ubuntu:/etc#
vim xinetd.conf)
添加:swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
注意放在default 括号之外
---------------------------------------------------
root@ubuntu:/etc# cat xinetd.conf
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line
to be able to use log_on_success
# and log_on_failure. The default is the
following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d
swat stream tcp nowait.400 root
/usr/sbin/tcpd \ /usr/sbin/swat
-------------------------------------------------------
4、新建swat文件
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配置运行成功,正在监听
--------------------------
root@ubuntu:/etc# netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp
0 0 *:swat *:* LISTEN
---------------------------------
7、
http://localhost:901
这里使用的是IP访问
大功告成!
依次执行
1、sudo apt-get samba samba-common smbfs smbclient swat
2、apt-get install xinetd swat依赖xineed才能正常工作
3、修改xinetd.conf (路径位置为:root@ubuntu:/etc#
vim xinetd.conf)
添加:swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
注意放在default 括号之外
---------------------------------------------------
root@ubuntu:/etc# cat xinetd.conf
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line
to be able to use log_on_success
# and log_on_failure. The default is the
following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d
swat stream tcp nowait.400 root
/usr/sbin/tcpd \ /usr/sbin/swat
-------------------------------------------------------
4、新建swat文件
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配置运行成功,正在监听
--------------------------
root@ubuntu:/etc# netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp
0 0 *:swat *:* LISTEN
---------------------------------
7、
http://localhost:901
这里使用的是IP访问
大功告成!
相关文章推荐
- STL之三:deque用法详解
- JQuery学习(2)之Ajax
- 【6】Windows客户端C/C++编程规范“建议”——宏
- 马良建模学习笔记——软包制作十
- 日志分析统计PV UV 独立IP
- Android基础入门教程——2.4.9 GridView(网格视图)的基本使用
- ios9 总结
- USG2000/5000 透明模式
- IOS 自定义字体
- 2023求平均成绩
- LeetCode Move Zeroes
- LINQ to SQL语句
- 集群配置
- hoj2298Toxophily【二分+三分】
- 【5】Windows客户端C/C++编程规范“建议”——结构
- java学习笔记IO输入与输出——IO字符流(3)
- Unity协程(Coroutine)原理深入剖析
- 获取隐藏元素的尺寸
- Unity小地图遮罩Shader
- STL之一:字符串用法详解