由 eTony 在 09-10-2002 23:47 发表:
关于安装samba服务的一点心得!
关于安装samba服务的一点心得
作者:etony
本文可以转载,但必须注明作者的大名,另外也要把来源于linuxsir.com注明,只有通过来源,才能知道谁是真正的作者。尊重他人就是尊重自己!
致谢:多谢etony兄弟为弟兄们的奉献!
北南 加注
经过几天的忙活,
在参考了各位的大作后,
samba服务配置基本成功了!!!
在配置过程中,感觉有几点值得注意,希望对正在准备配samba的兄弟有所帮助!
1.在[global]下应该有netbios项
它是在windos系统中网上邻居里的显示
如 netbios name = linuxsamba
2.在[global]下建议将安全模式设为共享
即 security = share
由简到繁嘛
3.在[public]下设置共享文件夹的路径
如path = /share
应确保 /share 文件夹确实存在
并删除[public]段前的";"
4.用testparm测试配置文件smb.conf
用 /etc/rc.d/init.d/smb start 重起samba 服务
5.在linux下测试windows时,所用账号应为windows下存在的账号!
6.在linux下挂装windows共享目录是应该用smbmount命令,
据说mount也可以,但我没有成功
7.如果想实现samba的web配置,需安装swat包!
在这个地方我费了很多时间,没有成功!
就是因为我没有安装swat包!
以上几点是我在配samba时,自认为应该注意的地方,
谬误之处请大家指正!
注:我用的是 RH7.3
Seeking Freedom,pure Freedom!
http://211.92.88.40/~tony/
由 北南南北 在 09-11-2002 01:37 发表:
兄弟,辛苦了。
这几点都是极为重要的,对于弟兄们来说,可能就差这样的总结了。samba的基本问题,经过弟兄们的努力,也差不多结束了。如果还有弟兄想实现更多的功能,咱们再研究了。
我总是喜欢说一句话“慢慢来,把基础的先弄好,学习有个过程”。smb的问题也一样,我们只有把基本的实践了。我们才能向更高的目标迈进。
再次感谢etony兄弟为大家奉献。。。
===========================
请弟兄们发帖时要写个好标题,多谢!
===========================
每天以1000KM/H的速度在跑,感觉还是时间不够:(
“西学东渐,洋为中用” + 创造 = ?
linux ppc
由 xishuiinwh 在 09-11-2002 05:03 发表:
真诚感谢!
为了samba,折腾了几个晚上,参考了好多的资料也没有搞定,照着楼上朋友的方法,5分钟就搞定了,我真的非常谢谢楼顶的朋友和热心的版主
由 lanmaster 在 09-11-2002 18:11 发表:
顶楼的老兄。你的那个samab的smb.conf文件里的内容是这是和下面的一样呀。
This is the main Samba configuration file. You should read the
smb.conf(5) manual page in order to understand the options listed
here. Samba has a huge number of configurable options (perhaps too
many!) most of which are not shown in this example
Any line which starts with a ; (semi-colon) or a # (hash)
is a comment and is ignored. In this example we will use a
for commentry and a ; for parts of the config file that you
may wish to enable
NOTE: Whenever you modify this file you should run the command "testparm"
to check that you have not made any basic syntactic errors.
#======================= Global Settings =====================================
[global]
workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MYGROUP
server string is the equivalent of the NT Description field
server string = Samba Server
This option is important for security. It allows you to restrict
connections to machines which are on your local network. The
following example restricts access to two C class networks and
the "loopback" interface. For more examples of the syntax see
the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.
if you want to automatically load your printer list rather
than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
It should not be necessary to spell out the print system type unless
yours is non-standard. Currently supported print systems include:
bsd, sysv, plp, lprng, aix, hpux, qnx
printing = lprng
Uncomment this if you want a guest account, you must add this to /etc/passwd
otherwise the user "nobody" is used
; guest account = pcguest
this tells Samba to use a separate log file for each machine
that connects
log file = /var/log/samba/%m.log
Put a capping on the size of the log files (in Kb).
max log size = 0
Security mode. Most people will want user level security. See
security_level.txt for details.
security = user
Use password server option only with security = server
The argument list may include:
password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
or to auto-locate the domain controller/s
password server = *
; password server =
1<nt-server-name>
2
3
4
5# Password Level allows matching of _n_ characters of the password for
6
7# all combinations of upper and lower case.
8
9; password level = 8
10
11; username level = 8
12
13
14
15# You may wish to use password encryption. Please read
16
17# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
18
19# Do not enable this option unless you have read those documents
20
21encrypt passwords = yes
22
23smb passwd file = /etc/samba/smbpasswd
24
25
26
27# The following is needed to keep smbclient from spouting spurious errors
28
29# when Samba is built with support for SSL.
30
31; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
32
33
34
35# The following are needed to allow password changing from Windows to
36
37# update the Linux system password also.
38
39# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
40
41# NOTE2: You do NOT need these to allow workstations to change only
42
43# the encrypted SMB passwords. They allow the Unix password
44
45# to be kept in sync with the SMB password.
46
47unix password sync = Yes
48
49passwd program = /usr/bin/passwd %u
50
51passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
52
53
54
55# You can use PAM's password change control flag for Samba. If
56
57# enabled, then PAM will be used for password changes when requested
58
59# by an SMB client instead of the program listed in passwd program.
60
61# It should be possible to enable this without changing your passwd
62
63# chat parameter for most setups.
64
65
66
67pam password change = yes
68
69
70
71# Unix users can map to different SMB User names
72
73; username map = /etc/samba/smbusers
74
75
76
77# Using the following line enables you to customise your configuration
78
79# on a per machine basis. The %m gets replaced with the netbios name</nt-server-name>