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 ...
- 03-13-2007 #1Just 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" ?
- 03-14-2007 #2
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.


Reply With Quote
