Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
/me stands corrected beside J. But I'll still change all those permissions to 700...can't be too secure....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682

    /me stands corrected beside J.

    But I'll still change all those permissions to 700...can't be too secure.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  2. #12
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    From the responses so far, it seems the ability to shutdown the server without being root is distro specific. RH yes by default, others?

    Thoughts?
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  3. #13
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    I think it's that the permissions may be different as per distro, but it seems that no one can actually execute the command from another user.

    i.e.- You get the above mentioned message telling you to be root to use shutdown.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  4. $spacer_open
    $spacer_close
  5. #14
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Istanbul,Turkey
    Posts
    151
    Have a nice day

  6. #15
    Linux User
    Join Date
    Aug 2003
    Posts
    289
    so did it work? i think i tried that group thingy and it didn't work for me. or i must have set the permissions all wrong. need it have to be 4754, or is this just a safeguard for other users not in the group to not to be able to use shutdown? i think Dolda gave another solution to this when i asked a similar question.. .
    Registered User #345074

  7. #16
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    You canīt by just alter the file permissions on the shutdown command set that ordinary user can shutdown the system. That wont be good at all since a little misstake can comprimise the security of the system.

    Therefore shutdown and other command have verifications that its is root that are executing the command.

    Think twice before you enable this, an eventual intruder that gain access to the system can also shut it down. The easiest way to enable it is to do it with Sudo as someone above here said. The sudo command tricks the system to belive that its acutaly root that are executing it.

    Just a little note... the first thing i do when i install a system is to remove sudo and other dangeruos executebles.
    Regards

    Andutt

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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