Nguyen Tien Huy
Monday, April 14, 2014
run command with another user on debian
su -c "command here" -s /bin/sh another_user_here
example:
#su -c "cat /etc/groups" -s /bin/sh www-data
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)