Smb4K prompts for root password after upgrading to openSUSE 12.3

When I upgraded to 12.2 I posted this:

https://forums.opensuse.org/english/get-technical-help-here/network-internet/479738-smb4k-prompts-root-password-after-upgrading-opensuse-12-2-a.html

The policykit solution worked although there were error notifications on every boot even though the mounting worked.

Now I’ve upgraded to 12.3 and Smb4K has started prompting again. The policy looks fine but seems to be ignored:

Contents of /var/lib/polkit-1/localauthority/10-vendor.d/de.berlios.smb4k.mounthelper.mount.pkla:


[de.berlios.smb4k.mounthelper.mount]
Identity=unix-user:gugrim;
Action=de.berlios.smb4k.mounthelper.mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Anyone knows what’s wrong?

TIA,
Gunnar

On 3/31/2013 4:46 AM, gugrim wrote:
>
> When I upgraded to 12.2 I posted this:
>
> http://tinyurl.com/cspvk5u
>
> The policykit solution worked although there were error notifications
> on every boot even though the mounting worked.
>
> Now I’ve upgraded to 12.3 and Smb4K has started prompting again. The
> policy looks fine but seems to be ignored:
>
> Contents of
> /var/lib/polkit-1/localauthority/10-vendor.d/de.berlios.smb4k.mounthelper.mount.pkla:
>
> Code:
> --------------------
>
> [de.berlios.smb4k.mounthelper.mount]
> Identity=unix-user:gugrim;
> Action=de.berlios.smb4k.mounthelper.mount
> ResultAny=yes
> ResultInactive=yes
> ResultActive=yes
>
> --------------------
>
>
> Anyone knows what’s wrong?
>
> TIA,
> Gunnar
>
>
A work around, which works quite well, was given by jdmcdaniel3 in post 8 of this thread:

http://forums.opensuse.org/english/get-technical-help-here/network-internet/484310-problems-samba-smb4k-opensuse-12-3-64-bit.html


P.V.
“We’re all in this together, I’m pulling for you” Red Green

Yes, I’ve seen that and unless I’ve misunderstood something it isn’t really about a way to make smb4k work, more about how to get by without smb4k. KDE smb-links are fine but I really like
smb4k and it worked very well before suse 12.2 and acceptably before 12.3. Perhaps this isn’t even an smb4k problem but symptoms of a bug in how policies are handled.

This is really annoying, I’ve got the same bug here. I’ve looked into the manpage of polkit, which gave a hint: Polkit seems to look for rules either in /etc/polkit-1 or in /usr/share/polkit-1, but not in /var/lib/polkit-1. So I copied the whole folder /var/lib/polkit-1/10-vendor.d to /etc/polkit-1 and now I can mount via smb4k without giving root’s pw.

Why annoying? Because s2ram depends on umount of the connection.

But probably I opended a hole for whatever security reasons. I even do not know where to leave a bug report.

HTH
Alexander

On 2013-04-08 14:16, cookie170 wrote:
> I even do
> not know where to leave a bug report.

openSUSE:Submitting bug
reports


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Revocation!

Unfortunately the “solution” does not work – the annoying behaviour is back.

There have been some threads about this question and the solution is here:

Using Smb4K on openSUSE 12.3 without password prompt | www.grim.se