Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Computing Systems

Computing Systems

Informatics Computing Staff jottings

Remotely reboot your DICE desktop

For DICE office desktop machines any user may power-off or reboot when they are on the console (i.e. logged into the machine which is sat in front of them). Beyond this (e.g. when logged in via ssh) we have traditionally required root access for a reboot or power-off operation. This is particularly inconvenient for a user who may need to reboot their own desktop machine remotely outside of normal support hours. This often occurs when a software update requires a reboot and the user wants to do it at a time of their choosing rather than wait for the automatic reboot to be forced by the system.

We have now added user authorization for the poweroff and reboot commands. Due to the way in which the authorization system works, the commands to be used are in the /usr/bin directory NOT in /sbin. Normally just the command name is sufficient but if you have an unusual PATH variable ordering you may have to issue the full paths to the commands.

Note that only the user to which a machine has been allocated may issue these commands. If you are unsure whether you have been allocated a particular machine you can query the information known to LCFG like this:

[finlaggan]: qxprof sysinfo.allocated
allocated=example

Where example should be your DICE username.

If you think the machine allocation is incorrect you should contact User Support via the normal request form.

Currently (as of August 2011) it is not possible to extend the authorization to other users beyond the allocated user but we hope to make the system more flexible in the future.

For those interested this authorization is done using the Redhat consolehelper system and PAM configurations which use the pam_access module.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel