LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 07: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, 08:34 PM   #2
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
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, 08:35 PM   #3
kedarp
Member
 
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Blog Entries: 3

Rep: Reputation: 23
What is wrong with it?
 
Old 01-08-2013, 08:37 PM   #4
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
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, 11:47 AM   #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, 11:51 AM   #6
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
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 11:53 AM.
 
  


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 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 11:37 AM
root password isn working ediik Linux - Newbie 4 08-03-2009 09: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 08:36 PM
root acting the fool in fedora core 3. dr_zayus69 Linux - General 3 01-14-2005 10:08 PM
Root isn't god?! akshunj Linux - Security 17 10-26-2003 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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