samba报错:session setup failed: NT_STATUS_LOGON_FAILURE 解决

简介:

今天公司有同事samba用不了,具体步骤如下:

[bruceg@developerjail /home]$ smbclient -L \\IPADRESS -U zhongw
Enter berbiey's password: 
session setup failed: NT_STATUS_LOGON_FAILURE

网上查看相关问题,发现可能是系统或者samba中某一处用用户引起的,正确的应该是samba和系统中同时有该用户!

解决办法:

bruceg@developerjail /home]$ sudo /usr/local/bin/smbpasswd -a zhongw


[bruceg@developerjail /home]$ smbclient -L \\IPADDRESS -U zhongw

Enter zhongw's password: 
Domain=[DEVELOPERJAIL] OS=[Unix] Server=[Samba 3.3.8]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba Server)
        zhongw          Disk      Home Directories
Domain=[DEVELOPERJAIL] OS=[Unix] Server=[Samba 3.3.8]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        MYGROUP              DEVELOPERJAIL

问题得到解决



本文转自 shine_forever 51CTO博客,原文链接:http://blog.51cto.com/shineforever/317305


相关文章
|
2月前
|
网络协议 Linux
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
220 3
|
4月前
|
Android开发
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
68 3
|
7月前
|
关系型数据库 MySQL 数据库
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
139 1
|
7月前
|
开发者 iOS开发
no identity found Command CodeSign failed with a nonzero exit code
no identity found Command CodeSign failed with a nonzero exit code
94 0
|
网络安全 Docker 容器
failed to create network error response from daemon filed to setup ip tables问题
failed to create network error response from daemon filed to setup ip tables问题
213 0
|
网络安全 开发工具 数据安全/隐私保护
git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)
git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)
732 0
|
XML 分布式计算 Hadoop
hiveserver2连接报错: User: root is not allowed to impersonate anonymous (state=08S01,code=0)
hiveserver2连接报错: User: root is not allowed to impersonate anonymous (state=08S01,code=0)
787 0
|
SQL 安全 数据库
MS SQL Could not obtain information about Windows NT group/user 'domain\login', error code 0x5. [SQLSTATE 42000] (Error 15404)
最近碰到一个有趣的错误:海外的一台数据库服务器上某些作业偶尔会报错,报错信息如下所示: ---------------------------------------------------------------------------------------------------------...
1245 0
|
SQL 数据库 Windows
SQL Server 2005 sp_send_dbmail出现Internal error at FormatRowset (Reason: Not enough storage is available to complete this operation)
案例环境:   操作系统: Windows 2003 SE 32bit(SP2) 数据库版本:Microsoft SQL Server 2005 - 9.00.5069.00 (Intel X86)             Aug 22 2012 16:01:52           ...
1424 0