[lfs-support] 6.06 Creating Essential Files and Symlinks

Bruce Dubbs bruce.dubbs at gmail.com
Mon Feb 13 11:23:48 PST 2012


Andrew Benton wrote:
> On Mon, 13 Feb 2012 04:01:55 -0800
> Qrux <qrux.qed at gmail.com> wrote:
> 
>> After installing OpenSSH,  I'm seeing errors like this:
>>
>> 	sshd[1226]: Excess permission or bad ownership on file /var/log/btmp

>> Quick google turns up:
>>
>> 	https://issues.rpath.com/browse/RPL-1825
>>
>> TL;DR - I think we ought to change the last few lines from this:
>>
>> 	touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
>> 	chgrp -v utmp /var/run/utmp /var/log/lastlog
>> 	chmod -v 664 /var/run/utmp /var/log/lastlog
>>
>> to this:
>>
>> 	touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
>> 	chgrp -v utmp /var/run/utmp /var/log/{lastlog,btmp}
>> 	chmod -v 664 /var/run/utmp /var/log/lastlog
>> 	chmod -v 0600 /var/log/btmp
>>
>> Does anyone see an issue with changing the group and perms of
/var/log/btmp to fit SSH's expectations?

> I agree, if we create /var/log/btmp it should be chmod 600, but I
> wonder, do we need it? Does anything use it?

The command 'lastb' uses btmp.

I changed the permissions in svn.

   -- Bruce



More information about the lfs-support mailing list