On 30 Apr 2006 11:21:12 -0700,
(E-Mail Removed)
<(E-Mail Removed)> wrote:
> I used Novel Netware a little while ago, and I saw that it had a
> feature where you could shut down computers at the admin's will. I've
> been looking for a way to implement this in linux. My network is a
> bunch of thin clients with a readonly root mounted over NFS, and they
> all use LDAP authentication to log in the users. The way I have this
> implemented now, is to check the LDAP server. It looks in a specific
> directory for a 'command' class, and if the host matches, it executes
> that command. I have the script running in a crontab every minute, but
> this seems to be a bit messy to me. Is there some other way to do it?
ssh user@hostname sudo shutdown [ -r ] now
--
"If you understand what you're doing, you're not learning anything."
-- A. L.