www.LinuxHowtos.org
edit this article
Teaser
:
Content
:
==Changing the logname with sudo== If you use [http://www.gentoo.org/news/en/gwn/20030915-newsletter.xml#doc_chap9 sudo] and [http://www.gentoo.org/news/en/gwn/20040216-newsletter.xml#doc_chap6 RCS], the
$Author: carlos $ and $Id: 20040517-newsletter.xml,v 1.2 2004/05/31 00:11:04 carlos Exp $
RCS tags always appear as root instead of the actual person that edited the file. It's possible to compare file modification times with sudo log entries, but that's tedious. There's a much simpler way using sudo options. Edit /etc/sudoers with visudo and add the following line: Code Listing 1 Defaults>root !set_logname This tells sudo not to change the logname to root, but to use the existing username. Now, RCS tags will show the real author. http://www.gentoo.org/news/en/gwn/20040517-newsletter.xml
Note: The changes you made will be manually reviewed for spam before appearing online. This might take a while.
rate this article:
current rating: average rating: 1.3 (43 votes) (1=very good 6=terrible)
Your rating:
Very good (1)
Good (2)
ok (3)
average (4)
bad (5)
terrible (6)
back