Re: [Samba] Unable to modify TDB passwd

2008-12-12 Thread Mark Adams
I'm also seeing this issue with smbpasswd -a on samba 3.2.4-1, debian  
lenny.. However pdbedit -a -u username works for me.


smbpasswd works for changing the password after being added with pdbedit

Regards,
Mark

On 12 Dec 2008, at 01:04, Daniel Kauffman daniel.kauff...@rocksolidsolutions.org 
 wrote:



Hi,

I'm having difficulty creating new user accounts.

Attempting to create a new user account using smbpasswd fails, as  
follows:


#smbpasswd -a guest

New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user guest.
Failed to modify password entry for user guest


Attempting to create a new user account using pdbedit fails, as  
follows:


# pdbedit -a -u guest

new password:
retype new password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Unable to add user! (does it already exist?)


The user does not exist in the Samba database:

# pdbedit -L -u guest
Username not found!


The unix account exists:

# cat /etc/passwd | grep 'guest'
guest:x:1059:1061::/var/empty:/bin/false

# cat /etc/group | grep 'guest'
guest:x:1061:


Versions:

# smbd -V
Version 3.2.3

# uname -srmo
Linux 2.6.27-7-server x86_64 GNU/Linux


All commands are run as root on the Samba PDC.

Any suggestions?

Thanks!

Daniel Kauffman

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Unable to modify TDB passwd ERROR

2008-10-08 Thread Frantisek Hanzlik

[EMAIL PROTECTED] wrote:

I'm trying to track down why I can't seem to add a computer to the domain.
  I've looked high and low to no avail.  Right now, when I try to add the
computer as a trusted machine, I've added it to the Unix passwd dB with
the appropriate machinename$ and the added the machine to the dmbpasswd
via:

smbpasswd -a -m machinename

But, when I go to add the machine to the domain, I get the error that this
computer has no account on the domain.  It then gives me the screen to key
in an administrator username and password (and the domain), and then I get
a cant' find user or bad password, error from Windows.  I assume that
means I've not created a proper automated script, haven't properly
elevated the user to the ADMINS GROUP or perhaps it can't talk to the
SMB server properly.

Here's what it shows in the log created by that machine's attempt to log
onto the network:

less /var/log/samba/log.app160
[2008/08/01 14:12:09, 0] passdb/pdb_tdb.c:tdb_update_ridrec_only(1308)
   Unable to modify TDB passwd ! Error: Record does not exist
occured while storing the RID index (RID_01f4)
[2008/08/01 14:12:09, 1] auth/auth_sam.c:check_sam_security(316)
   Failed to modify entry.

Opinions welcome.

--

Jason N



I have same problem with adding user account (samba 3.2.3, tdbsam,
Fedora 9), smbpasswd -a username result is:
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

But adding user via pdbedit -a -u username works fine, as well as
smbpasswd in local mode smbpasswd -a -L username.
And curious - deleting account via smbpasswd in client-server mode
is possible, changing password too.
Maybe some bug in smbpasswd code...

František Hanzlík
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Unable to modify TDB passwd ERROR

2008-08-01 Thread Helmut Hullen
Hallo, jason,

Du meintest am 01.08.08 zum Thema [Samba] Unable to modify TDB passwd ERROR:

 I'm trying to track down why I can't seem to add a computer to the
 domain.  I've looked high and low to no avail.  Right now, when I try
 to add the computer as a trusted machine, I've added it to the Unix
 passwd dB with the appropriate machinename$ and the added the machine
 to the dmbpasswd via:

 smbpasswd -a -m machinename

 But, when I go to add the machine to the domain, I get the error that
 this computer has no account on the domain.

http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/ClientConfig.html#id2570436

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Unable to modify TDB passwd [RESOLVED]

2005-06-24 Thread Tani Alessandro
Thank you very much Matt for your mail. I think to do an error during the 
management of the user, because the root UID should be 1000 and don't 500 as 
I had, so with the command:


pbedit -r -u root -U NewSID

I resolved my problem.

Thank you very much.

Alessandro Tani

- Original Message - 
From: Matt Schwartz [EMAIL PROTECTED]

To: Tani Alessandro [EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 1:59 PM
Subject: Re: [Samba] Unable to modify TDB passwd


I have seen this one before and I solved it by simply re-adding the user. 
Just type:

smbpasswd -a root

Tani Alessandro wrote:


Hi everybody,

My name is Tani Alessandro, I have a problem when I try to change the 
password of user root (the Domain Administrator). For all the others 
users I don't have any problem. I have update samba from the version 
3.0.11 to the version 3.0.14a. I use a Red Hat 9. When I try to change 
the root password I recive this messagge:


  Unable to modify TDB passwd ! Error: Record does not exist
occured while storing the RID index (RID_01f4)
  Update of user root failed!

But the root user exist:

  [EMAIL PROTECTED] samba]# pdbedit -Lvu root


 Unix username:root
 NT username:
 Account Flags:[U  ]
 User SID: S-1-5-21-3208351604-3227578651-2542640303-500
 Primary Group SID:S-1-5-21-3208351604-3227578651-2542640303-1001
 Full Name:root
 Home Directory:   \\sole\homes\root
 HomeDir Drive:H:
 Logon Script: root.bat
 Profile Path:
 Domain:   MIODOMINIO
 Account desc: Utente Amministratore del Dominio
 Workstations:
 Munged dial:
 Logon time:   0
 Logoff time:  Fri, 13 Dec 1901 21:45:51 GMT
 Kickoff time: Fri, 13 Dec 1901 21:45:51 GMT
 Password last set:Mon, 13 Jun 2005 17:41:37 GMT
 Password can change:  Thu, 16 Jun 2005 17:41:37 GMT
 Password must change: Wed, 13 Jul 2005 17:41:37 GMT
 Last bad password   : 0
 Bad password count  : 0
 Logon hours : FF



What could I do to resolve my problem?

Thank you very much,

Alessandro Tani


Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, rivolte esclusi-
vamente al destinatario. La diffusione, distribuzione e/o copie del
documento trasmesso o degli allegati da parte di qualsiasi soggetto
diverso dal destinatario è perseguibile ai sensi dell'articolo 616
Codice Penale e del Decreto Legislativo n. 196/2003.
Se avete ricevuto questo messaggio per errore, Vi preghiamo di re-
inviarlo al mittente e distruggerlo.
Per informazioni potete contattare l'indirizzo [EMAIL PROTECTED]
***
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited and it is punished by law. Please return it immediately
to the sender and delete the message. Should you have any questions,
please contact us at [EMAIL PROTECTED]









Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, rivolte esclusi-
vamente al destinatario. La diffusione, distribuzione e/o copie del
documento trasmesso o degli allegati da parte di qualsiasi soggetto
diverso dal destinatario è perseguibile ai sensi dell'articolo 616
Codice Penale e del Decreto Legislativo n. 196/2003.
Se avete ricevuto questo messaggio per errore, Vi preghiamo di re-
inviarlo al mittente e distruggerlo.
Per informazioni potete contattare l'indirizzo [EMAIL PROTECTED]
***
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited and it is punished by law. Please return it immediately
to the sender and delete the message. Should you have any questions,
please contact us at [EMAIL PROTECTED]


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba