#3441 Failed to change password using smbpasswd

1.440
closed
5
2014-08-23
2009-07-07
nonono
No

Bonjour à tous,
mon OS : CentOS 5.2, webmin version: 1.441, samba version: 3.028058
j'ai un problème avec webmin le mot de passe unix qui est différent du mot de passe samba.

Lors de la création d'un compte utilisateur sur webmin en fonction des groupes auquel appartiens l'utilisateur il accèdent à différent partage.
Son mot de passe système est confondu avec son mot de passe partage.
Qhand je tente de l'effectuer via le user samba ce message 'Failed to change password using smbpasswd "Failed to save user : Failed to change password using smbpasswd :"
Merci d'avance pour votre aide.

Hi,
I have OS : CentOS 5.2; Webmin version: 1.441; Samba version : 3.028058.
I have a trouble with webmin the unix password is different with samba password.
When I create a new user with webmin, the unix password = samba password but is not working anymore.
I try change the samba password with "Edit Samba users and passwords" on webmin.
But I don't change the samba password, I receive this message "Failed to change password using smbpasswd"
Thanks for your help

Discussion

  • Jamie Cameron

    Jamie Cameron - 2009-07-08

    Sounds like the smbpasswd command isn't working on your system.

    If you try to use smbpasswd to change a password from the command line ,does that work?

     
  • nonono

    nonono - 2009-07-08

    Hi,
    smbpasswd work on my system, I can't use by webmin so I use for example "smbpasswd -a toto".
    It's my only way for my users...
    I update webmin in 1.480 the trouble don't change but I have a new messages "Access control violation : Failed to change password using smbpasswd : "

     
  • Jamie Cameron

    Jamie Cameron - 2009-07-08

    The command Webmin tries to use is :
    smbpasswd -s toto
    which prompts for the new password. Does this work on your system?

     
  • Nobody/Anonymous

    I will confirm that the command does not work.
    smbpasswd -s toto
    _
    No reaction !!
    I use this command with root account.

     
  • nonono

    nonono - 2009-07-29

    The command Don't work...:
    smbpasswd -s toto
    The prompt is waiting!!
    How fix this bug?
    Thank you for your answers.

     
  • Jamie Cameron

    Jamie Cameron - 2009-07-30

    What if you enter a password at the prompt - does it get changed OK?

     
  • nonono

    nonono - 2009-07-30

    Thank you for your help!!
    The command's (smbpasswd -s) misbehavior.
    The command's (smbpasswd -a) work perfectly.

    [root@Serveur ~]# smbpasswd -s betatester
    toto
    toto
    Failed to find entry for user betatester.
    Failed to modify password entry for user betatester
    [root@Serveur ~]#
    [root@ServeurBSA ~]# smbpasswd -a betatester
    New SMB password:
    Retype new SMB password:
    Added user betatester.
    [root@ServeurBSA ~]#

     
  • Jamie Cameron

    Jamie Cameron - 2009-07-31

    The -a flag tells smbpasswd to add the user to the local password file .. but that shouldn't actually be needed, as it should update the password via the Samba server.

    Does a change made with the -a option actually work?

     
  • nonono

    nonono - 2009-07-31

    Okay I apply your advice so I add the -a option in the samba configuration webmin.
    And I can manage users password with webmin.
    I'm very satisfied for webmin but the samba server have a bug with smbpasswd -s
    A new installation of samba can be resolve my problem?
    Thanks you for your help.

     
  • Jamie Cameron

    Jamie Cameron - 2009-08-01

    Yeah, this feels like a Samba bug to me if the documented -s option isn't working..

     
  • Nobody/Anonymous

    Thank you a lot ;p
    Jah bless you ;)

     
  • Anonymous - 2009-10-23

    I can confirm the above. Using default install of CentOS, webmin samba etc, all current. Tried to log into share and couldn't, wrong username or password. Tried to change the password in Webmin/Samba and got Access error. Logged in via ssh and had to issue smbpasswd -a username to change the password and that worked. Could log into the share after that.

    Also prior to issuing the command via command line, I looked in smbpasswd. The user was listed but had NO PASSWORD in both sections on his line. After issuing the above it has NO PASSWORD in the second section but not the first. Prior to starting to work on the problem the user was a Unix user and I used the convert option in the samba module to do the conversion. That was with encrypted password in samba.

    tk

     
  • tlk

    tlk - 2009-10-23

    A bit more on this. Appears it may be related on how a user is added. Prior to setting up samba (I think) I had added several users with no login. That part may have been after Samba though. Sorry, can't remember which way it went there. But I did have one user already setup prior to samba being setup. That user did have a login working for webmin but would not work with samba. I believe in both cases I did not have the users to be created in samba if created in users and groups. So at that point I could not add/change the user in samba. I did find that if I had the option to create the samba user checked and went back and deleted the users in webmin then recreated them, all worked well.

    Probably clear as mud but hopefully that helps some. Looks like it is the order in which things are done basically.

    tk

     
  • Jamie Cameron

    Jamie Cameron - 2011-06-24

    Closing due to comment spam

     
  • Jamie Cameron

    Jamie Cameron - 2011-06-24
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks