tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Wrapping the passwd command
@ 1997-09-19 16:50 Brian H. Mayo
  0 siblings, 0 replies; only message in thread
From: Brian H. Mayo @ 1997-09-19 16:50 UTC (permalink / raw)
  To: tru64-unix-managers

I am trying to cleanly disable users on my system from being able to change
their GECOS field information (finger information).  I have been doing some
research into it and found a couple of choices, some not good at all.
1) I can remove the siad_chg_finger entry from the matrix.conf file, but
the user get an error message stating their username is incorrect.
2) I can, and have been trying to, write a c program to strip the -f flag
from the passwd -f command and give an error message to the user stating
this function has been disable by the system administrator.  But this gets
very hairy when the setreuid comes into play and I would rather not write a
program like this if it can be avoided.

What I would really like to do is get my hands on the c code for the passwd
command and see how they use the SIA library calls so I can re-write this
to ignore the -f and report to the user the disabled message.

Any information would be greatly appreciated.


****************************************************
|     Brian H. Mayo   | UNIX System Administrator  |
|  Computing Services |      BRYN MAWR COLLEGE     |
|++++++++++++++++++++++++++++++++++++++++++++++++++|
|              brian.mayo@brynmawr.edu             |
| Guild Hall | t:(610) 526-7972 | f:(610) 526-7432 |
|  101 North Merion Road  |  Bryn Mawr, Pa   19010 |
****************************************************

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-19 16:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-19 16:50 Wrapping the passwd command Brian H. Mayo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox