Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Shutdown when running vdr as non-root user...
On Mon, 2004-08-02 at 15:57, Andreas Breitenbach wrote:
> Hi,
>
> Laurence Abbott wrote:
> >
> > Has anyone come up with a good way of using a shutdown script when
> > running vdr as a non-root user?
>
> Try sudo with NOPASSWD option
>
> /etc/sudoers
>
> vdr localhost = NOPASSWD : /sbin/shutdown
>
> in shutdown.sh
>
> use:
>
> sudo /sbin/shutdown -h now
>
>
> or
>
> - create a new group for shutdown users (sdusers)
> - add vdr user to shutdown users
> - change owner of script: chown root.sdusers shutdown.sh
> - set sticky bit to shutdown script: chmod 4750 shutdown.sh
Ahhhh....I've used sudo for years but didn't know about the NOPASSWD
option!
Sorted.
Cheers,
Laz
Home |
Main Index |
Thread Index