[lfs-support] 6.06 Creating Essential Files and Symlinks

Qrux qrux.qed at gmail.com
Mon Feb 13 04:01:55 PST 2012


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?

	Q




More information about the lfs-support mailing list