1819799 Members
3271 Online
109607 Solutions
New Discussion юеВ

vi permission denied

 
SOLVED
Go to solution
kggj
Advisor

vi permission denied

Hi

I can't open any new files with vi , for any non root users . We have HPUX 11.23

Can some one help ?

KGG
7 REPLIES 7
Tim Nelson
Honored Contributor

Re: vi permission denied

Is this a file permission thing with the files ? Then modify the permissions appropriately..

Is this a global issue, no matter what the file permissions are vi has issue ? Then check /var/preserve directory permissions, needs to be 777.

Give us some actual information to work with and we will try and help.


Torsten.
Acclaimed Contributor

Re: vi permission denied

How about the permissions and ownership for these new files? Please check.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kggj
Advisor

Re: vi permission denied

Hi

/var/preserve is 777

When I vi fn, it gives /var/tmp/Ex permission denied .

I have created 4 Id's and this happends with all the four.

Rgds/ KGG


Pete Randall
Outstanding Contributor

Re: vi permission denied

Are the permissions on /var/tmp 777 as well?


Pete

Pete
kggj
Advisor

Re: vi permission denied

Yes.


ll -ld /var/tmp
drwxrwxrwt 4 root root 8192 Feb 19 10:39 /var/tmp


Rgds/ KGG
Tim Nelson
Honored Contributor
Solution

Re: vi permission denied

The file in /var/Ex12345 is the temp buffer file for your vi session. The number should be unique to the pid that vi is running.

Either you have a pile of non-unique /var/tmp/ExPID files. I will also assume that root owns all these files. Maybe send a listing.

Remove all Ex12345 files from /var/tmp and try again.

If not then /var/tmp or maybe even /var still has a permission problem like no execute in /var ?




kggj
Advisor

Re: vi permission denied

Hi

thank you all.

the problem was the wrong umask value on the system.

set that to 022 and it resolved the vi issues.

rgds/ KGG