nmcli は、nm-applet がバックグラウンドで実行されない限り、秘密サービスを使用できません。

nmcli は、nm-applet がバックグラウンドで実行されない限り、秘密サービスを使用できません。

私のWi-Fiパスワードがこの秘密サービス(org.freedesktop.Secret.Service)に保存されるようにpass設定しました。pass_secret_serviceしたがって、Wi-Fiネットワークに接続するときは、ネットワーク管理者はシークレットサービスにパスワードを要求する必要があります。

ただし、次のようにネットワークに接続しようとするとnmcli

$ nmcli connection up Foobar
Passwords or encryption keys are required to access the wireless network 'Foobar'.
Warning: password for '802-11-wireless-security.psk' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Error: Connection activation failed: Secrets were required, but not provided

しかし、nm-appletバックグラウンドで実行すると動作します。

$ nm-applet &

$ nmcli connection up Foobar
Passwords or encryption keys are required to access the wireless network 'Foobar'.
Warning: password for '802-11-wireless-security.psk' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/15)

nm-appletバックグラウンドで実行されないと、なぜ実行できないのですか?この問題を解決する方法についてのアイデアはありますか?

ベストアンサー1

おすすめ記事