M
MMilkin
I have a fairly complicated process that I'm trying to develop in java
(and it has to be in java so switching to C where switching thread user
identity is easy and pain free is not an option)
The server runs on unix under a user with special permissions however
that user is not and cannot be root. So my program needs to be able to
reboot the system if given a specific argument.
right now running rt.exec("reboot") will give me a permissions error
If I know the root password how can I procedurally reboot the system
with exec ?
(and it has to be in java so switching to C where switching thread user
identity is easy and pain free is not an option)
The server runs on unix under a user with special permissions however
that user is not and cannot be root. So my program needs to be able to
reboot the system if given a specific argument.
right now running rt.exec("reboot") will give me a permissions error
If I know the root password how can I procedurally reboot the system
with exec ?