Operating System - HP-UX
1834127 Members
2248 Online
110064 Solutions
New Discussion

Samba requires different password than HP-UX

 
Dave Thompson_5
Advisor

Samba requires different password than HP-UX

I've got an older installation of HP-UX that's running Samba v2.2.3a. I cannot get the passwords used with Samba to sync with the UNIX passwords.

I've recently installed a couple of new HP-UX systems and Samba v2.2.8a is the version that was bundled with the O/S. These systems are working as expected with the Samba password being the same as the UNIX password, even after a user changes their UNIX password.

I've done a side-by-side comparison of smb.conf files and cannot find where the difference is that would cause the behavior on the older system.

What am I missing? Do I need to do anything with the smbpasswd file or is it that Samba just isn't looking at the /etc/passwd file. If that's the case, how do I set that?

Thanks

I'd rather be flying!
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Samba requires different password than HP-UX

Totally explainable.

To enable simple samba/cifs access you have to run the following command:

smbpasswd -a

This creates a samba password file.

AS the password for the user changes in /etc/passwd it doesn't get updated in samba without another smbpasswd command.

If you don't like this behavior, you can integrate samba authentication with a Windows Primary Domain Controller or an LDAP server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dave Thompson_5
Advisor

Re: Samba requires different password than HP-UX

Curious behavior though as you explain it, because I've changed the UNIX password on the newer systems, have not done anything with regard to the smbpasswd command, yet the password required to connect to Samba on the newer systems is the newly changed UNIX password.

Is there something going on behind the scenes that I need to enable on the older HP-UX installation that maybe is already enabled by default on the newer systems?
I'd rather be flying!