NetBSD-Bugs archive

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

Re: install/47947: Permissions of /root/.cshrc and /root/.profile make /etc/security complain

The following reply was made to PR install/47947; it has been noted by GNATS.

From: Valery Ushakov <>
Subject: Re: install/47947: Permissions of /root/.cshrc and /root/.profile make 
/etc/security complain
Date: Sat, 22 Jun 2013 01:56:52 +0400

 On Fri, Jun 21, 2013 at 08:50:00 +0000, wrote:
 > After a default NetBSD installation, the permissions of files
 > /root/.cshrc and /root/.profile (which are 555) make /etc/security
 > (which expects 644) complain:
 > Checking special files and directories.
 > root/.cshrc:
 >         permissions (0644, 0555)
 > root/.profile: 
 >         permissions (0644, 0555)
 This is a problem with unpriviliged build.  This should be at least
 partially adressed in -current with the following commit, which should
 be pulled up, I guess:
 Module Name:    src
 Committed By:   uwe
 Date:           Sat Nov 17 23:08:38 UTC 2012
 Modified Files:
         src/etc/root: Makefile
 Log Message:
 We don't need to include <> to install a few config files
 just <> and <> is enough.
 Noticed because <> sets LINKSMODE to BINMODE and that does
 the wrong thing at least for unprivileged builds.
 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/etc/root/Makefile
 I don't remember details about the second part of the problem,
 something about handling of hardlinks in unpriv builds. Looking at a
 fresh current build I see that /.cshrc and /root/.cshrc are hardlinks,
 but they have different modes in the metalog - /.cshrc is 0444,
 /root/.cshrc 0644.  IIRC, Joerg should know more.

Home | Main Index | Thread Index | Old Index