NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/41544: /etc/weekly changes permissions of /var/db/locate.database



>Number:         41544
>Category:       misc
>Synopsis:       /etc/weekly changes permissions of /var/db/locate.database
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 05 09:10:00 +0000 2009
>Originator:     rudolf
>Release:        NetBSD 5.0_STABLE
>Organization:
>Environment:
NetBSD 5.0_STABLE (GENERIC) #0: Tue Jun  2 21:21:05 UTC 2009  
builds%b3.netbsd.org@localhost:/home/builds/ab/netbsd-5/i386/200906020000Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
The /etc/weekly script does not restore permissions of /var/db/locate.database 
back to 0664, cf.:
http://nxr.netbsd.org/source/xref/etc/weekly#69
http://nxr.netbsd.org/source/xref/etc/Makefile#303


>How-To-Repeat:
Install the system, the permissions of /var/db/locate.database are 0664, run 
/etc/weekly, the permissions are 0644.
>Fix:
--- etc/weekly.orig     2009-06-05 10:32:48.000000000 +0200
+++ etc/weekly  2009-06-05 10:32:48.000000000 +0200
@@ -74,6 +74,7 @@
                chown nobody:nobody /var/db/locate.database
                (cd / && nice -5 su -m nobody -c /usr/libexec/locate.updatedb 
2>/dev/null)
                chown root:wheel /var/db/locate.database
+               chmod 664 /var/db/locate.database
        else
                echo "Not rebuilding locate database; no 
/var/db/locate.database"
        fi



Home | Main Index | Thread Index | Old Index