3

In ubuntu I am logged in as a standard user (with restricted privileges) and I would like to launch a .jar as the admin user, what would be the best way of doing this from the command line?

Many Thanks

1 Answer 1

9

Use standard tools, i.e. sudo:

sudo java -jar yourjar.jar 

As different user:

sudo -u anyuser java -jar yourjar.jar 
Sign up to request clarification or add additional context in comments.

1 Comment

Ok thanks, but this will run the application as root? I would like to run the application as a specific user, is that possible?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.