samba password create error after user has been deleted

Bug #344678 reported by Theunis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

I think I have found a problem with deleting users in samba/ubuntu. It seems it 'corrupts' the password file.

Here is a summary :

* I create a unix user called test1
* I create a samba user called test1
(both these commands work fine and i can create as many as i want)
* I delete the samba user
* I delete the unix user
(both these commands work fine)
* I create a unix user called test2
(this command works fine)
* I create a samba user called test2
(This command fails with this error:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user test2.
Failed to modify password entry for user test2 )

It seems that as soon as I delete the unix user, I can't write the tdb passwords anymore. You should be able to delete and create users at will.

Another note, is if I remove samba and reinstall it. I still can't create any samba users. BUT, if i uninstall samba, remove all the files in /var/lib/samba/ and reinstall, I can start the above process again.

I have attached a text file will all the commands that I run and their results.

System :
Ubuntu 8.10
Linux series 2.6.27-7-server
Samba: Installed: 2:3.2.3-1ubuntu3.4

Revision history for this message
Theunis (tdk) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Could you please attach your samba log files when doing this?

Thanks
chuck

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Krylov Ilya (i-krylov) wrote :

With command smbpasswd -d you not delete samba user, you disable it. It is necessary to use smbpasswd -x command for removal of the user.

Revision history for this message
Thierry Carrez (ttx) wrote :

Works for me in Jaunty...

Revision history for this message
Chuck Short (zulcss) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in samba (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Theunis (tdk) wrote :

Hi Chuck,

I am very sorry that i haven't gotten back to you on this. But i managed to get the server working and haven't had a chance to re-install it and reproduce it. If i come across it again, I will reopen and give all the details.

Thanks,
Theunis

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.