Results 1 to 8 of 8

Thread: Root Prompt in Terminal Has Changed

  1. #1

    Default Root Prompt in Terminal Has Changed

    i logged in as root user in terminal and to my surprise, the root prompt has changed. i'm not sure what i did that changed the prompt. i've no problems logging in as root, it just bothers me that i see this error each time i log in (at least for today). i want the old prompt back. can anybody explain what caused this and how can i get the old one back? thanks!




    Uploaded with ImageShack.us

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: Root Prompt in Terminal Has Changed

    I'm not seeing this

    What version of openSUSE?
    Have you made any mods?
    What repos do you have?
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Root Prompt in Terminal Has Changed

    The original of the line in question is:

    Code:
    if test -d /proc/iSeries -a \( "$tty" = "/dev/tty1" -o "$tty" = "/dev/console" \) ; then
    You must have edited the file and removed the backslash.

  4. #4

    Default Re: Root Prompt in Terminal Has Changed

    Quote Originally Posted by caf4926 View Post
    I'm not seeing this

    What version of openSUSE?
    Have you made any mods?
    What repos do you have?
    openSUSE 12.1, no modifications made (especially on the /etc/profile file), i have the default repos for openSUSE, PackMan, libdvdcss

  5. #5

    Default Re: Root Prompt in Terminal Has Changed

    Quote Originally Posted by ken_yap View Post
    The original of the line in question is:

    Code:
    if test -d /proc/iSeries -a \( "$tty" = "/dev/tty1" -o "$tty" = "/dev/console" \) ; then
    You must have edited the file and removed the backslash.

    i don't recall editing the /etc/profile file. i don't have such reasons to edit it anyway. is it possible that the OS itself made the modification? what could've caused that file to be changed?

  6. #6

    Default Re: Root Prompt in Terminal Has Changed

    i got the correct prompt back by following @ken_yap's code post. i added the \ after "-a " and "/dev/console ". it puzzles me that i didn't do anything with the profile file yet was changed.


    thanks for the help!

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Root Prompt in Terminal Has Changed

    On 01/07/2012 04:06 PM, hoychoy wrote:
    > what could've caused that file to be changed?


    an error in RAM while writing to disk, or a disk error...

    are you having any other problems?

    it might be a good idea to check your hard drive with SMART, and test
    ram by booting from an openSUSE install disk and selecting "Memory Test"
    from the first green screen...and, let it run overnight (it takes a long
    time to test all memory)

    other than that, it could have been a sunspot which flipped a switch..

    --
    DD http://tinyurl.com/DD-Caveat
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Root Prompt in Terminal Has Changed

    On 2012-01-07 16:06, hoychoy wrote:

    > i don't recall editing the /etc/profile file. i don't have such reasons
    > to edit it anyway. is it possible that the OS itself made the
    > modification? what could've caused that file to be changed?


    Check the date of the file (too late, you edited it). Check what rpm owns
    that file, check updates in rpm database.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •