Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sudo -s su root in one line

su root -c 'sh /home/jay/script-that-needs-executing-as-root.sh'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sudo #su #root #line
ADD COMMENT
Topic
Name
4+9 =