sia_chg_password

From: Don Newcomer <newcomer_at_dickinson.edu>
Date: Wed, 25 Apr 2001 08:51:30 -0400 (EDT)

I'm trying to write a program that will allow users to change their
password (security implications aside). I have it set up as setuid 'root'
and setgid 'auth' and call setreuid and setregid to set both the real and
effective uid to 'root' and the real and effective gid to 'auth'. I can
make it work for my personal account, likely because I'm in the 'system'
and 'auth' group. When I try from my test account I get the error
"Password not changed: not authorized to change another user's password."
What am I missing here? The only thing I can think to try is
sia_become_user but it looks pretty unwieldy. Any ideas would be greatly
appreciated.

================================================================================
Don Newcomer Dickinson College
Associate Director, System and Network Services P.O. Box 1773
newcomer_at_dickinson.edu Carlisle, PA 17013
                                                        Phone: (717) 245-1256
                                                          FAX: (717) 245-1690
Received on Wed Apr 25 2001 - 12:52:32 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT