LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2016, 03:06 PM   #1
xdino
LQ Newbie
 
Registered: May 2016
Posts: 6

Rep: Reputation: Disabled
I need to add something to my path as root


I'm attempting to run vim-go inside of vim to code go inside of vim but when I try to run commands such as :GoLint I get $GOPATH is not set. This only happens when I run vim as sudo but without sudo everything works fine.

I'm guessing the path is only set up for non root users so how do I add $GOPATH to root?
 
Old 05-22-2016, 03:21 PM   #2
xdino
LQ Newbie
 
Registered: May 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
NEVERMIND I simply needed to change ownership of said file in order to read/write to it using a non root user!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Permanently add path to root via script? Porch Linux - Software 5 05-11-2010 05:37 PM
how to add a file to a zip, without including the entire path from root marvelade Linux - Newbie 6 02-19-2009 06:32 AM
add to root's path permanently linuxfia Ubuntu 3 04-15-2008 12:42 AM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 03:14 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 10:29 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration