LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   vi is not working as normal user (https://www.linuxquestions.org/questions/linux-enterprise-47/vi-is-not-working-as-normal-user-882560/)

manoj.linux 05-24-2011 11:48 PM

vi is not working as normal user
 
Hi,

I am unable to create/open any file in vi editor for normal user, though using root I am able to create/open any file, using redhat 5.5,

example
vi test

it showing nothing after entering command

anomie 05-25-2011 12:34 AM

Showing nothing - as in the command prompt hangs?

manoj.linux 05-25-2011 01:10 AM

it is showing just like below
[test@test123 ~]$ vi test
[test@test123 ~]$

norbert74 05-25-2011 02:43 AM

What happens if you use the full path, e.g. ?
Code:

$ /usr/bin/vi -V test

srivinbsc@gmail.com 05-02-2012 10:04 AM

Issue resolved
 
change the /var/tmp to 777 permission

Regards
Vinodh

druuna 05-02-2012 10:09 AM

Hi,
Quote:

Originally Posted by srivinbsc@gmail.com (Post 4668558)
change the /var/tmp to 777 permission

Regards
Vinodh

Don't dig up a year old thread please.

And if you do want to contribute make sure your solution is correct! Both /tmp and /var/tmp should be 1777 and not 777!!

srivinbsc@gmail.com 05-02-2012 10:58 AM

Hi druuna

If you had know solutions one year why can't you updated ? I had to search for 15 mins. 777 works fine for me. And I do n't want other to search and waste 15 mins of time as this is the 1st result for vi editor with such problem. Please note people looking into forum when the face issue not every time like you and find fault for no reason

Regards
Vinodh

druuna 05-02-2012 11:18 AM

Hi,
Quote:

Originally Posted by srivinbsc@gmail.com (Post 4668609)
If you had know solutions one year why can't you updated ?

I don't know the answer to this one. And although you claim your answer is the correct one, neither do you....

You are not the OP of this thread, this thread does not have the [SOLVED] tag, so for all we know this is still unresolved.

Quote:

I had to search for 15 mins. 777 works fine for me.
777 are the wrong permissions for /var/tmp and /tmp. Setting these permission _will_ get you into trouble!
The permissions on both directories are 1777. This is default/mandatory!

Quote:

Please note people looking into forum when the face issue not every time like you and find fault for no reason
I have good reason to add my previous reply: To make sure that people that stumble upon this thread would know that your solution is wrong!


All times are GMT -5. The time now is 04:54 AM.