Subject: Re: misc/18670: lastlog has bad permissions by default
To: gabriel rosenkoetter <gr@eclipsed.net>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 10/16/2002 16:41:26
[ On Wednesday, October 16, 2002 at 15:56:38 (-0400), gabriel rosenkoetter wrote: ]
> Subject: Re: misc/18670: lastlog has bad permissions by default
>
> On Wed, Oct 16, 2002 at 03:07:53PM -0400, Greg A. Woods wrote:
> > Sorry, I really meant to point to /var/run/utmp, not /var/log/wtmp!
> > 
> > /var/log/lastlog should not be any different than either /var/log/wtmp
> > or /var/run/utmp.  I.e. they're all written by the same programs and
> > should all have the same permissions and ownerships.
> > 
> > I.e. the ownership of /var/log/wtmp is also not correct.  :-)
> 
> Then how are we managing to write to it properly? (Ne'mind, you
> answer that below...)
> 
> Btw, I don't see a /var/log/utmp on any of my NetBSD systems
> (1.5.3_ALPHA, 1.6D, and 1.6F, with userlands from the same date as
> the kernel). Am I missing something? Has this been added since 1.6F?

Did I say /var/log/utmp?  Nope, I really did say /var/run/utmp!  ;-)

> Hrm. What about third party stuff that will now have to be that it
> should install itself sgid utmp on NetBSD? (Think SSH.com, ossh, so
> forth.)

Those two at least must run as root regardless.  xterm-like things
(rxvt, eg.) are the ones which might best get this new ability once the
pty-granting problem has been fixed.

> Well, that's no reason not to clean this up in the right way, of
> course.

Indeed!  ;-)

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>