Operating System - HP-UX
1758660 Members
2319 Online
108874 Solutions
New Discussion юеВ

Permission denied problem when using vi

 
SOLVED
Go to solution
Preet Dhillon
Advisor

Permission denied problem when using vi

All my users get the following error message when trying to use vi :

"/home/oracle/temp/Ex21803" Permission denied

It appears that the default temp directory path for vi has been incorrectly changed to /home/oracle/temp where ordinary users do not have read or write access. The default temp directory should be /tmp. Does anyone know how this has happened and how can I resolve it?
Many thanks in advance :-)
Nothing succeeds like excess
2 REPLIES 2
Laurent Paumier
Trusted Contributor
Solution

Re: Permission denied problem when using vi

vi uses the environment variable TMPDIR for the location of temporary files. Check its value while logged on as a user.
Preet Dhillon
Advisor

Re: Permission denied problem when using vi

Laurent, many thanks for your reply. I found that the TMPDIR env variable on my machine was set to a directory whose permissions had been changed to deny access to ordinary users. I've now set the permissions on this directory correctly and vi is now working as normal.
Many thanks again :-)
Nothing succeeds like excess