debian/sidで一般ユーザーとしてUSBドライブをマウントする

debian/sidで一般ユーザーとしてUSBドライブをマウントする

私はdebian sidを使用していますが、アップグレードの1つでUSBドライブ(sdcard)を正しくマウントできません。

ドルフィンには、「タスクを実行する権限がありません」というメッセージが表示されます。 イルカエラー

だから少し読んだ後はバックグラウンドで行われているようです。

udisksctl mount -b /dev/sdj1

これは"==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ==="で終わり、rootパスワードを要求します。

読んだ後、これがポリシーキットである可能性があることがわかったので、/etc/polkit-1/localauthority/50-local.d/emil-can-mount-usb.pklaを追加しました。

[mounting without password]
Identity=unix-user:emil
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=no
ResultInactive=no
ResultActive=yes

追加した後は何も変わりませんでした。ドルフィンをマウントできません。 CLIはパスワードを要求します。そのため、polkitサービスを停止してデバッグを試み、手動で起動しました。

/usr/libexec/polkitd > /tmp/polkitd.log 2>&1

その後、ログに次の情報が表示されます。

** (polkitd:27925): DEBUG: 17:39:58.602: system-bus-name::1.37 is inquiring whether system-bus-name::1.1748 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:27925): DEBUG: 17:39:58.603:  user of caller is unix-user:root
** (polkitd:27925): DEBUG: 17:39:58.603:  user of subject is unix-user:emil
** (polkitd:27925): DEBUG: 17:39:58.603: checking whether system-bus-name::1.1748 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:27925): DEBUG: 17:39:58.603:   0x7f97ac00c4a0
** (polkitd:27925): DEBUG: 17:39:58.604: Checking whether session 1 is active.
** (polkitd:27925): DEBUG: 17:39:58.604: Session 1 has UID 1000.
** (polkitd:27925): DEBUG: 17:39:58.604: UID 1000 has state online.
** (polkitd:27925): DEBUG: 17:39:58.604:  subject is in session 1 (local=1 active=0)
** (polkitd:27925): DEBUG: 17:39:58.604:  challenge (implicit_authorization = auth_admin)
** (polkitd:27925): DEBUG: 17:39:58.604:  
** (polkitd:27925): DEBUG: 17:39:58.609: Added authentication agent for unix-process:31011:409192549 at name :1.1748 [udisksctl mount -b /dev/sdj1], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8
** (polkitd:27925): DEBUG: 17:39:58.611: system-bus-name::1.37 is inquiring whether system-bus-name::1.1748 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:27925): DEBUG: 17:39:58.611:  user of caller is unix-user:root
** (polkitd:27925): DEBUG: 17:39:58.612:  user of subject is unix-user:emil
** (polkitd:27925): DEBUG: 17:39:58.612: checking whether system-bus-name::1.1748 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:27925): DEBUG: 17:39:58.613:   0x7f97ac00a530
** (polkitd:27925): DEBUG: 17:39:58.613: Checking whether session 1 is active.
** (polkitd:27925): DEBUG: 17:39:58.613: Session 1 has UID 1000.
** (polkitd:27925): DEBUG: 17:39:58.613: UID 1000 has state online.
** (polkitd:27925): DEBUG: 17:39:58.613:  subject is in session 1 (local=1 active=0)
** (polkitd:27925): DEBUG: 17:39:58.614:  challenge (implicit_authorization = auth_admin)
** (polkitd:27925): DEBUG: 17:39:58.614:  
** (polkitd:27925): DEBUG: 17:39:58.614:  using authentication agent for challenge
(polkitd:27925): GLib-DEBUG: 17:39:58.614: setenv()/putenv() are not thread-safe and should not be used after threads are created
(polkitd:27925): GLib-DEBUG: 17:39:58.614: setenv()/putenv() are not thread-safe and should not be used after threads are created

1000は私のユーザー「emil」のUIDですが、「system-bus-name :: 1.37がsystem-bus-name :: 1.1748がorg.freedesktop.udisks2.filesystem-mountに対して承認されているかどうかを尋ねています」という意味は何ですか?ユーザーを確認するのではなく、プロセスIDを確認してください。

とにかく私の質問は、この問題をどのように解決できるかということです(パスワードは必要なく、ファイルマネージャが開くだけです)。

ベストアンサー1

おすすめ記事