2020-12-17 シェルスクリプトの中で一時的に別ユーザで実行したい ShellScript/POSIX なんか毎度ググるからメモ. sudo su - user <<EOF pwd echo "hoge hoge" ls -al EOF