openSUSE Forums > How To/FAQ (read only) > Unreviewed How To and FAQ » How to solve kdesu´s prompt for a password in openSUSE 11.0

Go Back   openSUSE Forums > How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read

Unreviewed How To and FAQ Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-Jul-2008, 09:59
Puzzled Penguin
 
Join Date: Jun 2008
Location: Slovakia
Posts: 38
ra100 hasn't been rated much yet
Default How to solve kdesu´s prompt for a password in openSUSE 11.0

"Have you recently installed openSUSE 11.0 and added:
username ALL=(ALL) NOPASSWD: ALL
Into your /etc/sudoers files, only to find out now when you launch yast it still prompts for a password?"

Ben Kevan’s Blog > Default kdesu to use sudo and not su
Reply With Quote
  #2 (permalink)  
Old 08-Jul-2008, 10:13
growbag's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Köln, Deutschland
Posts: 586
growbag hasn't been rated much yet
Default Re: How to solve kdesu´s prompt for a password in openSUSE 1

Thanks, I'll give it a go. This one was bugging the life out of me .
Reply With Quote
  #3 (permalink)  
Old 08-Jul-2008, 10:39
growbag's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Köln, Deutschland
Posts: 586
growbag hasn't been rated much yet
Default Re: How to solve kdesu´s prompt for a password in openSUSE 1

Didn't work for me, still get the dreaded kdesu when running Yast2 .
Reply With Quote
  #4 (permalink)  
Old 08-Jul-2008, 10:54
benstein's Avatar
Student Penguin
 
Join Date: Jun 2008
Location: Albuquerque, NM, USA
Posts: 69
benstein hasn't been rated much yet
Send a message via AIM to benstein
Default Re: How to solve kdesu´s prompt for a password in openSUSE 1

Code:
kwriteconfig --file kdesurc --group super-user-command --key super-user-command sudo
I couldn't read or copy the command from the blog so here it is and it's working great in KDE3.
__________________
It's really that much fun!
Geeko Samurai (cc)
My Recent Tracks
Reply With Quote
  #5 (permalink)  
Old 08-Jul-2008, 12:11
lornix's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Oklahoma, US
Posts: 828
lornix hasn't been rated much yet
Send a message via AIM to lornix Send a message via MSN to lornix Send a message via Yahoo to lornix
Default Re: How to solve kdesu´s prompt for a password in openSUSE 11.0

ra100 wrote:

