주 메뉴 열기

wwiki β

폴킷 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 되돌릴 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 저장해주세요.
최신판 당신의 편집
3번째 줄: 3번째 줄:
 
==관련에러==
 
==관련에러==
 
* "authentication is required to create a color profile"
 
* "authentication is required to create a color profile"
*시스템 저장소를 새로 고치려면 인증해야 합니다.
 
  
RDP를 사용하려는 경우에 캡처액션을 수행하기 위해서 인증이 필요하기 때문에 이와 같은 메시지가 나온다.
+
취소하거나 다음파일을 추가한다. /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
 
 
컬러 프로파일 관련 메시지가 나올 경우에는 취소하거나 다음 파일을 추가한다.  
 
 
 
=== 모든 권한 허용 ===
 
/usr/share/polkit-1/actions/org.freedesktop.color.policy
 
 
 
위의 xml파일을 관리자 권한으로 열어서 기본권한인 '''<defaults>'''부분의 '''<allow_any>auth_admin</allow_any>'''을 관리자 인증에서 모두 허용인 '''<allow_any>yes</allow_any>'''으로 변경한다.
 
 
 
설정을 수정한 후에는 서비스를 재실행시켜 적용되도록 해야한다.
 
$ sudo systemctl restart polkit.service
 
color-manager의 여러 액션에 대해서 허용을 하였으므로 보안상 취약하게 된다.
 
 
 
=== 특정그룹만 권한 허용 ===
 
다음 파일을 추가하여 "{users}"그룹만 권한을 허용할 수 있다.
 
 
 
/etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
 
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
polkit.addRule(function(action, subject) {
+
polkit.addRule(function(action, subject) { if ((action.id ==
if ((action.id == "org.freedesktop.color-manager.create-device" ||
+
“org.freedesktop.color-manager.create-device” || action.id ==
action.id == "org.freedesktop.color-manager.create-profile" ||
+
“org.freedesktop.color-manager.create-profile” || action.id ==
action.id == "org.freedesktop.color-manager.delete-device" ||
+
“org.freedesktop.color-manager.delete-device” || action.id ==
action.id == "org.freedesktop.color-manager.delete-profile" ||
+
“org.freedesktop.color-manager.delete-profile” || action.id ==
action.id == "org.freedesktop.color-manager.modify-device" ||
+
“org.freedesktop.color-manager.modify-device” || action.id ==
action.id == "org.freedesktop.color-manager.modify-profile") &&
+
“org.freedesktop.color-manager.modify-profile”) &&
subject.isInGroup("{users}")) {
+
subject.isInGroup({group})) { return polkit.Result.YES; } });
return polkit.Result.YES;
+
</syntaxhighlight>
}
 
});
 
</syntaxhighlight>출처: http://c-nergy.be/blog/?p=12073
 
<br />
 
 
 
== 외부링크 ==
 
https://www.freedesktop.org/software/polkit/docs/latest/
 
 
[[분류:리눅스]]
 
[[분류:리눅스]]

wwiki에서의 모든 기여는 다른 기여자가 편집, 수정, 삭제할 수 있다는 점을 유의해 주세요. 만약 여기에 동의하지 않는다면, 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다 (자세한 사항은 Wwiki:저작권 문서를 보세요). 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)