Bug 1379

Summary: missing utmpx
Product: [Retired] Red Hat Raw Hide Reporter: enrico.scholz
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-23 21:03:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description enrico.scholz 1999-03-01 10:26:47 UTC
I'am missing a ">/var/run/utmpx" in rc.sysinit which clears
the user database at glibc 2.1 systems.

Comment 1 Cristian Gafton 1999-03-18 23:38:59 UTC
Fixed oon the beta release

Comment 2 enrico.scholz 1999-06-02 08:33:59 UTC
Bug seems to be back in the official release (initscripts-4.16) and in
the rawhide (4.19) version.

BTW1: /var/log/wtmpx should be handled (touch'ed, chmod'ed,...) like
/var/log/wtmp.
BTW2: In the rawhide version /var/run will be cleared by rc.sysinit
*after* creation of utmp, so utmp will be removed also.

Comment 3 Bill Nottingham 1999-06-14 19:51:59 UTC
the accidental removal of utmp will be fixed in initscripts-4.20.
As for utmpx/wtmpx, currently it's ignored because nothing shipped
in RH6.0 should be using it...

Comment 4 enrico.scholz 1999-06-14 20:44:59 UTC
Yes, you are right. After introducing the utmpx/wtmpx stuff at my
system (early glibc2.1 ages), much new compiled programs where
configured to look for .tmpx files only.
So it seems more programs are using .tmpx than .tmp; but it's just my
problem :(, not yours.

Comment 5 Cristian Gafton 1999-06-16 15:18:59 UTC
enabling utmpx by default has the potential to screw up older
programs. This is something that the user/administrator of the bix has
to decide for himself.

Comment 6 Jeff Johnson 1999-06-21 09:04:59 UTC
But if the user has enabled utmpx, then initscripts needs to do
something like
	[ -s /var/run/utmpx ] && cp /dev/null /var/run/utmpx
Ditto wtmpx.

Comment 7 Bill Nottingham 1999-06-21 18:26:59 UTC
true, but it leads to the problem (at least in the current
initscripts) of determining behavior based on a file you've
alread deleted. :)

Comment 8 Bill Nottingham 1999-06-23 21:03:59 UTC
initscripts-4.22 will zero /var/run/utmpx, /var/log/wtmpx
if it finds them...