RE: Query regarding the owner and group of a file.






From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Ravi R.S
Sent: Wednesday, April 18, 2007 8:08 AM
To: redhat-list@xxxxxxxxxx
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




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: fetchmail: lock creation failed - Thanks
    ... Fetchmail works as it should, ... I have learned to use strace, ... home directory tom was owned by root. ... I first attempted to copy the tom directory from the old drive ...
    (Debian-User)
  • Re: 2.6.25.3: su gets stuck for root
    ... I haven't seen it mentioned here (hopefully I wasn't too blind to see): ... If I run "su someuser" as root, ... Can you try to run "strace su someuser" instead? ...
    (Linux-Kernel)
  • Re: What kills Gnome??
    ... the strace command does is run another program (the program I referred ... the sound card at the same time]). ... including their name after the strace command on the command line, ... calls I was referring to in the last paragraph. ...
    (Fedora)
  • Re: Cannot umount any device, Mounting works ok
    ... It's the guessing. ... chmod u+s `which strace` ... Then, as root: ... chmod u-s `which strace` ...
    (comp.os.linux.misc)
  • Re: unable to login; pam broken?
    ... > I have a mysterious problem - I am unable to login as any ... i am also unable to su to root. ... > Apparently my PAM setup is broken (from looking at strace). ... This is just a shot in the dark: try upgrading your 'passwd' ...
    (Debian-User)