Results 1 to 8 of 8

Thread: I cant use sudo

  1. #1
    Member registered user
    Join Date
    Oct 2006
    Location
    Delft-The netherlands
    Posts
    33

    I cant use sudo

    Hello and Thanx again I have installed the DVD on my HD and it works great dualbotting with win xp, I had to use sudo yesterday and when i try to use sudo in the command line it says RHCA is not in the sudoers list this incident will be reported. RHCA is my username and hostname any ideas?

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Location
    Berlin, Germany
    Posts
    6
    Hi RHCA,

    I answered your question recently. As root-user you may edit your sudoers-file. That is, please type in at your command-line-prompt:

    su -

    Then, for the needed change, please look at this thread:

    "Super User at Knoppix 5.1.1 HD-installed"

    -nohype

  3. #3
    Member registered user
    Join Date
    Oct 2006
    Location
    Delft-The netherlands
    Posts
    33

    How do i do this?

    I dont understand so much what you said I am a little new to linux and i would like you to explain it more

  4. #4
    Junior Member
    Join Date
    Jan 2007
    Location
    Berlin, Germany
    Posts
    6
    Hi RHCA,

    you may want to edit your "sudoers" file. How to do that:

    login as "root" in a console window by typing

    $ su -

    at the prompt.

    Then you can edit (with any text-editor) the text-file "/etc/sudoers" by changing 1 line (by commenting out the line beginning with "knoppix" by a leading "#" - without using the quotation marks) and adding a new line for user "RHCA" - that's YOU - expressing the rights of "RHCA" for executing privileged commands by "sudo".
    _______________________
    # /etc/sudoers
    ...
    ...
    # knoppix ALL=NOPASSWD: ALL
    RHCA ALL=NOPASSWD: ALL
    _______________________

    Hth.

    -nohype

  5. #5
    Member registered user
    Join Date
    Oct 2006
    Location
    Delft-The netherlands
    Posts
    33

    It shows me an error

    Hello I have already edited the sudoers file bit now when i try to use sudo it says that it is on 660 and it should be on 440 or something like this. Have got any ideas?

  6. #6
    Junior Member
    Join Date
    Jan 2007
    Location
    Berlin, Germany
    Posts
    6

    Re: It shows me an error

    Quote Originally Posted by RHCA
    ...
    sudoers file ... should be on 440 or something like this.
    ...
    This is correct!
    Explanation: sudo is the "owner" of "/etc/sudoers" and allows to the owner (=itself) and to group members only read-access-rights to "/etc/sudoers" when executing sudo and forbids all other access-rights.

    FYI: file-access-rights are coded like this:

    0400 Allow read by owner.
    0200 Allow write by owner.
    0020 Allow write by group members.
    0040 Allow read by group members.

    Adding these codes means that access-rights are granted for the individual rights expressed by the unique summands.

    So 0660=660 is the unique sum of 0200,0400,0020,0040 with the obvious rights.
    But only 0440=440 being the (unique!) sum of 0400 and 0040 are allowed.

    So, change these access-rights accordingly with the chmod-command in root-user mode:

    $ su -

    and then

    # chmod 440 /etc/sudoers.

    That's it!

    Hth
    -nohype

  7. #7
    Member registered user
    Join Date
    Oct 2006
    Location
    Delft-The netherlands
    Posts
    33

    Thanx

    Hey Thanx It works great

  8. #8
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122
    excellent quick explaination of file permissions nohype!!

    Take care,
    -Justin
    One Mynds Eye

Similar Threads

  1. sudo apt-get install xxx
    By logicmaster2003 in forum Customising & Remastering
    Replies: 2
    Last Post: 01-07-2006, 10:09 PM
  2. problem with sudo
    By waellinux in forum General Support
    Replies: 2
    Last Post: 04-30-2005, 05:36 PM
  3. Sudo under HD install
    By clarjon1 in forum Tips and Tricks
    Replies: 2
    Last Post: 03-11-2005, 10:05 PM
  4. Sudo list.
    By rrfish72 in forum General Support
    Replies: 19
    Last Post: 08-08-2004, 04:14 AM
  5. what's the difference with sudo ???
    By ptesone in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 03-18-2004, 07:01 PM

Posting Permissions

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


Windows XP, Vista, 8.1, Linux Knoppix, Office XP,  (6 CDS) picture

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)

$10.00



KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.57



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$20.85



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$21.42



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$34.01