Fedora Linux Support Community & Resources Center
  #1  
Old 24th November 2007, 06:35 PM
40esp Offline
Registered User
 
Join Date: Jun 2007
Location: Freeland, MI
Age: 22
Posts: 245
root shell login shows -bash-3.2#

when i login as root via ssh or locally it logges in, but instead of showing root@myhostname
it shows -bash-3.2#

i deleted some files in the root folder.. would that do it?

and if so how would i return the root login to root@myhostname?
Reply With Quote
  #2  
Old 24th November 2007, 07:49 PM
goldenbrown Offline
Registered User
 
Join Date: Jun 2007
Posts: 35
the login prompt is set in /etc/bashrc and is called from ~/.bashrc. Do you have those files on ypur remote machine?
I have read (and believe) that sshing as root is not a good idea on a security front. ssh as a user then su is a safer option.

Nigel
Reply With Quote
  #3  
Old 18th December 2007, 03:25 PM
Sorb Offline
Registered User
 
Join Date: Jun 2007
Location: Sweden
Age: 35
Posts: 7
I had the same problem after upgrading to Fedora 8. Somehow my /root/.bashrc was renamed to /root/.bashrc.rpmsave and my .bash_profile was gone. Here's how I fixed it:

# mv /root/.bashrc.rpmsave /root/.bashrc
# cp /etc/skel/.bash_profile /root

By the way to disable direct root login through ssh set the variable "PermitRootLogin: no" in /etc/ssh/sshd_config.
Reply With Quote
Reply

Tags
bash32#, login, root, shell, shows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When I login, It only shows the shell georgecm3 Using Fedora 4 9th September 2006 01:05 AM
Bash: Login to root twiistedkaos Using Fedora 2 3rd April 2006 08:04 PM
"bash: no job control in this shell" become root without asking passwd? hosais Security and Privacy 2 4th August 2005 04:23 PM


Current GMT-time: 09:44 (Monday, 21-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat