1822895 Members
3578 Online
109645 Solutions
New Discussion юеВ

smbpasswd

 
Donald C Nelson
Frequent Advisor

smbpasswd

When I try to run "smbpasswd -U , I get "getsmbfilepwent: malformed password entry (no :)
Failed to find entry for user root.
Failed to modify password entry for user root" and the smbpasswd file changes permission to 600. I am using

B8725AA A.01.11.04 HP CIFS Server
6 REPLIES 6
Sundar_7
Honored Contributor

Re: smbpasswd

What are you trying to accomplish ?

To add a user to the smbpasswd file, you should use the -a option with smbpasswd command, not -U option

# smbpasswd -U

see if that helps.
Learn What to do ,How to do and more importantly When to do ?
Donald C Nelson
Frequent Advisor

Re: smbpasswd

I am sorry, that is what I meant when I received that error.
Sundar_7
Honored Contributor

Re: smbpasswd

Sorry, typo -

Try
# smbpasswd -a

Are you getting the above error message with -a option or -U ?
Learn What to do ,How to do and more importantly When to do ?
Donald C Nelson
Frequent Advisor

Re: smbpasswd

Yes, but the strange thing is that when I run the command, it changes permissions to 600 after I receive the error messages.
Sundar_7
Honored Contributor

Re: smbpasswd

May be your /var/opt/samba/private/smbpasswd file is corrupt.

Remove the smbpasswd file and run /opt/samba/bin/syncsmbpasswd. Now try running smbpasswd -a .
Learn What to do ,How to do and more importantly When to do ?
Donald C Nelson
Frequent Advisor

Re: smbpasswd

It was a mistake on my part with the smbpasswd file. I was corrupting it myself with the configuration in the smb.conf