From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075323306427.tru64-unix-managers.marc@archive.invalid> From: "Gary W. Perkins" Date: Mon, 04 Sep 1995 19:56:05 +0000 To: tru64-unix-managers Subject: [SUMMARY] disable chfn command X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075323306427 Thanks for the quick response. I can usually count on the right answer from others on this list _days_ before I can get an answer (not always right) from DEC support. Received responses from: Anthony D'Atri Randall S. Winchester Don Newcomer Kent Arnott Todd Kover Ilja Hallberg David W Lloyd Phred is Dead Jon Buchanan My original question was: I would like to disable general use of the chfn command. I tried changing its mode to 700, but that also disables the passwd command. Has anyone out there figured this one out? The answers were variations of this one from Todd Kover: passwd, chfn, and chsh all invoke the same binary that behave differently based on the name. You can unlink the chfn (and use ln to relink it later if you so desire (see ln(1)), but users can still use a command line option to passwd to do the same thing. Your only choice is really to replace the passwd program with something else. David Lloyd gave me a quick fix: chfn, chsh and passwd are generally hard links to the same file. If you want to disable chfn only you could use the following: cp chfn chfn.tmp rm chfn mv chfn.tmp chfn chmod 700 chfn I have disabled chfn as above, and am looking for new versions of passwd as time allows. Pointers to source code would be appreciated. Thanks again to all. Gary W. Perkins perkins@meteor.uscolo.edu University of Southern Colorado (719) 549-2566 -------------------------------------------------------------------------