Bug 4838

Summary: vi race condition
Product: [Retired] Red Hat Linux Reporter: Red Hat Bugzilla <bugzilla>
Component: vimAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-10-04 21:34:37 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 Red Hat Bugzilla 1999-09-01 19:06:39 UTC
I have noticed that when logged on as root and using VI,

VI will open a work file that belongs to a different user.

So, user A is editing thesis.tex and root is going to edit
/etc/hosts. Root will see the work file of user A's
thesis.tex.

I think that there is a bug in the temp files for VI but
I dont have the time to chase it down with the start of
classes at hand.

Richard Wong

Comment 1 Red Hat Bugzilla 1999-09-20 17:35:59 UTC
Is this happening to you always or occasionally or rarely?  (I use
vi as root very often and have never seen this.)

Comment 2 Red Hat Bugzilla 1999-09-23 17:10:59 UTC
One more possibility is that your machine has been compromised by
a cracker.  Consider, as a first investigative step, running the
command
	rpm -Va
And looking through any problems it reports.

Comment 3 Red Hat Bugzilla 1999-10-04 21:34:59 UTC
If anyone can reproduce this with any version of vi, please
re-open this bug with a description of what you did to recreate
the bug, and include the exact version of vim you are using.
Thanks!