I’m using openSUSE 11.1, with KDE 4.1 and kdesu doesn’t accept my root password. Originally I had installed it with the root password being the same as my user, but I have since changed it (as I can login just fine from the command line) and it still doesn’t work. For instance, if I select the Yast2 icon from the KDE menu, it prompts me to enter a password but nothing seems to work.
Any ideas? I tried some of the hacks to get it not even ask for my password (ie, using kwriteconfig) but those don’t help either. It still asks for the root password and doesn’t accept it even if I type it in correctly.
hieronymous wrote:
> I’m using openSUSE 11.1, with KDE 4.1 and kdesu doesn’t accept my root
> password. Originally I had installed it with the root password being the
> same as my user, but I have since changed it (as I can login just fine
> from the command line) and it still doesn’t work. For instance, if I
> select the Yast2 icon from the KDE menu, it prompts me to enter a
> password but nothing seems to work.
>
> Any ideas? I tried some of the hacks to get it not even ask for my
> password (ie, using kwriteconfig) but those don’t help either. It still
> asks for the root password and doesn’t accept it even if I type it in
> correctly.
>
>
If you added yourself to sudoers, try entering your own password…
really, no one else has this problem? If I type in ‘kdesu xterm’ it prompts me for my root password, and always fails. But I can su, or sudo and su -l as root with no problem. This is a real problem when it comes to installing software! I can run yast2, but only if I run it from the Super-User xterm!
I am having it. Any place where I’ve installed KDE 4.x: the kdesu will not accept a correct root password. I end up having to open a terminal, do an su -, and then run the app. that I want.
This is occuring on a fresh install of openSuSE 11.1 to a Dell laptop, also on an old Sony VAIO laptop on which I installed 11.1, and now on this IBM T60 running openSUSE 11.0 for which I just tried the on-click install of KDE 4.2.
I’m now 3 for 3 systems, so from that perspective I’d think that most people would be seeing this issue.
The only workaround I saw was to change it so that my user was automatically approved and didn’t have to type a password. I really have no idea what is the cause or why it works for some and not others.
Got a case here as well. While auto-update running on non-privileged session, kdesu failure is seen; 10.3 with 4.2.
I think un-checking option to remember credentials helped in my case.
I have found the cause of this (at least for me). It was this line in my ~/.bash_profile:
export BASH_ENV=$HOME/.bashrc
Removed that and I was good-to-go.
If that does not do it for others I suggest trying this experiment:
login
cd ~
mkdir old
mv .bashrc .bash_profile old/
logout/login
Bring up a konsole and type:
kdesu /sbin/yast2
See if it works for you now. If it does not then I don’t have any suggestions for you other then to be sure that you restore your .bashrc and .bash_profile from where they were saved in old/
If it does work then I suggest putting back your .bashrc and .bash_profile files:
cd ~
cp -p old/.??* ~
Then start commenting out sections of each (do a binary search through the file disabling whole portions) until you find the offending section.
first noticed when i couldn’t open my wallet in kopete. Hitting OK had no effect. I could only cancel and ignore it.
trying to start YAST, same symptons observed.
I also tried “kdesu xterm” to force a prompt. still no joy.
so 1
created a completely new home directory
started KDE4
started setting up my system 1 thing at a time.
after each action i re-ran one of the programs above.
the symptons appeared after changing my person settings. An error regarding permissions on chfn appeared. I went down the route of trying to find out what that was to.
I then logged out and started with a new profile.
I changed each field individually and re-tried YAST/kdesu/kwallet.
& the answer was
ticking three stars for the password.
changing it back to showing one star makes everything work.
I could reproduce the symptoms by alternating between one and three stars.(working/non-working)
hope this is of help to someone - 've just lost a couple of days on this :(, and never saw this answer.
hieronymous wrote:
> I had installed it with the root password being the
> same as my user, but I have since changed it
how did you change it?
at the command line as root, or
in YaST signed in as yourself but gave root pass to YaST
in YaST while signed into KDE4 as root?
does /etc/passwd and/or /etc/shadow have any nearby saved backup
copies made by you or YaST?
are you absolutely 1000% certain that you correctly observed the case
of each stroke? that is: a and A are not the same.
> if I
> select the Yast2 icon from the KDE menu, it prompts me to enter a
> password but nothing seems to work.
does that mean that YaST throws up a “Incorrect Password please try
again” and “nothing seems to work” when you try to re-enter the
password and you keep getting the pass rejected…or YaST accepts
the password but when you (say) change the NTP Client settings
(Network Services > NTP Configuration) “nothing seems to work” in that
any change made is either immediately rejected OR it will not persist
through a boot?
I don’t think the above is directly causing the issue.
I had this problem and it was due to my .bashrc not working for user “root”.
It called a shell script that barffed as user root, that in turn caused kdesu to fail.
Basically, kdesu changes you to root, then YOUR .bashrc gets executed (maybe via the .bash_profile), and if this fails, kdesu fails.
You can verify this by doing the following:
su -c whoami
If this fails ,then kdesu will fail. If you get it working, then I expect kdesu will work.