>
> "Have you recently installed openSUSE 11.0 and added:
> username ALL=(ALL) NOPASSWD: ALL
> Into your /etc/sudoers files, only to find out now when you launch yast
> it still prompts for a password?"
>
> 'Ben Kevan’s Blog > Default kdesu to use sudo and not su'
> (http://www.benkevan.com/blog/default...do-and-not-su/)
>
>
>


Did some research, discovered I have TWO versions of kwriteconfig (and
others!) installed, one for kde3, another for kde4. imagine it's because
I'm running 3.5.9, but with some 4.x apps, so I get both runtimes.

This can cause issues, because the two programs use slightly different syntax,
the KDE4 kwriteconfig app uses single dash '-' for options while the KDE3
version uses double-dash '--'. grrr!

Better solution is to actually create the file entry that command is
*supposed* to be doing.

look in .kde/share/config and .kde4/share/config for a file named 'kdesurc'.

If it doesn't exist, create a new file named 'kdesurc'.

Add these two lines to the file:

[super-user-command]
super-user-command=sudo

I did both .kde and .kde4 to make sure I catch whichever kdesu is called (v3
or v4).

This has worked for me, on both 32bit and 64bit systems, opensuse 11.0, KDE
3.5.9 installs. Should also fix KDE4.x systems.

Loni


--
L R Nix
lornix@lornix.com
Reply With Quote
  #6 (permalink)  
Old 08-Jul-2008, 14:41
growbag's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Köln, Deutschland
Posts: 586
growbag hasn't been rated much yet
Default Re: How to solve kdesu´s prompt for a password in openSUSE 1

Woohoo!

Thanks lornix, worked a treat
Reply With Quote
  #7 (permalink)  
Old 08-Jul-2008, 21:06
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 43
eclipseagent hasn't been rated much yet
Default Re: How to solve kdesu´s prompt for a password in openSUSE 1

Quote:
Originally Posted by lornix View Post
ra100 wrote:

>
> "Have you recently installed openSUSE 11.0 and added:
> username ALL=(ALL) NOPASSWD: ALL
> Into your /etc/sudoers files, only to find out now when you launch yast
> it still prompts for a password?"
>
> 'Ben Kevan’s Blog > Default kdesu to use sudo and not su'
> (Ben Kevan’s Blog > Default kdesu to use sudo and not su)
>
>
>


Did some research, discovered I have TWO versions of kwriteconfig (and
others!) installed, one for kde3, another for kde4. imagine it's because
I'm running 3.5.9, but with some 4.x apps, so I get both runtimes.

This can cause issues, because the two programs use slightly different syntax,
the KDE4 kwriteconfig app uses single dash '-' for options while the KDE3
version uses double-dash '--'. grrr!

Better solution is to actually create the file entry that command is
*supposed* to be doing.

look in .kde/share/config and .kde4/share/config for a file named 'kdesurc'.

If it doesn't exist, create a new file named 'kdesurc'.

Add these two lines to the file:

[super-user-command]
super-user-command=sudo

I did both .kde and .kde4 to make sure I catch whichever kdesu is called (v3
or v4).

This has worked for me, on both 32bit and 64bit systems, opensuse 11.0, KDE
3.5.9 installs. Should also fix KDE4.x systems.

Loni


--
L R Nix
lornix@lornix.com
Loni,

I have added the contents of this post to my blog, and gave you credit.. thanks for the foot work.
__________________
How much can you know about yourself if you've never been in a fight. - Fight Club

Ben Kevan's Blog - That's me
Reply With Quote
  #8 (permalink)  
Old 08-Jul-2008, 21:55
lornix's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Oklahoma, US
Posts: 828
lornix hasn't been rated much yet
Send a message via AIM to lornix Send a message via MSN to lornix Send a message via Yahoo to lornix
Default Re: How to solve kdesu´s prompt for a password in openSUSE 11.0

eclipseagent wrote:

>
> lornix;1835315 Wrote:
>> ra100 wrote:
>>
>> >
>> > "Have you recently installed openSUSE 11.0 and added:
>> > username ALL=(ALL) NOPASSWD: ALL
>> > Into your /etc/sudoers files, only to find out now when you launch

>> yast
>> > it still prompts for a password?"
>> >
>> > 'Ben Kevan’s Blog > Default kdesu to use sudo and not su'
>> > ('Ben Kevan’s Blog > Default kdesu to use sudo and not su'

>> (http://www.benkevan.com/blog/default...do-and-not-su/))
>> >
>> >
>> >

>>
>> Did some research, discovered I have TWO versions of kwriteconfig (and
>> others!) installed, one for kde3, another for kde4. imagine it's
>> because
>> I'm running 3.5.9, but with some 4.x apps, so I get both runtimes.
>>
>> This can cause issues, because the two programs use slightly different
>> syntax,
>> the KDE4 kwriteconfig app uses single dash '-' for options while the
>> KDE3
>> version uses double-dash '--'. grrr!
>>
>> Better solution is to actually create the file entry that command is
>> *supposed* to be doing.
>>
>> look in .kde/share/config and .kde4/share/config for a file named
>> 'kdesurc'.
>>
>> If it doesn't exist, create a new file named 'kdesurc'.
>>
>> Add these two lines to the file:
>>
>> [super-user-command]
>> super-user-command=sudo
>>
>> I did both .kde and .kde4 to make sure I catch whichever kdesu is
>> called (v3
>> or v4).
>>
>> This has worked for me, on both 32bit and 64bit systems, opensuse 11.0,
>> KDE
>> 3.5.9 installs. Should also fix KDE4.x systems.
>>
>> Loni
>>
>>
>> --
>> L R Nix
>> lornix@lornix.com

>
> Loni,
>
> I have added the contents of this post to my blog, and gave you
> credit.. thanks for the foot work.
>
>


awww, {blush} you're too kind! Thank you, I'm happy to help.

(although I think I talk too much)

Loni
--
L R Nix
lornix@lornix.com
Reply With Quote
Reply


Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2