samba错误

1.session setup failed: NT_STATUS_LOGON_FAILURE

  该错误表示用户有误, 可能是用户不存在, 也有可能是密码错误, 或者用户只是在samba和系统的用户中的一个地方存在, 总之是用户和密码有问题
2. tree connect failed: NT_STATUS_BAD_NETWORK_NAME
  这个错误则表示共享目录有误, 可能是目录不存在, 或者权限不对

3、[root@ samba]# wbinfo -t------------该问题百思不得其解
could not obtain winbind interface details!
could not obtain winbind domain name!
checking the trust secret for domain (null) via RPC calls failed
Could not check secret
[root@samba]# wbinfo -u
Error looking up domain users
[root@samba]# wbinfo -g
Error looking up domain groups

---------------------------------

[root@ruskyserver admin]# ps -ef| grep winbind
root     17046     1  0 14:10 ?        00:00:00 winbindd
root     17048 17046  0 14:10 ?        00:00:00 winbindd
root     17523 14691  0 15:15 pts/0    00:00:00 grep winbind
[root@ruskyserver admin]# service winbind restart
Shutting down Winbind services:                            [  OK  ]
Starting Winbind services:                                 [  OK  ]
[root@ruskyserver admin]# ps -ef | grep winbindd
root     17537     1  0 15:15 ?        00:00:00 winbindd
root     17539 17537  0 15:15 ?        00:00:00 winbindd
root     17543 14691  0 15:16 pts/0    00:00:00 grep winbindd
[root@ruskyserver admin]# ps -ef | grep smbd
root     16407     1  0 14:05 ?        00:00:00 /usr/local/samba3/sbin/smbd -s 

/etc/samba/smb.conf -D -d 10
root     16408 16407  0 14:05 ?        00:00:00 /usr/local/samba3/sbin/smbd -s 

/etc/samba/smb.conf -D -d 10
root     17545 14691  0 15:16 pts/0    00:00:00 grep smbd
[root@ruskyserver admin]# ps -ef | grep nmbd
root     16410     1  0 14:05 ?        00:00:00 /usr/local/samba3/sbin/nmbd -s 

/etc/samba/smb.conf -D -d 10
root     17547 14691  0 15:16 pts/0    00:00:00 grep nmbd
[root@ruskyserver admin]# getent passwd-------能读取到域控主机上的用户及组信息
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
…………
[root@ruskyserver admin]# getent group
root:x:0:
bin:x:1:bin,daemon
daemon:x:2:bin,daemon
sys:x:3:bin,adm
adm:x:4:adm,daemon
tty:x:5:
disk:x:6:
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:
mail:x:12:mail,postfix
uucp:x:14:
man:x:15:
…………
[root@ruskyserver admin]# wbinfo -t
could not obtain winbind interface details!
could not obtain winbind domain name!
checking the trust secret for domain (null) via RPC calls failed
Could not check 

4、[root@samb]# net ads join========域控主机上没有root用户,必须加-U参数 net ads join -U username
Enter root's password:
Failed to join domain: failed to lookup DC info for domain 'IAMTEST.COM' over rpc: Logon failure

[root@samba ]# net ads leave
Enter root's password:
[2014/09/25 02:16:04.336242, 0] libads/kerberos.c:333(ads_kinit_password)
kerberos_kinit_password root@IAMTEST.COM failed: Client not found in Kerberos database
Failed to leave domain: failed to connect to AD: Client not found in Kerberos database

5、

[root@samba ~]# service winbind status 
winbindd dead but pid file exists

6、启动smbd程序,无进程,smbd日志如下:

[2014/09/26 14:32:49.992576, 5] smbd/uid.c:400(change_to_root_user)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2014/09/26 14:32:49.992678, 10] lib/dbwrap_tdb.c:102(db_tdb_fetch_locked)
Locking key F7110000FFFFFFFF
[2014/09/26 14:32:49.992770, 10] lib/dbwrap_tdb.c:131(db_tdb_fetch_locked)
Allocated locked data 0x0x2adca23f0d00
[2014/09/26 14:32:49.992869, 10] lib/dbwrap_tdb.c:44(db_tdb_record_destr)
Unlocking key F7110000FFFFFFFF
[2014/09/26 14:32:49.993135, 3] smbd/server_exit.c:181(exit_server_common)
Server exit (termination signal)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值