Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: " Su returned with an error " in KDE [SOLVED]

  1. #21
    Junior Member
    Join Date
    Jan 2007
    Posts
    6

    Re: Im havin problems too

    Quote Originally Posted by bas
    I just installed Knoppix 5.1.1 to my HDD last night, and I am too having problems w/ superuser. I can do hardly anything. The workarounds posted in this topic provide a little help, but they always wind up making the apps appear in German. Is this an isolated incident? And is their anything to fix this?
    I have found for the german problem, kdesu konquer with workaround. Go to etc/default/locale & change lang from de to required lang en_us in my case. You can also do the kde control panel admin settings thru kdesu, save changes, close & reboot. After the etc/default/locale change is done konqueror will be in your set lang. This is based on my exeriance with it.

  2. #22
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    England
    Posts
    177
    I sent the following Feedback to knopper.net. Many thanks to Klaus Knopper for his response, as appended.

    > KNOPPIX= 2007-01-04
    > Category= feedback Feedback
    > Comment=
    > Knoppix 5.1.1 installed on Hard Drive: when kdesu is invoked, it
    > gives an error message:-
    >
    > \"Su returned with an error\"
    >
    > It is reported that this does not happen with Knoppix <= 5.1.0
    >
    > The error does not happen if invoked by user with root privilege.
    >
    > Quote from release notes:
    > * V5.1.1-2007-01-04 (see also: Release Notes at http://
    > knopper.net/knoppix/knoppix51-en.html)
    > - Updated kicker and kdebase (while fixing a nasty bug that made
    > kicker \"disappear\"
    > in all but the first desktop)
    > - Updated ntfs-3g (writing speed improvements)
    > - sudo helper for kdesu (End-of-Quote) (?)
    I really hate the installer.

    The workaround for that bug is to re-add the user calling kdesu, to
    /etc/sudoers, OR remove the kdesurc config file that enabled
    passwordless "sudo" instead of the dialog.

    With kind regards
    -Klaus Knopper
    IMO this information completely resolves this "Su returned with an error" thread.

  3. #23
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122
    Most excellent!! I just knew it was a config issue .... I will take a look at that config file tonight!..

    Also.. The post above about kdesu and lang issue was indeed fixed by following the method that Rocket posted above... It did fix the issue but the system complained that " en_us " was a invalid setting.. It probably worked since the default setting was invalid the system fell back to the currently selected language.

    For default to english set to ` LANG=C `...whohoo! I can finially qtparted in english without issuing "sudo qtparted " from a term

    Code:
    onemyndseye@exodus:~$ cat /etc/default/locale
    #  File generated by update-locale
    LANG=C
    This can also be changed with the ` update-locale ` command.
    Code:
     update-locale LANG=<your lang here>
    From what I can see this should probably be added to the current dev of the knoppix-autoconfig in the localization section (i.e. update-locale LANG=$LANG) to make sure your system defaults to your chosen language. update-locale performs some sanity checks on your variables to try to keep everything straight so there shouldnt be a problem there.

    I branched this into another Thread: http://www.knoppix.net/forum/viewtopic.php?p=111095


    **EDIT***
    After looking for awhile I didn't find a kdesurc on my system (either in ~/.kde/share/config/kdesurc or /etc/kde3/kdesurc or /usr/share/config/kdesurc)... was verified by a full filesystem search for *kdesurc* . This would explain why I did not see this behavior on my 5.1.0 installation. I would guess that you (and others having this problem) will find this file at the default location or in your home directory and it will contain " super-user-command=sudo " which when coupled with the NOPASSWD: ALL entry in /etc/sudoers would account for the passwordless operation when running from the cd and the subsequent failure after installing to the HD since user "knoppix" is no longer the once calling kdesu. It also explains the "band-aid" fix we found earlier in this thread...adding the user to /etc/sudoers. Either remove the file all together or change the line from:

    super-user-command=sudo

    -to-

    super-user-command=su

    **END-EDIT**

    Take Care,
    -Justin
    One Mynds Eye

  4. #24
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    England
    Posts
    177
    Thanks Rocket and Onemyndseye

    I can confirm that both locale and su work in my 5.1.1 system as you predict.

    (In 5.1.1) kdesurc is in :-

    /etc/skel/.kde/share/config/kdesurc
    (Leave unchanged if remastering a live CD to preserve the Knoppix 5.1.1. way)

    and, for user(s) in an HD-installed system,

    $HOME/.kde/share/config/kdesurc
    (Change as per Onemyndseye's posting for each user)

    Whew !

    PS Just seen your new thread dedicated to locale Onemyndseye : excellent move to break it out with its own title.

  5. #25
    Junior Member
    Join Date
    May 2008
    Posts
    3
    Yes, thanks all! By following Klaus' advice I am up and running.

  6. #26
    Junior Member registered user
    Join Date
    May 2009
    Location
    Colorado
    Posts
    14
    OK so there was a link which I conveniently forgot to recall...

    About changing two lines in a file somewhere in the vast depths of /home/.kde configuration files.

    To change the "sudo" command, which the Live CD recognizes, to "su" which the HD install of KDE recognizes.

    I'll find that one soon enough.

    I linked to this off a discussion of the error message "this feature only available with HAL" mounting media from KDE as non-root user in a post-install of 5.x

    there were a few other links further down the discussion which I have to go back and check and one of them is with the "su" versus "sudo" conflict.


    For starting in your own language,(and KEYBOARD!!) important to the next tip... edit in /boot/grub/menu.lst on the line

    kernel /boot/vmlinuz root=/dev/hda1
    add
    lang=(your) keyboard=(your)
    For me that would be lang=us keyboard=dvorak

    This gets me to where in the shell environment everything is in English which I speak read and write instead of am der Deutschlandisch which I don't.

    And I can type in "root" without mentally switching over to QWERTY and without making the error of typing "ossk"

    So far, so good, yes?

    At the login screen hit Ctrl+n and it gives you a console login.

    (I also like keyboard navigation, instead of using the mouse for everything. The mouse slows down my typing.)
    Login as root and type startx.

    Magicko Presto you have your KDE as root.

    In your own language.

    And Keyboard.

  7. #27
    Junior Member registered user
    Join Date
    May 2009
    Location
    Colorado
    Posts
    14
    knew I'd find it.

    For the patience-impaired here it is...

    in the file /home/YOUR_name/.kde/share/config/kdesurc

    [super-user-command]
    super-user-command=sudo
    change it to

    [super-user-command]
    super-user-command=su
    save and exit.

    I think it requires a KDE restart but that's no problem.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. "Cant find Knoppix file system" error when bootin
    By sinncier in forum Hardware & Booting
    Replies: 1
    Last Post: 02-14-2010, 07:08 PM
  2. Error -84 on SD Card "Hard Drive" on Acer Aspire O
    By mejohnsn in forum Hardware & Booting
    Replies: 0
    Last Post: 10-30-2009, 05:34 AM
  3. Can't get "persistent home" to work (solved)
    By carolus in forum General Support
    Replies: 0
    Last Post: 04-29-2008, 10:28 PM
  4. Error Message: "PCMCIA found, starting cardmgr." -
    By montalegrejorge in forum Laptops
    Replies: 2
    Last Post: 03-09-2008, 10:50 PM
  5. apt-get problem "returned an error code (1)"
    By migross in forum General Support
    Replies: 4
    Last Post: 10-23-2003, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture

Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home

$9.97



2-In-1 Air Duster & Vacuum 60000 RPM Rechargeable Auto Computer Keyboard USB picture

2-In-1 Air Duster & Vacuum 60000 RPM Rechargeable Auto Computer Keyboard USB

$26.95



Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster picture

Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster

$38.99



Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust picture

Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust

$30.95



Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture

Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home

$10.87



Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US picture

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US

$13.68



Milwaukee 49-90-2019 Wet Dry Shop Vacuum Tool & Attachment Storage Bag picture

Milwaukee 49-90-2019 Wet Dry Shop Vacuum Tool & Attachment Storage Bag

$39.99



35Kpa Cordless Vacuum Cleaner: 450W Stick Vacuum Cleaner with Brushless Motor... picture

35Kpa Cordless Vacuum Cleaner: 450W Stick Vacuum Cleaner with Brushless Motor...

$225.18



Ambiano Desktop Vacuum - Purple picture

Ambiano Desktop Vacuum - Purple

$4.99



VIVOHOME RR250 Portable Refrigerant Recovery Vacuum Evacuation -– New picture

VIVOHOME RR250 Portable Refrigerant Recovery Vacuum Evacuation -– New

$468.00