[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "BADROOT"
From: |
Larry Jones |
Subject: |
Re: "BADROOT" |
Date: |
Wed, 3 Jul 2002 14:45:29 -0400 (EDT) |
Anthony Shipman writes:
>
> It seems the only purpose of the restriction is to prevent the user name
> in the log message being "root".
Exactly. Since "root" is usually a shared account, if the log message
just says "root" you won't know which real person made the changes.
> But in subr.c the getcaller() function
> will read LOGNAME or USER which I can set to control the name in the
> log file, if I care.
getcaller() only reads $LOGNAME or $USER if getlogin() fails, which it
shouldn't ever do, provided you've actually logged in at some point.
> So how about getting rid of this restriction? As root, I would like to
> maintain system configuration files/logs with cvs.
If you want to allow root to commit, just don't define CVS_BADROOT in
options.h.
-Larry Jones
I won't eat any cereal that doesn't turn the milk purple. -- Calvin
- "BADROOT", Anthony Shipman, 2002/07/03
- Re: "BADROOT",
Larry Jones <=