home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!ames!nsisrv!mimsy!prometheus!media!irscscm!bogart!mfaurot
- From: mfaurot@bogart.uucp (Michael Faurot)
- Newsgroups: comp.os.coherent
- Subject: Re: /usr/adm/failed ???
- Message-ID: <1992Dec11.160810.97@bogart.uucp>
- Date: 11 Dec 92 16:08:10 GMT
- References: <9212041550.15@csoft.UUCP>
- Organization: ism:c:m/xo
- Lines: 35
- X-Newsreader: Tin 1.1 PL4
-
- gerald@csoft.UUCP (Gerald Abshez) writes:
- : In article <1992Nov26.085230.19920@acme.gen.nz> kilroy@acme.gen.nz (earthbound misfit, I) writes:
- : >gerald@csoft.UUCP (Gerald Abshez) writes:
- : >
- : >> I was wondering if there is a way to log all or even just failed su
- : >> attempts? I have been having some difficulty finding security measures
- : >> that are built into coherent. Does anyone know of the file that I might
- : >> need, or do I have to re-write su myself? Thanks....
- : >
- : >I've got a wrapper for su which writes a log file to /usr/adm/sulog. It was
- : >a bit of a quick hack and in it's current form won't handle any error
- : >conditions very gracefully, but it's small and it does work. It just writes
- : >a log entry of who executed su and when and then execs the real su. I'll
- : >post the source here if you like, it'll save re-invention of the wheel.
- : >
- : Well, if it's small enough, sure.
- :
- : If there is any interest, I'll modify it and repost; if not, I'll just
- : send you a copy.
- :
- : I was hoping that there already was a command doing that, and that I
- : just didn't know which file to create. Oh well.
- :
- : Thanks.... Gerald.
-
- A re-write of su in C so that it performed logging wouldn't be that
- difficult. See the family of system calls concerning setuid(). If
- set user ID root programs are something you'd rather not mess with,
- I'd be willing to write one if there was some interest in it.
- --
-
- +--------------------+-------------------------------------------------------+
- | Michael Faurot | Domain: mfaurot@bogart.UUCP |
- | ------- ------ | UUCP: ...{irscscm|mimsy}!bogart!mfaurot |
- +--------------------+-------------------------------------------------------+
-