Translated message

A translation of this page exists in English.

setuid/suid シェルスクリプトを setuid バイナリーと同じように動作させる方法

Solution In Progress - Updated -

Issue

  • root が所有する setuid スクリプトを常に root 権限で実行できるようにするには、どのような手順がありますか?

  • setuid ビットを持つシェルスクリプト (rwsr-xr-x の権限など) を実行する場合、スクリプトは、スクリプトを所有するユーザーではなく、スクリプトを実行するユーザーとして実行されます。これは、バイナリー (/usr/bin/passwd など) の setuid の処理方法とは異なります。バイナリーは、バイナリーを実行するユーザーに関係なく、バイナリーを所有するユーザーとして実行されます。

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content