Problema ao adicionar/mudar senha de usuario no Samba 3.2.5
O Problema ocorreu quando tentei mudar a senha de um usuario
# smbpasswd username
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user username.
Failed to modify password entry for user username
Então deletei o mesmo com o comando:
# smbpasswd -x
e tentei adicionalo novamente...
# smbpasswd username
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user username.
Failed to modify password entry for user username
---
Resolução:
Adicionei o usuario com o comendo seguinte:
FILESERVER:~# pdbedit -a -u
new password:
retype new password:
Unix username:
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1211500980-2675547609-2987276650-1001
Primary Group SID: S-1-5-21-1211500980-2675547609-2987276650-513
Full Name: xxxx,,,
Home Directory: \\fileserver\
HomeDir Drive: H:
Logon Script: users.bat
Profile Path: \\fileserver\sysvol\
Domain:
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Fri, 30 Jan 2009 13:27:42 UTC
Password can change: Fri, 30 Jan 2009 13:27:42 UTC
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
:)
# smbpasswd username
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user username.
Failed to modify password entry for user username
Então deletei o mesmo com o comando:
# smbpasswd -x
e tentei adicionalo novamente...
# smbpasswd username
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user username.
Failed to modify password entry for user username
---
Resolução:
Adicionei o usuario com o comendo seguinte:
FILESERVER:~# pdbedit -a -u
new password:
retype new password:
Unix username:
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1211500980-2675547609-2987276650-1001
Primary Group SID: S-1-5-21-1211500980-2675547609-2987276650-513
Full Name: xxxx,,,
Home Directory: \\fileserver\
HomeDir Drive: H:
Logon Script: users.bat
Profile Path: \\fileserver\sysvol\
Domain:
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Fri, 30 Jan 2009 13:27:42 UTC
Password can change: Fri, 30 Jan 2009 13:27:42 UTC
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
:)
5 Comments:
Parabéns pela solução...
Cara estou com este problema porém não consegui.
Funcionou comigo tbm.
Valeu pela solução
Olá Ivandro,
Obrigado pela dica. Funcionou perfeitamente no Debian Lenny.
Um abraço e até mais.
Percebi que esse erro dava pra um usuário que tinha o UID = 1000, pois o que tinha esse UID primeiramente foi deletado, e ao criar o último, este assumiu o mesmo UID... aí o smbpasswd dava esse erro... mudei o UID aí funfou
Postar um comentário
<< Home