LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 02:11 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 02:13 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 02:14 PM.
 
Old 09-18-2012, 09: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, 09:48 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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 09:50 PM.
 
Old 09-18-2012, 11:22 PM   #6
jayeshsharma52
Member
 
Registered: Jul 2012
Posts: 54

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


Reply



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 01:25 AM
Executing MS windows based program which is installed through Wine as a non-root user akram Linux - Newbie 1 07-31-2009 05: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 08:36 PM
root user has command start_fish_server b_s Linux - Security 4 06-09-2005 03:28 AM
Need a command so that non-root user can see interfaces that are up/down ming0 Slackware 5 02-02-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 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
Open Source Consulting | Domain Registration