9.5. 재파티션 비활성화

디스크 관리를 제어하는 기본 시스템 설정을 재정의할 수 있습니다.

중요

/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy 파일을 직접 수정하지 마십시오. 다음 패키지를 업데이트하는 동안 변경 사항이 교체됩니다.

사전 요구 사항

  • 관리 액세스.

절차

  1. /etc /share/polkit-1/actions/org.freedesktop.udisks2.policy 파일을 /etc/share/polkit-1/actions/ 디렉터리에 복사합니다.

    # cp /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy /etc/share/polkit-1/actions/org.freedesktop.udisks2.policy
  2. /etc/polkit-1/actions/org.freedesktop.udisks2.policy 파일에서 필요하지 않은 작업을 삭제하고 다음 행을 추가합니다.

    <action id="org.freedesktop.udisks2.modify-device">
      <message>Authentication is required to modify the disks settings</message>
         <defaults>
            <allow_any>no</allow_any>
            <allow_inactive>no</allow_inactive>
            <allow_active>yes</allow_active>
          </defaults>
     </action>

    root 사용자만 액세스를 제한하려면 <allow_any> no</allow_any>를 <allow_any > auth_admin</allow_any >로 바꿉니다.