okay.
kopen("/var/tmp/Ex50270", O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR) = 3
close(3) = 0
kopen("/var/tmp/Ex50270", O_RDWR) Err#13 EACCES
What this code does:
call creat() to open a new file, which returns 3 == okay
call close on 3, which is okay.
finally it tries to open the newly created file for read write and fails.
This file is the temporary workfile, and does not have anything to do with .exrc
I am guessing something weird has happened in /var/tmp. I would guess there are Exnnnnn files there with bad file attributes - the files should all be cleaned up when vi (or any other editor ) exits.
Try setting the TMPDIR variable for a user with the problem - my assumption here is that /tmp is truly a separate directory object from /var/tmp. Correct me if I'm wrong -
like tmp is a symlink to /var/tmp (I do not know AIX, except that it has tricked me in the the past.)
export TMPDIR=/tmp
Then try vi. If it works then - /var/tmp and friends have an issue.