Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux execute as user

sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"' 
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #linux #execute #user
ADD COMMENT
Topic
Name
2+3 =