Query regarding the owner and group of a file.
Michael Velez
mikev777 at hotmail.com
Wed Apr 18 15:51:26 UTC 2007
> > > From: redhat-list-bounces at redhat.com
> > > [mailto:redhat-list-bounces at redhat.com] On Behalf Of Ravi R.S
> > > Sent: Wednesday, April 18, 2007 8:08 AM
> > > To: redhat-list at redhat.com
> > > Subject: Re: Query regarding the owner and group of a file.
> > >
> > > Yes, for me with the following settings for the files, it
> > logs after
> > > saving and exiting from vi editor.
> > >
> >
> > How do you open the file? With the open system call or the fopen
> > subroutine?
> >
> > Can you run the:
> >
> > ls -i trace.log
> >
> > command and give the i-node number of the file before and
> after the vi
> > save?
> >
> > Is the file local or on a network drive?
> >
> > Michael
>
>
-------------------------------------------
THIS A RESEND SINCE I NEVER SAW THIS POSTED
-------------------------------------------
Also, you may want to run the strace command on the vi
session when the program is run as 'root' and when run as
'test' to see what the difference.
Redirect standard error to a file since strace writes its
output to standard
error:
strace vi trace.log 2> strace.out
then compare the strace.out on vi run as root to the
strace.out on vi run as test. See if you can spot a
difference. It's not easy. That may be a long shot but ...
That's all I can help you out with. Maybe somebody more
knowledgeable on the list knows why it would do that.
Michael
More information about the redhat-list
mailing list