Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#528134: [Pkg-samba-maint] Bug#528134: samba-common: smbpasswd -a user does not creat /etc/samba/smbpasswd file

39 views
Skip to first unread message

Susan

unread,
Jul 31, 2009, 4:10:10 PM7/31/09
to
I was able to produce the following error using smbpasswd when the directory /etc/samba did not exist:

[root@varda]# smbpasswd -a
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.
startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. Couldn't create new one. Error was: No such file or directorystartsmbfilepwent_internal: too many race conditions creating file /etc/samba/smbpasswd
add_smbfilepwd_entry: unable to open file.
Failed to add entry for user root.
Failed to modify password entry for user root
[root@varda]#

If this looks like the error you got, try the following:

# cd /etc
# mkdir samba
# smbpasswd -a



Christian Perrier

unread,
Aug 2, 2009, 5:40:06 AM8/2/09
to
Quoting Susan (aust...@gmail.com):
> I was able to produce the following error using smbpasswd when the directory
> /etc/samba did not exist:


Well, /etc/samba is provided by samba-common, so the only way for this
to happen is.....removing it manually (and voluntarily), which is
likely to break the package.

If the problem is there, then I don't think this is a bug. On the
other hand, it would be interesting to know how you ended up with a
system without /etc/samba while the samba-common package was
installed.


signature.asc
0 new messages