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
  •  


SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46 picture

SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46

$12.99



SanDisk 128GB Extreme PRO USB 3.2 Solid State Flash Drive - SDCZ880-128G-A46 picture

SanDisk 128GB Extreme PRO USB 3.2 Solid State Flash Drive - SDCZ880-128G-A46

$36.99



SanDisk 32GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46 picture

SanDisk 32GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46

$10.99



USB Flash Drive Memory Thumb Photo Sticks For iPhone iPad 128/256/512GB 1TB 2TB picture

USB Flash Drive Memory Thumb Photo Sticks For iPhone iPad 128/256/512GB 1TB 2TB

$15.33



Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack

$4.99



New TESLA OEM Model S,3,X,Y USB Flash Drive for Dashcam & Sentry Mode 128GB picture

New TESLA OEM Model S,3,X,Y USB Flash Drive for Dashcam & Sentry Mode 128GB

$18.99



Lenovo USB 16TB 3.0 USB Flash Drive Thumb Disk Silver Transfer Metal Memory picture

Lenovo USB 16TB 3.0 USB Flash Drive Thumb Disk Silver Transfer Metal Memory

$24.99



Mechanical Style Flash Drive USB 3.0 High Speed 16TB Large Capacity Waterproof  picture

Mechanical Style Flash Drive USB 3.0 High Speed 16TB Large Capacity Waterproof

$8.37



USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT picture

USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT

$249.37



SanDisk Cruzer Glide USB 3.0 16GB 32GB 64GB 128GB 256GB Flash Drive Memory Lot picture

SanDisk Cruzer Glide USB 3.0 16GB 32GB 64GB 128GB 256GB Flash Drive Memory Lot

$276.48