aspose file tools
The moose likes Linux / UNIX and the fly likes super user session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "super user session" Watch "super user session" New topic
Author

super user session

Ben Buchli
Ranch Hand

Joined: Mar 26, 2004
Posts: 83
hi there,
is there a way to start a su session thru a java app??

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.

any suggestions?

thanks,
ben
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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.

man sudoers


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: super user session
 
Similar Threads
system users login and login shell
apt-get problem
process execution in linux
difference between terminal and shell-Konsole windows?
running unix 'su 'cmd from java