ablog

不器用で落着きのない技術者のメモ

2010-06-01から1日間の記事一覧

sudo でコマンドを実行するときにスイッチしたユーザの環境変数をセットする方法

Mac OS X Snow Leopard でちょっと試してみた。 yoheia% man sudo ... -i [command] The -i (simulate initial login) option runs the shell specified in the passwd(5) entry of the target user as a login shell. This means that login-specific resou…