Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 05:50:04 -0800 (PST)
From:      "f.johan.beisser" <jan@caustic.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/34780: locate(1)'s database is generated with root permissions
Message-ID:  <200202101350.g1ADo4e05961@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/34780; it has been noted by GNATS.

From: "f.johan.beisser" <jan@caustic.org>
To: Mike Makonnen <mike_makonnen@yahoo.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/34780: locate(1)'s database is generated with root permissions
Date: Sun, 10 Feb 2002 05:46:13 -0800 (PST)

 On Sun, 10 Feb 2002, Mike Makonnen wrote:
 
 > Yes, it is called by root, but the script su's to user nobody before
 > updating the database.
 
 of  course, now that i've gone though this again (3rd times a charm), i
 see the line i wish i'd seen before:
 
     cd /
     echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3
     chmod 444 $locdb || rc=3;;
 
 whoops. my brain is failing me today.
 
 -------/ f. johan beisser /--------------------------------------+
   http://caustic.org/~jan                      jan@caustic.org
     "John Ashcroft is really just the reanimated corpse
          of J. Edgar Hoover." -- Tim Triche
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202101350.g1ADo4e05961>