LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-18-2012, 03:00 PM   #1
jayeshsharma52
Member
 
Registered: Jul 2012
Posts: 54

Rep: Reputation: Disabled
No command is executing as root user.


I installed sbt(for scala language), and as written in its installation manual i changed the path settings
it was like "export path=/home/user/Downloads/sbt/bin=$path"
in ~./bashrc but after which i am unable to execute any command as root user.please help me out.
Thanks.
 
Old 09-18-2012, 03:11 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
1. Can you provide the link to the manual? The export line does not look right.
2. The file is ~/.bashrc and NOT ~./bashrc
3. Not sure, but you're not doing it in root's home, are you?
 
Old 09-18-2012, 03:13 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
1. Linux is case sensitive, so it must be PATH and $PATH, not path and $path
2. Paths are separated with :, not =, so the correct line in your .bashrc should be
Code:
export PATH=/home/user/Download/sbt/bin:$PATH
But as sycamorex stated, would be good to see that manual.

Last edited by TobiSGD; 09-18-2012 at 03:14 PM.
 
Old 09-18-2012, 10:40 PM   #4
jayeshsharma52
Member
 
Registered: Jul 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
yes i wrote in caps ,but i now i am unable to undo the changes , as vim or any command is not executing from root as user
 
Old 09-18-2012, 10:48 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
That's just because your PATH is messed up, so it doesn't know where to look for the vim executable. Use the full path to vim to correct it:
Code:
/usr/bin/vim ~/.bashrc

Last edited by suicidaleggroll; 09-18-2012 at 10:50 PM.
 
Old 09-19-2012, 12:22 AM   #6
jayeshsharma52
Member
 
Registered: Jul 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
@suicidaleggroll ..Really thanx.
 
  


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
how to run a command under root as another user? fab76 Linux - General 4 01-11-2010 02:25 AM
Executing MS windows based program which is installed through Wine as a non-root user akram Linux - Newbie 1 07-31-2009 06:18 AM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 09:36 PM
root user has command start_fish_server b_s Linux - Security 4 06-09-2005 04:28 AM
Need a command so that non-root user can see interfaces that are up/down ming0 Slackware 5 02-02-2004 06:49 PM


All times are GMT -5. The time now is 08:42 AM.

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