[原创]samba图形化配置工具swat
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 2
- 注册时间: 2007-07-12 13:23
[原创]samba图形化配置工具swat
刚刚接触Linux没多久,觉得现在的linux还真好用多了。昨天想弄一下samba,翻看了一下论坛的帖子,发现都是讲怎么改配置文件的,原先我在HP-UX上装samba都是用swat配置的。觉得用图形化的配置工具比较方便,特别是对新手来说。废话不多说,把我昨天搞定samba的经验各位和我一样的新手交流一下。
1.安装samba
sudo apt-get install samba
sudo apt-get install smbfs
2.安装swat
sudo apt-get install swat
3.这一步比较重要,安装xinetd
sudo apt-get install xinetd
4.安装后执行
sudo vi /etc/inetd.conf
这一行前面如果有#off# 的话就删除掉#off#
#off# swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/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
}
保存后执行
sudo dpkg-reconfigure xinetd
5.然后就可以使用swat了,访问http://localhost:901 就可以配置了,一般的先配置global 里面的security等选现,然后配置shares,再在password里面配置用户,最后可以在status里面控制samba的状态。这些就不多说了,能用linux的一般都有比较好的基础,摸索一下应该都能够搞定的。欢迎大家交流经验。
上两张PP
1.安装samba
sudo apt-get install samba
sudo apt-get install smbfs
2.安装swat
sudo apt-get install swat
3.这一步比较重要,安装xinetd
sudo apt-get install xinetd
4.安装后执行
sudo vi /etc/inetd.conf
这一行前面如果有#off# 的话就删除掉#off#
#off# swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/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
}
保存后执行
sudo dpkg-reconfigure xinetd
5.然后就可以使用swat了,访问http://localhost:901 就可以配置了,一般的先配置global 里面的security等选现,然后配置shares,再在password里面配置用户,最后可以在status里面控制samba的状态。这些就不多说了,能用linux的一般都有比较好的基础,摸索一下应该都能够搞定的。欢迎大家交流经验。
上两张PP
上次由 shijunbo 在 2007-07-19 9:37,总共编辑 1 次。
- TualatriX
- 帖子: 359
- 注册时间: 2006-11-17 20:07
- 来自: 杭州/宁波
- 联系:
- adqin
- 帖子: 1417
- 注册时间: 2007-01-24 22:07
- 来自: http://adqin.cn
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 8
- 注册时间: 2007-07-16 8:58
安照LZ的方法做了一次,到最后打开---http://localhost:901 时说无法访问!
这是什么原因咩!
第四步我改用
sudo gedit /etc/inetd.conf 对inetd.conf进行编缉 并添加了swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat 并保存!
第五步
接着同样运用
sudo gedit /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
}
后保存
第六步
然后输入:
sudo dpkg-reconfigure xinetd
提示:
Stopping internet superserver: xinetd.
Stopping internet superserver: xinetd.
Leaving `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
Starting internet superserver: xinetd.
再在浏览输入:http://localhost:901
提示 无法访问!这是什么原因呢!请LZ帮忙解决一下!
第四与第五原语句应是:sudo vi xxxxxxxxx 的,但我的系统不能用 VI 这个命令!所以改用gedit
这是什么原因咩!
第四步我改用
sudo gedit /etc/inetd.conf 对inetd.conf进行编缉 并添加了swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat 并保存!
第五步
接着同样运用
sudo gedit /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
}
后保存
第六步
然后输入:
sudo dpkg-reconfigure xinetd
提示:
Stopping internet superserver: xinetd.
Stopping internet superserver: xinetd.
Leaving `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
Starting internet superserver: xinetd.
再在浏览输入:http://localhost:901
提示 无法访问!这是什么原因呢!请LZ帮忙解决一下!
第四与第五原语句应是:sudo vi xxxxxxxxx 的,但我的系统不能用 VI 这个命令!所以改用gedit
-
- 帖子: 2
- 注册时间: 2007-07-12 13:23
bigglod 写了:安照LZ的方法做了一次,到最后打开---http://localhost:901 时说无法访问!
这是什么原因咩!
第四步我改用
sudo gedit /etc/inetd.conf 对inetd.conf进行编缉 并添加了swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat 并保存!
第五步
接着同样运用
sudo gedit /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
}
后保存
第六步
然后输入:
sudo dpkg-reconfigure xinetd
提示:
Stopping internet superserver: xinetd.
Stopping internet superserver: xinetd.
Leaving `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
Starting internet superserver: xinetd.
再在浏览输入:http://localhost:901
提示 无法访问!这是什么原因呢!请LZ帮忙解决一下!
第四与第五原语句应是:sudo vi xxxxxxxxx 的,但我的系统不能用 VI 这个命令!所以改用gedit
安装了SWAT之后 inetd.conf中应该会有swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat的,你的没有是不是因为SWAT没有安装好?
-
- 帖子: 8
- 注册时间: 2007-07-16 8:58
-
- 帖子: 8
- 注册时间: 2007-07-16 8:58
- axzeros
- 帖子: 26
- 注册时间: 2007-08-20 12:16
-
- 帖子: 4
- 注册时间: 2008-07-28 22:24