aubuti wrote:
> Ramage;150987 Wrote:
>> You could try the Execute Plugin - here
>> http://www.deane-freeman.com/slimserver/.
>>
>> I use it to shut power down my Linux server from the SB3 remote.
> This would work great for me. I run slimserver as user 'slimserver' on
> a debianized LinkStation, but need root privileges to run `shutdown'.
> Can the script + execute plugin be tweaked to allow this? It's probably
> dead-simple, but I don't see it ('tho I confess I haven't read up on the
> details of the Execute Plugin). Thanks!
While this is probably not the more savvy sysadmin move you could make,
if your system is isolated from the outside world, you could set the
"halt" binary (or shutdown) to be set-uid root. Meaning that whenever
you run it, it sets your user to root so it can execute the command. You
can accomplish it with "chmod u+s /path/to/the/program"
DISCLAIMER!!!
This is like one of the more wreckless things you could do on your
system. You shouldn't just willy nilly go and set binaries to suid root.
It's dangerous and could get you hacked. Do this ONLY if you know what
you're doing and you know your system won't ever be connected to the net.
-peace
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins