Using JAAS's UnixLoginModule to login as root
I am running an app on a Linux box where I am already logged in. In Java I want to spawn a process that needs to run as root. I have tried to use JAAS's UnixLoginModule to login as root :
Code:
Subject subject = new Subject(); Regards, -------------------- Matthew Surrey, England My env: j2sdk1.4.2_06 running on Linux 2.6.11-1.27_FC3 running on Intel Pentium 4E Prescott 3.0GHz FSB800 1MB Cache on a ASUS P4S800 SiS648FX Socket 478 800FSB 3DDR 400 ATA133 motherboard |
All times are GMT -5. The time now is 02:51 AM. |