A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
super user session
Joined: Mar 26, 2004
Jul 20, 2004 14:24:00
is there a way to start a su session thru a
when i use Runtime.getRuntime().exec( "konsole --type su" );
a konsole pops up and asks for the password. But I want it to happen in the background.
Joined: Jun 02, 2003
Jul 21, 2004 20:19:00
What do you mean 'in background'?
With the su-password in the source-code???
Perhaps it's better to create su-permissions for a special program, which is called from your java-app.
I agree. Here's the link:
subject: super user session
system users login and login shell
process execution in linux
difference between terminal and shell-Konsole windows?
running unix 'su 'cmd from java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013