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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem picture

Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem

$39.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP

$35.99



MTA36ASF2G72PZ-2G1B1 MICRON 16GB 2RX4 PC4-2133P Server MEMORY picture

MTA36ASF2G72PZ-2G1B1 MICRON 16GB 2RX4 PC4-2133P Server MEMORY

$15.00



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



Samsung M393A8G40AB2-CWE 64GB 2Rx4 PC4-25600 ECC Registered Server Memory RAM picture

Samsung M393A8G40AB2-CWE 64GB 2Rx4 PC4-25600 ECC Registered Server Memory RAM

$149.99