Find the answer to your Linux question:
Results 1 to 7 of 7
Before we go ahead. I'd like to say that I know pretty much nothing about Linux. I'm not even sure we're using Red Hat. We're working on a server and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2012
    Posts
    3

    Permissions issue...(I think?)


    Before we go ahead. I'd like to say that I know pretty much nothing about Linux. I'm not even sure we're using Red Hat.

    We're working on a server and we need to install Node.js, which can be done by the command "sudo apt-get install nodejs npm". The problem is when I do that I get the "Sorry, sudo must be setuid root." error.

    I used Google and found I'm supposed to use various commands involving chmod, but I get "operation not permitted".

    The person who runs the server says I'm supposed to have full permissions so I have no clue what to do...

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,498
    It sounds like the owner or permissions on the sudo command are goofed. Can you post the output of
    Code:
    ls -l /usr/bin/ | grep sudo
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  3. #3
    Just Joined!
    Join Date
    May 2012
    Posts
    3
    Quote Originally Posted by elija View Post
    It sounds like the owner or permissions on the sudo command are goofed. Can you post the output of
    Code:
    ls -l /usr/bin/ | grep sudo
    Result:

    ---x---x 1 root root 159752 Mar 3 2009 sudo*
    ---x---x 1 root root 159752 Mar 3 2009 sudoedit*

  4. #4
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,498
    sudo needs the setuid bit set as does sudoedit. You can run the following as root

    Code:
    chmod +s /usr/bin/sudo
    chmod +s /usr/bin/sudoedit
    but I'd be worried about how they got turned off in the first place.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  5. #5
    Just Joined!
    Join Date
    May 2012
    Posts
    3
    Response comes out as "changing permissions of '/usr/bin/sudo': Operation not permitted"

    I don't know what's going on with this thing because I didn't set up this server orz;;

  6. #6
    Just Joined!
    Join Date
    May 2012
    Posts
    4
    Try doing the following

    Code:
    sudo su
    chmod +s /usr/bin/sudo
    chmod +s /usr/bin/sudoedit
    exit

  7. #7
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,498
    That's a good thought. If
    Code:
    sudo su
    doesn't work then
    Code:
    sudo -i
    might. Failing that I would talk to the admin who set it up.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

Posting Permissions

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