How do I give a program (italc-client) root privileges at startup?

Asked by Daniel Leibensperger on 2012-11-14

When using iTalc Master, I can only shut down client computers remotely if I have started italc client on their computer as root. ica (italc client) runs automatically when the student's computer starts up. However the program does not have root privileges when it first starts up with the computer.

Is there any way that I can make italc client start with root privileges automatically when the computer boots up?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu italc Edit question
Assignee:
No assignee Edit question
Last query:
2012-11-14
Last reply:
2012-11-14
Thomas Kr├╝ger (thkrueger) said : #1

A user space program should not run as root. There are only very scenarios where this could be a good idea.
I have no idea how the program works internally, but shutting down the computer should not be done with a simple program call that requires root permissions. A shutdown can be initialized via dbus or the program can have elevated rights with policy kit. There is also the option to use sudo, but it elevated users, not programs.

If you are able to run commands remotely via the tools, you should have a look at the command line program "gnome-session-quit". Run it with " --help" to see the options.

Why does the app need root privileges?

First, thank you guys so much for getting to me this fast.

The program does allow my to issue terminal commands to the client computers. There may be something else that will work, I just don't know how to do it:

When I remotely issue the command "poweroff," the client computer replies "must be root" and asks for the password. Typing in the password from the remote terminal does not work. Therefore...

Is it possible to send a super user command that contains the password in the same line. For example, if I could send a command like:

 su - poweroff (ENTER PASSWORD SOMEHOW IN THE SAME LINE)" Does anyone know how to do this?

I really would like to be able to shut down the computers in the school computer lab that are left on from my office to save power.

try:

sudo poweroff

Instead

Can you help with this problem?

Provide an answer of your own, or ask Daniel Leibensperger for more information if necessary.

To post a message you must log in.