[原创]samba图形化配置工具swat

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
shijunbo
帖子: 2
注册时间: 2007-07-12 13:23

[原创]samba图形化配置工具swat

#1

帖子 shijunbo » 2007-07-19 9:22

刚刚接触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 :D

图片

图片
附件
01.png
02.png
上次由 shijunbo 在 2007-07-19 9:37,总共编辑 1 次。
头像
TualatriX
帖子: 359
注册时间: 2006-11-17 20:07
来自: 杭州/宁波
联系:

#2

帖子 TualatriX » 2007-07-19 9:26

不错!
如果楼主贴张图就更好了。
IMTX:http://imtx.cn/

LDCN(已经关闭):http://linuxdesktop.cn/

Ubuntu Tweak:http://ubuntu-tweak.com/
头像
adqin
帖子: 1417
注册时间: 2007-01-24 22:07
来自: http://adqin.cn
联系:

#3

帖子 adqin » 2007-07-19 9:26

不错,是比配置文件要简单些了。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2007-07-19 9:40

viewtopic.php?t=28909&highlight=samba

gui意义不大,那samba本身兼容不好。
● 鸣学
bigglod
帖子: 8
注册时间: 2007-07-16 8:58

#5

帖子 bigglod » 2007-07-19 14:22

安照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
头像
zhshuming
帖子: 22
注册时间: 2007-03-27 10:42
来自: 星城

#6

帖子 zhshuming » 2007-07-19 15:16

看多了配置文件就差不多了.
bigglod
帖子: 8
注册时间: 2007-07-16 8:58

#7

帖子 bigglod » 2007-07-19 20:46

请问我的这个问题要怎样解决呢?!?!?
shijunbo
帖子: 2
注册时间: 2007-07-12 13:23

#8

帖子 shijunbo » 2007-07-20 10:00

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没有安装好?
bigglod
帖子: 8
注册时间: 2007-07-16 8:58

#9

帖子 bigglod » 2007-07-20 14:27

问题解决了~今天重新安装了ubuntu 后再重新安装 samba smbfs 等后,现在可以运了~~~
等一下忙完后再总结一下上一次失败的原因!
bigglod
帖子: 8
注册时间: 2007-07-16 8:58

#10

帖子 bigglod » 2007-07-20 15:44

错误可能是因为 vi 命令与 gedit 两个命令的不同!
vi
文件将在终端中打开,在这种方式打开时,输入有可能会出错!
我的错误可能就在这里~~~对需要输入的文档输入错了!

gedit
文件将会以记事本的方式打开,在这种方式打开,输入错误的机会比较少!


总结完毕~~~哈哈!!!
alphayl
帖子: 8
注册时间: 2007-07-21 2:53

#11

帖子 alphayl » 2007-07-21 12:51

好帮的 帖子!
pferd
帖子: 30
注册时间: 2007-05-15 6:22

#12

帖子 pferd » 2007-08-11 5:18

按照楼主的方法做的,打开swat网页后卫什么我只有很少的选项呢. 请见附件.
附件
screenshot1.png
头像
axzeros
帖子: 26
注册时间: 2007-08-20 12:16

#13

帖子 axzeros » 2007-09-19 13:24

pferd 写了:按照楼主的方法做的,打开swat网页后卫什么我只有很少的选项呢. 请见附件.
偶的和你的一样,正纳闷呢,只有4项,可能是swat没设置好 :D
Fantasy is just the beginning!...
wushicn
帖子: 5
注册时间: 2008-04-16 8:05

#14

帖子 wushicn » 2008-04-21 16:33

LS,要用root用户访问
zyp339025518
帖子: 4
注册时间: 2008-07-28 22:24

#15

帖子 zyp339025518 » 2008-07-28 22:25

楼主,好帖阿! :lol: :lol: :lol: :lol: :lol:
回复