1834624 Members
2503 Online
110069 Solutions
New Discussion

passwd permission denied

 
SOLVED
Go to solution
ITSD-ACCS
Frequent Advisor

passwd permission denied

Hi,

I just made a script for user 'oper' to run. It involves changing password "passwd". I have already granted gid as follow, but I still got permission denied. The scripts is already 777. Did I miss anything ? Thanks !

uid=113(oper) gid=0(root) groups=4(adm)
3 REPLIES 3
Rajeev  Shukla
Honored Contributor

Re: passwd permission denied

Because the password change and many other command run as root (so what you might need to do is change the ownership to root:sys and set the setuid bit on that script and then try, or may post your script to see for which command is it really saying permission denied
Rajesh SB
Esteemed Contributor
Solution

Re: passwd permission denied

Hi,

You can achive this by changing "oper" user id to "0".


Regards,
Rajesh
Mel Burslan
Honored Contributor

Re: passwd permission denied

at the time of password change, in order to be able to change it for someone other than self, your effective uid (EUID) needs to be 0, i.e., user needs to be root equivalent, not just the root group membership will be enough.

Suggestion : Obtain sudo from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p9/
and install it. then use it to give certain command privileges to any user you wish.

________________________________
UNIX because I majored in cryptology...