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)

samba错误的更多相关文章

  1. 航空概论(历年资料,引之百度文库,PS:未调格式,有点乱)

    航空航天尔雅 选择题1. 已经实现了<天方夜谭>中的飞毯设想.—— A——美国2. 地球到月球大约—— C 38 万公里3. 建立了航空史上第一条定期空中路线—— B——德国4. 对于孔明 ...

  2. 部署samba服务之后,在客户端用挂载访问的方式,错误信息:mount: block device //192.168.1.108/mysqldata is write-protected, mounting read-only mount: cannot mount block device //192.168.1.108/mysqldata read-only

    部署samba服务之后,在客户端用挂载访问的方式,错误信息:mount: block device //192.168.1.108/mysqldata is write-protected, moun ...

  3. 网络存储-Samba、NAS---未知的用户名或错误密码

    项目中的文件需要保存到网络存储设备中,之前用的是NAS.因没来得及采购就先用Samba顶上.代码发现通用…… 一.定义: Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器 ...

  4. samba配置中常见错误收集.txt

    在命令行输入命令: ~$ smbclient -L \\127.0.0.1按要求输入密码后,提示出错:session setup failed: NT_STATUS_LOGON_FAILURE 这是因 ...

  5. CentOS 7安装Samba 4.6 版本步骤及错误解决方法

    首先通过这次教训,让我养成一个好习惯:备份  备份  备份      不管做什么配置或者更改什么东西之前先做好备份! 还有我本身的一个坏毛病:眼高手低! 工厂有一台服务器,由以前的运维装的Samba ...

  6. gentoo samba 密码错误

    参考 Samba Share Password Refused https://social.technet.microsoft.com/Forums/windows/en-US/8249ad4c-6 ...

  7. centos7 samba配置完成后不管怎么登陆都会显示密码错误的解决方案

    添加系统用户 useradd samba 添加samba用户 smbpasswd -a samba 激活samba用户 smbpasswd -e samba 1.win+r运行secpol.msc打开 ...

  8. 关于win10 samba访问提示用户名和密码错误的原因

    排除掉linux上的配置错误,只需要做到以下两步就可以了: 1.win10系统运行secpol.msc 打开本地安全策略 2.安全策略->本地策略->安全选项 3.右侧找到 网络安全:LA ...

  9. OpenWrt中开启usb存储和samba服务

    在从官网安装的WNDR3800 15.05.1版本OpenWrt中, 不带usb存储支持以及samba, 需要另外安装 1. 启用usb支持 USB Basic Support https://wik ...

随机推荐

  1. Windows下Node.js开发环境搭建-合适的开发环境

    1)生产环境中的Node.js应用 Windows + Linus 2)虚拟机工具 VirtualBox 虚拟机CentOS安装 3)xShell与xFtp(windows到linux文件传输) 4) ...

  2. 获取checkboxlist选中的值以及绑定来自之前选中的来自数据库的值

    //////ps:一下几句都是一个意思,为的是以后有人搜索关键字的时候能定位到这里///checkboxlist绑定选中值///checkboxlist绑定来之mssql数据的值///checkbox ...

  3. 使用VS Code调试TypeScript游戏程序JsTankGame成功!!!

    TypeScript游戏程序JsTankGame不是本人写的,是从CSDN下载的. JsTankGame是用Visual Studio开发的,因此在Visual Studio下调试非常顺畅.本人尝试用 ...

  4. 安装Node.js

    1.window下安装Node.js 安装git,方便使用命令行. 网址:http://www.git-scm.com/download/ 下载后直接安装即可 接着安装Node.js https:// ...

  5. (转)jQuery Validation Plugin客户端表单证验插件

    jQuery Validation Plugin客户端表单验证插件 官方文档:http://jqueryvalidation.org/documentation/ 官方demo:http://jque ...

  6. lvs+keepalived+nginx+tomcat

    # 拓扑如下所示 # 节点分布情况 LVS-dr-master eth0: 192.168.146.141 LVS-dr-slave eth0: 192.168.146.142 nginx1: eth ...

  7. jQuery Alert Dialogs (Alert, Confirm, & Prompt代替方案)

    基本范例--原文:http://keleyi.com/keleyi/phtml/jqplug/ Alert jAlert('自定义对话框', 'Alert对话框'); Confirm jConfirm ...

  8. Assimp场景模型输出Collada,STL,3DPDF

    本文介绍开源库模型的几种输出格式:DAE,STL,3DPDF. Assimp是C++写的,AssimpNet是C#重构其中主要数据结构,并开通Assimp中重要方法的调用接口,为不熟悉C++的码农带来 ...

  9. 树形dp入门

    poj2057 某公司的上下级关系是一颗树状结构,每个人不能与他的上司同时出现,每个人有一个值,求最大值. 这个题需要注意的是如果不保存状态会超时,这似乎也是大部分dp应该注意的事情啊 #includ ...

  10. [Leetcode][020] Valid Parentheses (Java)

    题目在这里: https://leetcode.com/problems/valid-parentheses/ [标签]Stack; String [个人分析]这个题应该算是Stack的经典应用.先进 ...