LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No command is executing as root user. (https://www.linuxquestions.org/questions/linux-newbie-8/no-command-is-executing-as-root-user-4175427873/)

jayeshsharma52 09-18-2012 03:00 PM

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.

sycamorex 09-18-2012 03:11 PM

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?

TobiSGD 09-18-2012 03:13 PM

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.

jayeshsharma52 09-18-2012 10:40 PM

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

suicidaleggroll 09-18-2012 10:48 PM

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

jayeshsharma52 09-19-2012 12:22 AM

@suicidaleggroll ..Really thanx.


All times are GMT -5. The time now is 06:21 PM.