|
os: turbolinux10
以下为本人的smb.conf文件的配置
# Samba config file created using SWAT
2 # from 127.0.0.1 (127.0.0.1)
3 # Date: 2001/06/26 06:11:09
4
5 # Global parameters
6 [global]
7 workgroup = sharefolder.com
8 netbios name = smbserver
9 server string = Samba Server %v
10 dos charset = cp936
11 unix charset = gb2312
12 log level = 1
13 syslog = 0
14 log file = /var/log/samba/%U
15 max log size = 50
16 time server = yes
17 wins support = yes
18 security = user
19 domain logons = yes
20 logon script = %g.bat
21 logon path = \\%L\profile\%u
22 logon drive = Z:
23 os level = 65
24 dos filetimes = yes
25 interfaces = eth1, eth2, lo
26 deadtime = 5
27 hosts allow = 192.168.0., 192.168.1., 192.168.5.,127.
28 preferred master = Yes
29 preserve case = yes
30 short preserve case = yes
31 default case = lower
32 case sensitive = yes
33 smb passwd file = /etc/samba/smbpasswd
34 domain master = Yes
35 local master = yes
36 unix password sync = Yes
37
38 #change password form windows client
39
40 encrypt passwords = yes
41 bind interfaces only = Yes
42 pam password change = Yes
43 passwd program = /usr/bin/passwd %u
44 passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n *P assword*changed*
45 username map = /etc/samba/smbusers
46 unix password sync = No
47
48 show add printer wizard = No
49 add user script = /usr/sbin/useradd -m '%u'
50 delete user script = /usr/sbin/userdel -r '%u'
51 add group script = /usr/sbin/groupadd '%g'
52 delete group script = /usr/sbin/groupdel '%g'
53 add user to group script = /usr/sbin/usermod -G '%g' '%u'
54 add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u '
55 shutdown script = /var/lib/samba/scripts/shutdown.sh
56 abort shutdown script = /sbin/shutdown -c
57 utmp = yes
58 winbind use default domain = yes
59 map acl inherit = yes
60 cups options = raw
61 veto files = /*.eml/*.nws/*.{*}/
62 vveto oplock files = /*.doc/*.xls/*.mdb/
63
64 [netlogon]
65 comment = netlogon service
66 path = /etc/samba/netlogon
67 read only = no
68 browseable = yes
69 share modes = Yes
70
71 [profile]
72 comment = user profiles
73 path = /etc/samba/profiles
74 read only = no
75 browseable = yes
76 create mask = 0600
77 directory mask = 0700
78
79 include = /etc/samba/share.conf
以下为share.conf文件配置
[root@myrice samba]# vi share.conf
1 [homes]
2 comment = home directories for sharefolder domain users
3 # path = %H
4 # valid users = %S
5 readonly = No
6 browseable = No
7 # writable = Yes
8
9 [management]
10 path = /home/management
11 valid users = @management
12 read only = No
13
14 [assistant]
15 path = /home/assistant
16 valid users = @assistant
17 read only = No
18
19 [legal]
20 path = /home/legal
21 valid users = @legal
22 read only = No
23
24 [Finance]
25 path = /home/Finance
26 valid users = @finance
27 read only = No
28
29 [HR]
30 path = /home/HR
31 valid users = @hr
32 read only = No
33
34 [portal]
35 path = /home/portal
36 valid users = @portal @InformationDept @CommunityDept @RDDept @n etMarketingDept @MediaSales @PortalCS
37 read only = No
38
39 [portal_informationDept]
40 path = /home/portal/informationDept
41 valid users = @portal @InformationDept
42 browseable = no
43
44 [portal_CommunityDept]
45 path = /home/portal/CommunityDept
46 valid users = @portal @CommunityDept
47 browseable = no
48
49 [portal_RDDept]
50 path = /home/portal/RDDept
51 valid users = @portal @RDDept
52 browseable = no
53
54 [portal_InternetMarketingDept]
55 path = /home/portal/InternetMarketingDept
56 valid users = @portal @netMarketingDept
57 browseable = no
58
59 [portal_MediaSales]
60 path = /home/portal/MediaSales
61 valid users = @portal @MediaSales
62 browseable = no
63
64 [portal_CS]
65 path = /home/portal/CS
66 valid users = @portal @PortalCS
67 browseable = no
68
69 [esolu_pub]
70 path = /home/esolution
71 valid users = @esolution
72 read only = No
73
74 [webdes_pub]
75 path = /home/webdesign
76 valid users = @webdesign
77 read only = No
78
79 [market_pub]
80 path = /home/marketing
81 valid users = @marketing
82 read only = No
83
84 [wireless]
85 path = /home/SH_wireless
86 valid users = @wireless @TechnologyTeam @ProductTeam @wirelessCS
87 read only = No
88
89 [wireless_TechnologyTeam]
90 path = /home/SH_wireless/TechnologyTeam
91 valid users = @wireless @TechnologyTeam
92 read only = No
93
94 [wireless_ProductTeam]
95 path = /home/SH_wireless/ProductTeam
96 valid users = @wireless @ProductTeam
97 read only = No
98
99 [wireless_CS]
100 path = /home/SH_wireless/CS
101 valid users = @wireless @wirelessCS
102 read only = No
103
104 [network]
105 path = /home/Network
106 valid users = @network
107 read only = No
108
109 [software]
110 path = /home/software
111 readonly = no
112 browseable = yes
113 writable = yes
114 write list = @network
以上配置清单为samba做为PDC域控制器的配置.重启服务以后win2000,xp可以加入到PDC域中并可使用域登录方式.但现在有一个问题,当用户使用域登录以后,以前XP上的很多软件都出现问题,或者有些软件不能使用.也不能安装软件,我用root帐号登录也不行.请教各位大仙有谁知道问题出在什么地方,告诉一下小弟. |
|