root password problem with Yast

Hi,

Yast has recently decided to refuse my root password when started from the application launcher. However, I have no problem opening a shell, logining in as root (su command), then starting yast (yast command).

I am working on a OpenSuse 11.2 machine.

Any help to resolve this mystery would be appreciated.

I suppose the problem is rather caused by kdesu¹, not YaST itself, test that with

kdesu yast2

…and post the output here.

¹If you use KDE, in case of GNOME it’s ‘gksu’ I think.

‘kdesu yast2’ opens the same window as the one open from the application launcher (so I guess there is a good chance that you found the culprit). After I type my root password, the window displays: Incorrect password, please try again.

Again: please post the output of the command line (not of the kdesu-window).

Edit: maybe you type that command in a KRunner line (Alt + F2)? I mean an actual terminal.

Nope, ran it from shell.

There is no output to the shell after the window is open.

Weird, because this is how it looks for me:

kalle@hoppers:~> kdesu yast2
kdesu(8767)/kdesu (kdelibs) KDESu::PtyProcess::exec:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/process.cpp : 295 ]  Running "/bin/su"
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(8767)/kdesu (kdelibs) KDESu::PtyProcess::exec:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/process.cpp : 295 ]  Running "/bin/su"
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(8767)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/process.cpp : 381 ]  Child pid 8772
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line ""
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(8767)/kdesu (kdelibs) KDESu::PtyProcess::exec:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/process.cpp : 295 ]  Running "/bin/su"
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(8767)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/process.cpp : 381 ]  Child pid 8777
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line ""
kdesu(8767)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU:  /usr/src/packages/BUILD/kdelibs-4.5.2/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"

You do run ‘kdesu’ as user, don’t you?

Yes, running it from shell as user not root.

If I run kdesu with the -t option, the shell displays the following text after I enter my password:
kdesu_stub

And that’s it.

You might take a look at this recent thread to see if anything in it works for you

new kernel - shell error message

HTH,
Tony

I think it’s unlikely that these two are related, tsu2.

pomchip, please post the output of

kde4-config --version
zypper se -s kdebase4-runtime
>kde4-config --version
Qt: 4.5.3
KDE: 4.5.3 (KDE 4.3.5) "release 0"
kde4-config: 1.0
> zypper se -s kdebase4-runtime
Repository 'openSUSE:11.2:Contrib' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...

S | Name                               | Type       | Version      | Arch   | Repository
--+------------------------------------+------------+--------------+--------+---------------------
i | kdebase4-runtime                   | package    | 4.3.5-0.1.2  | i586   | openSUSE-11.2-Update
v | kdebase4-runtime                   | package    | 4.3.1-5.6.3  | i586   | openSUSE-11.2-Oss
  | kdebase4-runtime                   | srcpackage | 4.3.5-0.1.2  | noarch | openSUSE-11.2-Update
i | kdebase4-runtime-branding-openSUSE | package    | 11.2-29.31.1 | i586   | openSUSE-11.2-Update
v | kdebase4-runtime-branding-openSUSE | package    | 11.2-29.30.1 | i586   | openSUSE-11.2-Oss
  | kdebase4-runtime-branding-upstream | package    | 4.3.5-0.1.2  | i586   | openSUSE-11.2-Update
  | kdebase4-runtime-branding-upstream | package    | 4.3.1-5.6.3  | i586   | openSUSE-11.2-Oss

Your version of kdebase4-runtime does not match your KDE version.

I am not sure I am getting your point: both my KDE version and kdebase4-runtime are version 4.3.5 (except if you consider 4.3.5-0.1.2 to be different than 4.3.5). What would you recommend doing?

Whoops, now I am confused as well - you see, your kde4-config says

KDE: 4.5.3 (KDE 4.3.5) "release 0"

…so I thought you are running 4.5.3 (which makes no sense anyway considering the repositories you use, I think there’s no 4.5.3[beta] yet too), when I check that, it says

KDE: 4.5.2 (KDE 4.5.2)

…and I think both numbers usually match. Do you use any special KDE repos (or did so in the past)? A typo maybe (you should always copypaste such outputs)?

OK, now I get it. My bad, I typed this part and mixed up the numbers. (I am using a different computer right now, because I don’t have a web access on the machine with this kdesu problem).

Hm, sorry, in this case I have no ideas left.

Thanks anyway

pomchip wrote:
> Yast has recently decided to refuse my root password when started from
> the application launcher. However, I have no problem opening a shell,
> logining in as root (su command), then starting yast (yast command).

wild guess:

find Personal Settings - Configure Desktop and go Security & Privacy >
Password & User Account, then on the right you will see “At Password
Prompt” and you can select
“show one star for each letter”
“show three stars for each letter”
“show nothing”

(you had 3 stars, right?) change it to one star for each letter, then
click apply and see if you can’t now get YaST to accept your root
password!


DenverD
When it comes to chocolate, resistance is futile.
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

When I type my password, only one big dot per entered character (not 3 stars) shows up in the entry box.

Also, I don’t see any Security & Privacy category under Desktop Configure. As a reminder, I am working with KDE4.3.5 in opensuse 11.2. Is it possible that you refer to a different desktop or a different opensuse version?

pomchip wrote:
> When I type my password, only one big dot per entered character (not 3
> stars) shows up in the entry box.

out of ideas except i believe it to be a problem in kdm/KDE…

if you can add a new user and see if you have the same problem when
signed in as the new user, maybe we then know if the problem is inside
the configs of your /home

i have seen this problem before more than once…it has been solved by
the number of stars and maybe something else…but, i can neither
remember nor find it…google around…

btw, how often do you/have you logged into KDE as root?


DenverD
When it comes to chocolate, resistance is futile.
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Interesting!

As suggested, I have created a new user, reboot, and logged in as this new user. My root password was accepted after starting yast from the application launcher.

There must be something wrong with my original profile.

PS: I never log in as root.