Find the answer to your Linux question:
Results 1 to 2 of 2
I created a cron script that runs "shutdown -r now" but it wont work, then i thougt that it may not run it from root. so how can i give ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42

    Configure acsess flags, how?

    I created a cron script that runs "shutdown -r now" but it wont work, then i thougt that it may not run it from root. so how can i give all users acsess to the shutdown command or "init 6" ?

  2. #2
    Linux Enthusiast flipjargendy's Avatar
    Join Date
    Aug 2004
    Location
    Xanadu, Titan, Saturn
    Posts
    610
    i am not familiar with 'Cron' but could you make the script run 'sudo'? If you were to do this, whichever user was running the command could be prompted for their password.

    It's possible that you could set access for this in /sbin/ somewhere. (sbin/poweroff or sbin/halt... something like that.)

    i cannot help you much in this though, i'm only trying to give you some direction. i only have a little knowledge in this sort of thing.
    Running Linux Since 2001®
    Registered Linux User #430868 - Since 9•12•06

Posting Permissions

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