Can you su to different user to run a worklet instead of root user in linux?
Can you su to different user to run a worklet instead of root user in linux?
Hello,
Yes, that is possible to do. For example, if you run this as your Remediation Code...
#!/bin/bash
su -c whoami <username>
...the Worklet’s output will be “<username>
”.
Hope this helps.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.