
Xubuntu 11.10을 사용하는 순간 내 질문은 다음과 같습니다. USB 하드웨어가 연결되어 있을 때 비밀번호를 어떻게 요청할 수 있습니까?
예:
USB 대용량 저장소를 연결합니다. 이제 xubuntu가 창을 열고 USB 대용량 저장소의 파일과 폴더를 표시합니다. USB 대용량 저장 장치(또는 다른 USB 하드웨어)를 연결할 때 "root/sudo" 비밀번호를 묻고 파일과 폴더를 표시하거나 다른 작업을 수행한 후에는 이를 원합니다.
답변1
우분투 11.10의 경우
다음 명령을 사용하여 .pkla 파일을 만듭니다.
gksu gedit /var/lib/polkit-1/localauthority/50-local.d/mount-usb.pkla
다음 텍스트를 파일 내용에 붙여넣고 파일을 저장합니다.
[Mounting, checking, etc. of external drives] Identity=unix-group:admin Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.filesystem-check;org.freedesktop.udisks.filesystem-unmount-others;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.change;org.freedesktop.udisks.luks-unlock ResultActive=auth_admin_keep
로그아웃하고 다시 로그인하세요.
출처 (우분투 포럼)두 개의 USB 드라이브(하나는 플래시 드라이브, 다른 하나는 외장 HDD)로 테스트했는데 모든 것이 완벽하게 작동하는 것 같습니다!