Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Unable To Login As Root

  1. #1

    Default Unable To Login As Root

    Using openSUSE 11.4 (64-bit). Desktop is default KDE.

    All of a sudden I am no longer able to login. My desktop only has one user and when I key in the password (which I am 100% sure it is correct!) I get the dreaded "Login failed" message.

    I followed these instructions without success:
    How to reset/recover the ROOT password in openSUSE | SUSE & openSUSE

    Following the instructions in the above link, I tried re-typing the old password and created new ones too. But I keep on getting the Login Failed message. A strange situation!

    I am a newbie, so I am at a loss as to what to do. What else (besides re-installing!) can I try?

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    11,210

    Default Re: Unable To Login As Root

    On 05/09/2011 01:36 PM, tb75252 wrote:
    >
    > All of a sudden I am no longer able to login. My desktop only has one
    > user


    is root the one user you have always used to log into your KDE?

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
    HACK Everything -> http://www.youtube.com/watch?v=j5b4CCe9pS8&NR=1

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,859

    Default Re: Unable To Login As Root

    On 2011-05-09 13:36, tb75252 wrote:
    >
    > Using openSUSE 11.4 (64-bit). Desktop is default KDE.


    View this thread: http://forums.opensuse.org/showthread.php?t=446115

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  4. #4

    Default Re: Unable To Login As Root

    Yes, that is the only user.

    I am not 100% sure but I think that my problem started when I selected GNOME when I was at the logins screen. Usually, after I log in, the OS automatically uses KDE as the desktop environment. I wanted to see what this GNOME DE was all about. As I said, however, I do not know if this is connected to my problem.

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    11,210

    Default Re: Unable To Login As Root

    On 05/09/2011 04:06 PM, tb75252 wrote:
    >
    > Yes, that is the only user.


    Linux is a multi-user system....and _each_ user should have their own
    account..

    even on machines used by only one warm body, there should be at least
    two users: the normal user and the System Administrator, also known as
    'root' or super user...

    this is unlike the way Windows does it because Windows was not born a
    multi-user system as was Linux and all *nix-like systems..

    consequently you should never log into KDE/Gnome/XFCE or any other
    *nix-like system's graphical user interface desktop environment as root..

    doing so 1) opens you up to several different security problems if you
    (for example) browse the net, 2) too many too easy ways to damage your
    system no matter how careful your actions (for example: well documented
    cases of unintended change of ownership of ~/.ICEauthority and
    ~/.Xauthority from user to root sometimes occurs), 3) anyway logging
    into KDE/etc as root is *never* required to do any and all
    administrative duties, 4) and, not even logging in as root just to see
    if it works as root is useful, because the "yes" or "no" learned is
    almost always totally useless in finding the problem giving the
    symptoms. however, logging in as root to learn the yes/no could the
    cause of the next adverse symptom encountered.

    so, always log in as yourself, and "become root" by using a root powered
    application (like YaST, File Manager Superuser Mode) or using "su -",
    sudo, kdesu, or gnomesu in a terminal to launch whatever tool is needed
    (like Kwrite to edit a config file)...read more on all that here:

    http://en.opensuse.org/SDB:Login_as_root
    http://tinyurl.com/ydbwssh
    http://forums.opensuse.org/showthread.php?t=446115
    http://tinyurl.com/4nsaqst
    http://tinyurl.com/6ry6yd

    additionally: after logging into KDE/Gnome/etc as root, if you
    experience problems (for example, with uncommanded file ownership and
    permissions changes) and if you can provide us with details of what you
    were doing while you were logged in as root, that would help us identify
    if there's a bug that needs to be fixed...thanks for your help..

    i suspect that failure to follow this standard Linux operating procedure
    has cause grave damage to your system...i think the easiest way to
    recover is probably do a format reinstall and begin doing your regular
    user work as a named user, and exercise administrative powers by
    becoming root only as needed (and, never by logging into KDE/Gnome and etc)

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
    HACK Everything -> http://www.youtube.com/watch?v=j5b4CCe9pS8&NR=1

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,859

    Default Re: Unable To Login As Root

    On 2011-05-09 16:06, tb75252 wrote:
    > Yes, that is the only user.


    Don't ever do that!

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  7. #7

    Default Re: Unable To Login As Root

    Quote Originally Posted by DenverD View Post
    On 05/09/2011 04:06 PM, tb75252 wrote:
    >
    > Yes, that is the only user.


    Linux is a multi-user system....and _each_ user should have their own
    account..

    even on machines used by only one warm body, there should be at least
    two users: the normal user and the System Administrator, also known as
    'root' or super user...

    this is unlike the way Windows does it because Windows was not born a
    multi-user system as was Linux and all *nix-like systems..

    consequently you should never log into KDE/Gnome/XFCE or any other
    *nix-like system's graphical user interface desktop environment as root..

    doing so 1) opens you up to several different security problems if you
    (for example) browse the net, 2) too many too easy ways to damage your
    system no matter how careful your actions (for example: well documented
    cases of unintended change of ownership of ~/.ICEauthority and
    ~/.Xauthority from user to root sometimes occurs), 3) anyway logging
    into KDE/etc as root is *never* required to do any and all
    administrative duties, 4) and, not even logging in as root just to see
    if it works as root is useful, because the "yes" or "no" learned is
    almost always totally useless in finding the problem giving the
    symptoms. however, logging in as root to learn the yes/no could the
    cause of the next adverse symptom encountered.

    so, always log in as yourself, and "become root" by using a root powered
    application (like YaST, File Manager Superuser Mode) or using "su -",
    sudo, kdesu, or gnomesu in a terminal to launch whatever tool is needed
    (like Kwrite to edit a config file)...read more on all that here:

    SDB:Login as root - openSUSE
    Become su in Terminal - HowTo
    graphical root login no longer allowed after update from KDE 4.5.0 to KDE 4.5.1
    Problem with permission
    "Sign in as ROOT and..."

    additionally: after logging into KDE/Gnome/etc as root, if you
    experience problems (for example, with uncommanded file ownership and
    permissions changes) and if you can provide us with details of what you
    were doing while you were logged in as root, that would help us identify
    if there's a bug that needs to be fixed...thanks for your help..

    i suspect that failure to follow this standard Linux operating procedure
    has cause grave damage to your system...i think the easiest way to
    recover is probably do a format reinstall and begin doing your regular
    user work as a named user, and exercise administrative powers by
    becoming root only as needed (and, never by logging into KDE/Gnome and etc)

    --
    CAVEAT: C A V E A T
    [openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
    HACK Everything -> YouTube - How to Hack Everything!
    Thanks for your reply.

    Being a relatively new user of Linux, I might have misstated the details in my original posting...

    When I installed openSUSE, I was asked to create one user name and a corresponding password. I then manually ticked the option to require a login screen instead of directly going to the desktop environment upon booting up.

    When the system alerts me that there are new patches/updates etc. to download, I use the same password to authorize their download and installation. That is why I was originally referring to a "root password" even though, on second thought, I don't think that I was using the correct terminology. Again, I apologize about this misstatement caused by my lack of expertise with Linux terminology.

    I think (but I am not 100% sure!) that my problem started when I was at the login screen and decided to select GNOME as the desktop environment to use. (Normally, upon logging in, the KDE environment is loaded.) That is when I started receiving the dreaded "Login failed" message. It seems so strange that an action like this would create havoc with my login password, but I cannot think of anything else I did that could have caused the problem.

    I hope I have explained the situation more clearly.

  8. #8

    Default Re: Unable To Login As Root

    Quote Originally Posted by robin_listas View Post
    On 2011-05-09 16:06, tb75252 wrote:
    > Yes, that is the only user.


    Don't ever do that!

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)
    See my reply to DenverD. I think I misstated the facts... Apologies about that!

  9. #9
    Join Date
    Nov 2009
    Location
    West by God Virginia
    Posts
    7,294

    Default Re: Unable To Login As Root

    Can you log on to a terminal? Press 3 at the boot screen then enter. Log in as root here (note this is OK just never log to a GUI as root). Type yast. This gives the command line version of yast. Navigate to the user section (use tab keys and arrow keys) try resetting the password for your user account. Note this should be different then the root password. (don't know why they default to same password these days it is bad practice)

    Also remember that Unix/Linux systems are case sensitive!!!!

  10. #10
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    11,210

    Default Re: Unable To Login As Root

    On 05/09/2011 05:36 PM, gogalthorp wrote:
    >
    > Can you log on to a terminal? Press 3 at the boot screen then enter. Log
    > in as root here (note this is OK just never log to a GUI as root). Type
    > yast. This gives the command line version of yast. Navigate to the user
    > section (use tab keys and arrow keys) try resetting the password for
    > your user account. Note this should be different then the root password.
    > (don't know why they default to same password these days it is bad
    > practice)
    >
    > Also remember that Unix/Linux systems are case sensitive!!!!



    YES! follow those instructions and attempt to reset your user account
    password to something new (don't forget it)..

    then after you have closed YaST but while still logged in as root, type
    and enter this:

    [CODE]
    df -h
    [CODE]

    if any of the percent values are at or near 100%, write down the file
    system and values columns and report those back to here, please..

    if none are near 100% then, still as root, type and issue this:

    Code:
    shutdown -r now
    which should cause your machine to reboot. when it does, this time don't
    type 3 and let it go to the login screen...then try again to log in as
    yourself with the password you just set...if that fails, go to the
    Sessions section of the log in screen and select to use KDE again, and
    try logging into it, as yourself..

    if you can't log in there should be an error message, it is important
    for you to tell use what that message is..

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
    HACK Everything -> http://www.youtube.com/watch?v=j5b4CCe9pS8&NR=1

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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