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?

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

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)

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.

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

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)

[QUOTE=DenverD;2337352]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…”](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: C A V E A T
[openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
HACK Everything → https://www.youtube.com/watch?v=

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.

See my reply to DenverD. I think I misstated the facts… Apologies about that!

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!!!

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:


df -h

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:


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

On 2011-05-09 18:55, DenverD wrote:
> 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

> which should cause your machine to reboot. when it does, this time don’t

Why all that rebooting to runlevel 3, then 5 again? Two reboots? EEEEEKS!
This is not windows! :frowning:

Just type [Ctrl][Alt][F1] to enter text mode, [Ctrl][Alt][F7] to go back to
graphics mode.


Cheers / Saludos,

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

On 05/09/2011 08:08 PM, Carlos E. R. wrote:
> Why all that rebooting to runlevel 3, then 5 again? Two reboots? EEEEEKS!
> This is not windows! :frowning:

Carlos! pay attention please! do you think he is posting from his
openSUSE that he can’t log into? or do you reckon he is dual booting?

i didn’t assume he left his machine idling for the last 24 hours at the
log in screen which had already disallowed his log in…so, i assumed he
would initially boot to rl 3 INSTEAD of going to the login screen, and
then [Ctrl][Alt][F1] etc…

so, i also know the difference between this and Windows and DECIDED it
was easier for ME to ADD on to gogalthorp’s almost two hour old advice,
rather than start over with: Is your machine still running and at the
log in screen which won’t log in? Let me know and then i will tell you
want to do…

so, ok…i could’a had him do a init 5 as root, but didn’t think about
it…shoot me!


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

On 2011-05-09 20:44, DenverD wrote:
> Carlos! pay attention please! do you think he is posting from his openSUSE
> that he can’t log into? or do you reckon he is dual booting?

But surely he can reach again that login screen that doesn’t work, and
there type ctrl-alt-f1. I don’t see the need to boot in text mode, correct
whatever, and then reboot again…


Cheers / Saludos,

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

What Linux are you using to post your questions regarding this issue with on the alt.os.linux.suse newsgroup?

I see, User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10

How did you log in to that? Are you dual booting?

No dual booting. I am simply using another computer that has Ubuntu 10.10 on it.

[QUOTE=DenverD;2337392]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:


df -h

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:


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: C A V E A T
[openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
HACK Everything → https://www.youtube.com/watch?v=

I am happy to report that I was finally able to login! Gogalthorp’s instructions, along with yours, did the trick. Thank you both for your time, effort, and patience!

In the process of restoring my password --correct me if I am wrong here!-- I had to set a password for user “root”. The password that I set was a very weak one as I did not want to further complicate things while I was trying to recover from not being able to log in as a single user.

What is the best course of action now? I don’t want to keep the weak password for “root” and I actually would prefer to use the same password that I use when I login as a single user. (That password is fairly strong.) I understand that this might not be considered best practice but I am thinking from the practical point of view too…

What do the experts suggest? Please reply with details as I am not that great (yet) with Linux.

On 05/10/2011 04:06 AM, tb75252 wrote:
> What is the best course of action now? I don’t want to keep the
> weak password for “root” and I actually would prefer to use the
> same password that I use when I login as a single user. (That
> password is fairly strong.) I understand that this might not be
> considered best practice but I am thinking from the practical
> point of view too…

the most practical point of view (imHo) is to follow “standard
procedure” and have a unique password for every user, including the
Super User…no, make that especially the super user…

here is the deal: any cracker who is able to dictionary attack and open
your home will automatically try the same key to gain root…so, why
make it easy?

its like, don’t reuse passwords: if the entry credentials to your
facebook is the same as your bank, and root…and facebook gets
cracked . . . duh!

> What do the experts suggest? Please reply with details as I am
> not that great (yet) with Linux.

i’m no expert, but i suggest you upgrade your “fairly strong” user
password and add a different, very strong root password…

the how for changing root pass is here: http://tinyurl.com/5skomad

user pass, use YaST > Security and Users > User and Group Management


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