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 07-10-2009, 12:16 AM   #1
ashlyjay
Member
 
Registered: Dec 2006
Posts: 32

Rep: Reputation: 16
root user but not in root environment?? (centos 5.3)


guys, i have installed centos 5.3 with only disk one, meaning its all command.

Anyway, i have to install something and when i execute the command,the computer says 'you are currently running as root but do not have roots environment'. you can switch to root environment using su - command.

I already did that and my username is root. is this a bug??
 
Old 07-10-2009, 12:32 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by ashlyjay View Post
guys, i have installed centos 5.3 with only disk one, meaning its all command.

Anyway, i have to install something and when i execute the command,the computer says 'you are currently running as root but do not have roots environment'. you can switch to root environment using su - command.

I already did that and my username is root. is this a bug??
When you become root you need to use the "-" in the "su" command...like this...

Code:
you@centos$ su -
-C
 
Old 07-12-2009, 09:41 PM   #3
ashlyjay
Member
 
Registered: Dec 2006
Posts: 32

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by custangro View Post
When you become root you need to use the "-" in the "su" command...like this...

Code:
you@centos$ su -
-C
guys, i have solve this problem... before the message that I wrote "'you are currently running as root but do not have roots environment'. you can switch to root environment using su - command." there was another error..it says "./install.sh :which : command not found"

so, what i did is just install the which package by

yum install which

then my installation proceeds..

thanks for your help.

Last edited by ashlyjay; 07-12-2009 at 09:43 PM.
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 05:27 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 06:15 PM
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
1:root vncserver: The USER environment variable is not set. Niceman2005 Linux - Software 1 05-24-2006 11:13 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM


All times are GMT -5. The time now is 06:38 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