su user -c passwd as root gives Password not changed...

From: Jeffrey Hundstad <jeffrey.hundstad_at_mankato.msus.edu>
Date: Wed, 18 Aug 1999 11:46:40 -0500 (CDT)

-----BEGIN PGP SIGNED MESSAGE-----

I'm writing a shell script; it runs as root. The script will be used
to ask a user to change their password. I use:

/bin/su user -c /bin/passwd

where `user' is the username of the unprived user.
When this statement executes it gives the following error message:

Password not changed: not authorized to change another user's password.

Authentication error; see Account Administrator



Why is it failing? We are using enhanced agony (I mean security) and
I assume there is a ``capability'' that root is missing. How/where do
I add it?

HELP!

- --
Jeffrey Hundstad
Computer Services
101 Morris Hall
Minnesota State University, Mankato
Mankato, MN 56001
USA


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBN7rjWaLa8RgOE1M5AQHRZgP/dl0YKxRFNsuQru5w7bV9D8lMRaTGluQr
USH1pyieBSqpjjXclHDO6R/YkSznLuH9iOJuwAA5F0TUNIOL10FYlWgi73h8097v
BEhFExu10ooJyevItXDigvn8c6xXRnjdEr7CEC5kB63/yxkn/Gtf1XeIVD3rO/UX
tyzIfWlBE/A=
=mPmM
-----END PGP SIGNATURE-----
Received on Wed Aug 18 1999 - 16:51:14 NZST

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