Results 1 to 2 of 2

Thread: sudoers PB changing rights

  1. #1
    Join Date
    Mar 2009
    Beans
    1

    sudoers PB changing rights

    Hi,

    I made a mistake, by changing the right of /etc/sudoers ( iI put 777 )
    Now, I cannot shutdown hte PC by command line : sudo /sbin/shutdown -h now )

    If I try to come back with previous config on sudoers , I have :

    toto@toto-ubuntu:~$ sudo chmod 0440 /etc/sudoers
    sudo: /etc/sudoers is mode 0777, should be 0440


    Any idea what could be the problem ?

    thanks

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: sudoers PB changing rights

    Try:

    Code:
    sudo chown root:root /etc/sudoers
    sudo chmod 0220 /etc/sudoers
    And

    Code:
    sudo shutdown -h now
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

Bookmarks

Posting Permissions

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