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
  •  


Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



10 Count 64GB Transcend JetFlash 700 USB3.1 (Gen 1) Flash Drive Black picture

10 Count 64GB Transcend JetFlash 700 USB3.1 (Gen 1) Flash Drive Black

$79.87



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$269.10



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$8.47



Lot 5/10pcs USB Flash Drive Memory Stick 1MB-64GB Pendrive Thumb Drive 8GB 32GB picture

Lot 5/10pcs USB Flash Drive Memory Stick 1MB-64GB Pendrive Thumb Drive 8GB 32GB

$282.00



Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick picture

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick

$218.79



128GB USB 14-in-1 MacOS bootable Installer repair recovery tech support service picture

128GB USB 14-in-1 MacOS bootable Installer repair recovery tech support service

$39.99



Digital Movie Poster (USB-flash drive) picture

Digital Movie Poster (USB-flash drive)

$100.00