LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-08-2013, 08:35 PM   #1
HotDogger
LQ Newbie
 
Registered: Jul 2007
Distribution: Fedora Core 7
Posts: 14

Rep: Reputation: 0
su - root isn't acting right


Using Fedora, and when I type in su - root, and enter my password, it returns the following:

-bash-4.2#

No idea how to fix this. Thanks for any help!
 
Old 01-08-2013, 09:34 PM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,212

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
You only need to do "su -", not "su - root". The root is implied.

Anyway, what's the problem? root often has a different prompt than normal users, looks normal to me.
 
Old 01-08-2013, 09:35 PM   #3
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 183

Rep: Reputation: 22
What is wrong with it?
 
Old 01-08-2013, 09:37 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,651
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
What you see is the default Bash prompt for the root user (indicated by the #-character, an unprivileged user by default has the prompt ending with $).
Seems to be OK to me.
 
Old 01-09-2013, 12:47 PM   #5
HotDogger
LQ Newbie
 
Registered: Jul 2007
Distribution: Fedora Core 7
Posts: 14

Original Poster
Rep: Reputation: 0
Wasn't like that before, no idea why it changed, or how I can change it back.
 
Old 01-09-2013, 12:51 PM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,212

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Change it back to what? What are you expecting it to look like?

You can use the environment variable PS1 to change your prompt to whatever you like.
http://www.cyberciti.biz/tips/howto-...up-prompt.html

Last edited by suicidaleggroll; 01-09-2013 at 12:53 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Root PATH isn't right, can't change crypted Linux - Server 4 04-03-2010 12:37 PM
root password isn working ediik Linux - Newbie 4 08-03-2009 10:22 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 acting the fool in fedora core 3. dr_zayus69 Linux - General 3 01-14-2005 11:08 PM
Root isn't god?! akshunj Linux - Security 17 10-26-2003 10:36 AM


All times are GMT -5. The time now is 07:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration