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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-08-2013, 07:35 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2007
Distribution: Fedora Core 7
Posts: 14
Rep:
|
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!
|
|
|
|
01-08-2013, 08:34 PM
|
#2
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,656
|
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.
|
|
|
|
01-08-2013, 08:35 PM
|
#3
|
|
Member
Registered: Jul 2012
Location: Pune, India
Distribution: pclinux kde
Posts: 157
Rep:
|
What is wrong with it?
|
|
|
|
01-08-2013, 08:37 PM
|
#4
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,176
|
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.
|
|
|
|
01-09-2013, 11:47 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2007
Distribution: Fedora Core 7
Posts: 14
Original Poster
Rep:
|
Wasn't like that before, no idea why it changed, or how I can change it back.
|
|
|
|
01-09-2013, 11:51 AM
|
#6
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,656
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:02 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|