Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーが LDAP 資格情報に基づいて Web サイトにログインする状況があります。ここで、このユーザーのバックエンドでいくつかのコマンドを実行する必要があります。
ブラウザから「whoami」コマンドを実行するphpスクリプトの実行を確認しました。デフォルトでは、ログインしたユーザーとしてではなく、Apacheとして実行されるようです。
ログインしたユーザーとしてシェルコマンドを実行する方法はありますか?