Page 1 of 3 123 LastLast
Results 1 to 10 of 27

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

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    8

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

    Hi all,

    I'm running Knoppix 5.1 and i cant use my root password in KDE dialogs for anything ..whenver i try to login in administrator mode in KDE , i get an "Su returned with an error" message .


    I read in a few forums that its because users should be added to the sudoers list ..
    Im posting the contents of my sudoers file in /etc/sudoers , below:


    # sudoers file.
    #
    # This file MUST be edited with the "visudo" command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # KNOPPIX WARNING: This allows the unprivileged knoppix user to start commands as root
    # KNOPPIX WARNING: This is totally insecure and (almost) makes knoppix a second root account.
    # KNOPPIX WARNING: Never allow external access to the knoppix user!!!
    Myusername ALL=(ALL) ALL


    Can anyone tell me whats wrong? I tried a lot but it doesnt seem to work for me..even though the configuration seems correct

    Can anyone help?
    Thanks in advance

  2. #2
    Banned
    Join Date
    Feb 2005
    Location
    Sydney Australia
    Posts
    264
    if this is an install,
    you can login as root ?
    but not get some su things to work

    get kpackage to do all the updates it can
    some of the packages are out of synch i think with older/newer versions

    after a dist-update
    and update
    and install
    i got my root access back

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    8
    I can login as root in the bash shell using the command su . I will try upgrading the distro and see if i can get into the sudoers list.

    can you login as root in the KDE menus in administrator mode? or only in bash shell? Please let me know.

  4. #4
    Banned
    Join Date
    Feb 2005
    Location
    Sydney Australia
    Posts
    264
    root can't login to the kde desktop environ

    but you will see that if you can login on the ctrl-alt-F1/2/3/4 screens then you can still su away
    just not in gui mode

    but once the system is all synched up with the apt-get update's
    fingers x'd
    should be back to normal

  5. #5
    Junior Member
    Join Date
    Jan 2007
    Posts
    8
    I did apt-get dist-upgrade and then apt-get update

    Still , I have the same error , "Su returned with an error " in KDE 3.5 HD install

    I'm running kernel 2.6.18 as I had to use the driver for my Nvidia Gefoce2 MX 200 card

    Can anyone tell me how i can get rid of this error and use administrator mode in KDE ?

    I can work in super user mode SU in the bash shell but not in the graphical menus of KDE.
    Did anyone has the same problem?

    if i type sudo in the bash shell , i get the following:

    bladerunner@andromeda:~$ sudo
    sudo: /etc/sudoers is owned by uid 1000, should be 0

    Please let me know if you can suggest anything.
    Thanks in advance

  6. #6
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122
    Ah!!!... Theres the rub (so to speak) lol

    This file should be owned by root (UID=0)
    So.... as root do this:

    Code:
    chown root:root /etc/sudoers
    Also the file permissions may need to be reset with something like:
    (as root)
    Code:
    chmod 0650 /etc/sudoers
    Im curious to know how this file came to be owned by UID=1000 (which is you BTW).. did this file get deleted somehow causing you to have to re-create it? Any guess?

    Hope this helps,
    -Justin
    One Mynds Eye

  7. #7
    Junior Member
    Join Date
    Jan 2007
    Posts
    6

    Re: " Su returned with an error " in KDE

    Quote Originally Posted by JediatNight
    Hi all,

    I'm running Knoppix 5.1 and i cant use my root password in KDE dialogs for anything ..whenver i try to login in administrator mode in KDE , i get an "Su returned with an error" message .

    Can anyone help?
    Thanks in advance
    A work around I have been using, used the run to start kdesu konqueror. Instead of hitting ok, I go into options & select run as a different user "Root" with passwd. This gives me a GUI method of working the admin side of things, with this error still in place for normal methods.

  8. #8
    Junior Member
    Join Date
    Jan 2007
    Posts
    8
    Thanks, I will try this and let this forum know.. Any Debian admins here can comment why I get the error which is described above? Isn't it possible to fix it in the "normal way" ?

    Awaiting your respose(s),

    Thanks in advance

  9. #9
    Junior Member
    Join Date
    Jan 2007
    Posts
    8
    Thanks One Mynds Eye , it worked

    but i had execute chmod 0440 /etc/sudoers as root instead of chmod 0650 /etc/sudoers

    I too dont know how it got owned by UID 1000 . I think i recreated the file with a text editor,kwrite after deleting it.

    cheers

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Instead of
    Myusername ALL=(ALL) ALL
    I used
    %sudo ALL=(ALL) ALL

    Then everyone belonging to the sudo group, and no one else, can run sudo. It works fine here. To edit, it's safest to run the visudo command. vi tutorial for example here: http://www.eng.hawaii.edu/Tutor/vi.html

Page 1 of 3 123 LastLast

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
  •  


Dell R730 w/ 2x E5-2650v3 10c, 192GB (12x16GB) RAM, H730 Mini, 2x 750W PSU picture

Dell R730 w/ 2x E5-2650v3 10c, 192GB (12x16GB) RAM, H730 Mini, 2x 750W PSU

$349.99



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox

$340.00



Dell EMC NX3230 Server picture

Dell EMC NX3230 Server

$599.99



Dell PowerEdge R620 Rack Server picture

Dell PowerEdge R620 Rack Server

$71.99



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



HP ProLiant DL360 Gen9 Server 2x E5-2699v3 2.3GHz =36 Cores 32GB P440AR 4xRJ45 picture

HP ProLiant DL360 Gen9 Server 2x E5-2699v3 2.3GHz =36 Cores 32GB P440AR 4xRJ45

$309.00



1U Server (6-8 VM's) Vsphere VPS Short Depth 20

1U Server (6-8 VM's) Vsphere VPS Short Depth 20" XEON 3.5Ghz 32GB RAM X10SLM-F

$199.00