[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: allow/deny user power of the os

On Fri 04 Feb 2011 at 15:13:18 +0100, Pol Hallen wrote:

> How is the best way to deny and allow by time and date of user/s 
> poweroff/reboot system?
> This client runs from 08am to 8pm. I have to deny all users reboot or poweroff 
> within time, but user/s can reboot or poweroff this system from 8.01pm to 
> 7.59am.

Have cron add and remove users in /etc/shutdown.allow at the desired
times. Possibly comment out the CTRL-ALT-DEL line in /etc/inittab.

Reply to: