wsl ubuntu desktop에서 create a color managed device authentication 해결

WSL에 ubuntu-desktop을 설치시, desktop color 의 관리와 변경이 불가능 합니다.

admin 권한의 user계정으로, 비밀번호 입력한 후에도 계속 authentication 을 요구합니다.

이것은, ubuntu linux 의 실행정책(policy) 이 설정되지 않아서 발생한 문제입니다.

color는, desktop theme에 속한 부분이며, user 권한으로 바꾸는 것은 당연한 부분입니다.

아래의 설명대로 만들어 주면 해결 됩니다.


아래는, desktop login 전에 나오는 create a color managed device authentication 입니다.

ubuntu desktop의 login 전 color managed device authentication required

아래는, login 후 나올 때의 authentication 창입니다.

ubuntu desktop의 login 후 color managed device authentication required


위의 authentication 에서, 비밀 번호를 넣어도, color manage 가 적용되지도 않으며,

다음번 시작 시 또 나옵니다. policy 를 만들어 주는 것 외에는 방법이 없습니다.


desktop color manage policy file을 만들어 주기 위해,

terminal용 nano editor나, gedit (gui text editor) 로

policy directory path및 file이름을 지정하여, 열어 줍니다.

sudo nano /etc/polkit-1/localauthority/50-local.d/color.pkla
sudo gedit /etc/polkit-1/localauthority/50-local.d/color.pkla

policy 수정 또는 추가하려면, admin 권한이 필요하므로 sudo 로 시작합니다.

ubuntu terminal 에서 sudo 를 써주고, 위쪽 line 처럼, nano editor 로 열거나,

아래쪽 line 처럼 gedit 로 열어 줍니다.


아래와 같이 입력하고 저장합니다.

[Allow colord for all users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

맨 위의 [Allow colord for all users] 부분은, description 이며, policy 선언의 시작입니다.


Identity=unix-user:*policy 적용 대상을 의미하며, * 은 모든 user를 의미합니다.


Action=org.freedesktop.color-manager.* 은, 적용할 policy (또는 권한) 을 의미합니다.

* 는 하위 policy(권한)을 모두 지정합니다. ( wildcard )

참고로, color-manage의 종류는 다음과 같습니다.

  • org.freedesktop.color-manager.create-device
  • org.freedesktop.color-manager.delete-device
  • org.freedesktop.color-manager.modify-device
  • org.freedesktop.color-manager.create-profile
  • org.freedesktop.color-manager.delete-profile
  • org.freedesktop.color-manager.modify-profile


ResultAny, ResultInactive, ResultActive 를 yes로 하는 것은,

모든 상황에서 허가를 의미합니다.


이제, 모든 상황, 모든 user에 대하여, color-manager 권한을 허가하였기 때문에,

wsl ubuntu를 다시 시작하면, color-manage authentication 창은 안 나옵니다.



그리고, VcXsrv(Xdmcp) 에서 desktop의 power-off 시 나오는 authentication은 정상입니다.

WSL ubuntu desktop, power-off authentication

VcXsrv(Xdmcp)는 remote protocol 입니다.

network 사용자가 host인 linux server를 끄려면, admin권한을 가지고 있더라도

인증을 하는 것이 합당합니다. 즉, 위의 authentication은, 정상입니다.


그리고, WSL 의 특성상, guest os( Ubuntu 등 ) 에서 shutdown하는 것은 추천하지 않습니다.

또한, adpi 도 제대로 지원되지 않습니다.

desktop logout 을 먼저 하고, 그 후, VcXsrv 종료하고,

Ubuntu terminal 닫고, wsl --shutdown 하는 것을 추천 드립니다.


댓글 쓰기

0 댓글