Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have Hitachi ID Password Manager (formerly p-synch) set up to change the password on (among other systems) an aix 6.1 server running samba. p-synch has the capability of executing additional commands by configuring "chat script" in the conf file. But p-sync does not send the old password and runs the script as the "p-sync admin ID".

Only root can change the samba password without the old password. I could get around this problem with sudo, but it is not currently installed on the aix system, and I want to make sure that sudo is the only option before installing and configuring it.

Any suggestions?

share|improve this question

1 Answer 1

You could try making smbpasswd setuid root (e.g. chmod 4755 /where/is/smbpasswd) - but sudo is a much cleaner/better solution.

share|improve this answer
It probably already is (it presumably has to manipulate a password file that's read-only to normal users), and if it wasn't, then you've just allowed any local user on the box to change passwords for any user. –  Stephen Veiss Sep 30 '09 at 1:04
Yep, which is why I said sudo is a much better solution... :) –  James Oct 1 '09 at 8:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.