0

私のシステムでは PEAR を実行する必要がありますsudo。これは 2 つの理由で厄介です。1 つ目は、使用するたびpearsudo. 「ヘルプ」の使い方を知りたいという単純なことでも構いません。2 番目の理由は、すべてを as としてインストールし、毎回 sudo を実行しなくても(のような)root経由でインストールされた単純なプログラムを使用できないことです (もちろん、生成されたドキュメントは root によって所有されます)。pearphpdoc

PEAR を使用できるように構成するにはどうすればよいですか? PEAR を root として実行することを強制しないとセキュリティ上の問題が発生する可能性があることは理解しています (つまり、root にならないとインストールできないはず/usr/lib/php/pearです) sudo

4

1 に答える 1

0

The problem was that my umask was set incorrectly to 007. This means that whenever I tried to use a package that pear had installed, I couldn't unless I was root. A better umask would be 006. This would allow everything installed to by root to be readable or executable (depending on the context).

You can set your umask in your .bashrc file in your home directory. Just add this line (or change the line that is incorrect):

umask 006

Hope this helps someone searching for an answer to this.

于 2012-10-30T09:03:35.573 に答える