• Post Reply Bookmark Topic Watch Topic
  • New Topic

super user session  RSS feed

 
Ben Buchli
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!