柴田(あ)です。 やっぱり解決してませんでした。 チェック甘かったです。 状況書き足し $ sudo cat /etc/sudoers (抜粋) Cmnd_Alias REGISTRATION = /usr/local/bin/curmailstat , /usr/local/bin/reguser , /usr/local/bin/mkextmailad shibata ALL=VI,SHUTDOWN,MAINTENANCE,REGISTRATION という状態にしてみたんですが、 shibata@pop:~$ sudo -u murooka /usr/local/bin/mkextmailad test4 Sorry, user shibata is not allowed to execute '/usr/local/bin/mkextmailad test4' as murooka on pop.hanno.jp. これはパラメータまで含んでの sudo の制限ということと 理解できますが、こういうモノなんでしょうか? いま、再び man を読み返してるんですが、 ソレらしいことを発見できません。 いままで ALL=(ALL) ALL 設定だったので気づかなかったのですが、 権限を制限したら発覚しました。 ちょっと振り出しに戻ってヤな感じなんですが、 もうちっと研究してみます。 In message <20030915041130.3FAFC5FDED@xxxxxxxxxxxxxxxxx> "[linux-users:100688] [Summary] <Q> How to execute a script as another user ?" "Mon, 15 Sep 2003 13:12:04 +0900" "SHIBATA Akira <shibata@xxxxxxxxxxxxxx>" wrote: > 柴田(あ)です。 > > 解決しました、ありがとうございました。 > 特に投稿してくださった井上さま、小山さまには > 大変感謝しております。 −省略− -- SHIBATA Akira ケーブルテレビはまちづくり shibata@xxxxxxxxxxxxxx phone : +81-429-74-3611
Follow-Ups:
- [linux-users:100703] Re: <Q> How to execute a script as another user ?SEKINE Tatsuo
- [linux-users:100705] [Summary2] <Q> How to execute a script as another user ?SHIBATA Akira
- Prev by Subject: [linux-users:100700] Re: [Summary] <Q> How to execute a script asanother user ?
- Next by Subject: [linux-users:100702] Re: [Summary] <Q> How to execute a scriptasanother user ?
- Previous by thread: [linux-users:100700] Re: [Summary] <Q> How to execute a script asanother user ?
- Next by thread: [linux-users:100703] Re: <Q> How to execute a script as another user ?
- Indexes:[Main][Thread]