I am trying to figure out some code that I was given. Can someone tell me what this means?
process = Runtime.getRuntime().exec("su");
os = new DataOutputStream(process.getOutputStream());
Especially the su.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Used without any other kind of parameter, su changes the user ID to 0 (superuser) but does not change current path or environment.