柴田(あ)です。 In message <20030916.134055.92584678.tsekine@xxxxxxxxxx> "[linux-users:100698] Re: [Summary] <Q> How to execute a scriptasanother user ?" "Tue, 16 Sep 2003 13:41:33 +0900" "SEKINE Tatsuo <tsekine@xxxxxxxxxx>" wrote: > 関根です。 指摘ありがとうございます。 > From: SHIBATA Akira <shibata@xxxxxxxxxxxxxx> > Date: Tue, 16 Sep 2003 13:32:28 +0900 > > > で、見てみると…ん〜なんか期待とは違う > > 動きをしてるみたいですね。 > > > > shibata@pop:~$ sudo -u murooka /bin/sh -c 'echo $HOME' > > /home/shibata > > -H が抜けてます。 > $ man sudo たしかに! -H の実験してるのに忘れてるなんて で、試してみると期待通りでした。 shibata@pop:~$ sudo -H -u murooka /bin/sh -c 'echo $HOME' /home/murooka ウソかいてごめんなさい。 恥ずかしいけど、コマンドラインから写しておいてよかった。 -- SHIBATA Akira ケーブルテレビはまちづくり shibata@xxxxxxxxxxxxxx phone : +81-429-74-3611
References:
- Prev by Subject: [linux-users:100701] <Q> How to execute a script as another user ?
- Next by Subject: [linux-users:100703] Re: <Q> How to execute a script as another user ?
- Previous by thread: [linux-users:100698] Re: [Summary] <Q> How to execute a script asanother user ?
- Next by thread: [linux-users:100699] Re: [Summary] <Q> How to execute a script asanother user ?
- Indexes:[Main][Thread]