由 孙康 在 10-26-2004 17:50 发表:
有关使用Samba设置成NT Primary Domain Server疑问
我已经设置好了Samba设定如下:
>
> 源码:
>
> * * *
>
> # Global parameters
> >
> [global]
> >
> workgroup = ccgd.com
> >
> netbios name = ccgd
> >
> security = user
> >
> encrypt passwords = yes
> >
> smb passwd file = /etc/samba/smbpasswd
> >
> domain logons = yes
> >
> domain master =yes
> >
> preferred master = yes
> >
> local master =yes
> >
> os level = 64
> >
> #logon path = \%N\profiles%u
> >
> #logon drive = H:
> >
> #logon home = \homeserver%u\winprofile
> >
> #logon script =scripts%U.bat
> >
> wins support = yes
> >
> #add machine script = /usr/sbin/useradd -d /dev/null -g 421 \
> >
> #-s /bin/false -m %u; passwd -l %u
> >
>
> >
> [netlogon]
> >
> path = /var/lib/samba/netlogon
> >
> read only = yes
> >
> browseable = no
> >
> share modes = no
> >
>
> >
> #[profiles]
> >
> #path = /var/lib/samba/profiles
> >
> #read only = no
> >
> #create mask = 0600
> >
> #directory mask = 0700
> >
>
>
> * * *
设置用户号时,完全依据说明书中的指示作:
1. 设置Linux机器友善用户号:
root# useradd -g machines -d /dev/null -c "machine nickname" -s /bin/false machine_name$
root# passwd -l machine_name$
2. 在Samba中增加机器用户:
root# smbpasswd -a -m machine_name
3. 增加Linux系统用户:(testing)
root# useradd testing
4. 增加Samba用户:(password testing)
root# smbpasswd -a testing
5. 重启Samba
在试用XP进入时,成功显示Logon提示,但是输入呼号(testing)和密码(testing)后却返回错误:
The following error occured attempting to join the domain "ccgd.com"
Access is Denied
请问问题出现在哪?需要如何修正这问题?
1
2学习不能懒!千万不要懒!
3
4用Linux的都不是懒惰鬼!
5
6一定要常查看“男人”和置顶占子!
7
由 孙康 在 10-27-2004 12:14 发表:
顶一下
有哪位大侠可以帮忙?
相信是用户户口设置方面出现问题。有谁或许可以详细告知有关此项目中,用户户口设置的基本要求?
1
2学习不能懒!千万不要懒!
3
4用Linux的都不是懒惰鬼!
5
6一定要常查看“男人”和置顶占子!
7
由 windyzhang 在 10-27-2004 13:03 发表:
可能profiles的权限问题?
由 孙康 在 10-27-2004 14:09 发表:
可以给予可以实现的例子么?
1
2学习不能懒!千万不要懒!
3
4用Linux的都不是懒惰鬼!
5
6一定要常查看“男人”和置顶占子!
7
由 孙康 在 10-27-2004 15:16 发表:
可以给予可以实现的例子么?
1
2学习不能懒!千万不要懒!
3
4用Linux的都不是懒惰鬼!
5
6一定要常查看“男人”和置顶占子!
7
由 河边星星 在 10-27-2004 15:45 发表:
[global]
workgroup = SERVER
netbios name = SHLINUX
server string = Samba PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 90
preferred master = yes
local master = yes
domain master = yes
domain logons = yes
security = user
admin users = sp02001
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size =50
logon home = \%L%u
logon drive = M:
logon path = \%L\profiles%U
logon script = %U.bat
logon script = logon.bat
ldap ssl = no
time server = Yes
dns proxy = No
interfaces = eth0, 192.168.7.112
winbind trusted domains only = Yes
bind interfaces only = Yes
dos charset = CP950
unix charset = CP950
hosts allow = 192.168.1., 192.168.7., 127.0.0.1
[profiles]
path = /public/sambapdc/profiles
writeable = yes
browseable = no
create mask = 700
directory mask = 700
force directory mask = 2700
[netlogon]
comment = Network Logon Service
path = /public/sambapdc/netlogon
read only = yes
guest ok = yes
browseable = no
Redhat AS3(Taroon)_2.4.21-4.ELsmp+RTL-8139+WD80GJB+HY 512M
Giga-byte:Intel_865+Pentium2.6G+AC'97+Integrated Graphics Device
本人是吃菜的鸟...
近期关注点LDAP...........
由 河边星星 在 10-27-2004 15:47 发表:
cut -d: -f1,5 /etc/passwd | grep ^s[emnlpar][0-9][0-9][0-9][0-9][0-9] > users
for user in $(cut -d: -f1 users)
do
echo "net use y: \\\192.168.7.112\samba /y" > $user.bat;
dep=$(grep $user users | cut -d: -f2);
echo "net use x: \\\192.168.7.112\$dep /y" >> $user.bat;
done
为%U.bat文件制作方法
Redhat AS3(Taroon)_2.4.21-4.ELsmp+RTL-8139+WD80GJB+HY 512M
Giga-byte:Intel_865+Pentium2.6G+AC'97+Integrated Graphics Device
本人是吃菜的鸟...
近期关注点LDAP...........
由 河边星星 在 10-27-2004 15:48 发表:
[root@shlinux sambapdc]# ls -ld *
drwxrwxrwt 2 root root 4096 Oct 27 15:54 netlogon/
drwxrwxrwt 34 root root 4096 Oct 21 10:09 profiles/
Redhat AS3(Taroon)_2.4.21-4.ELsmp+RTL-8139+WD80