2023年11月9日 星期四

Authentication required. System policy prevents WiFi scans

編輯 /etc/polkit-1/localauthority/50-local.d/wifi.scan.pkla

[Allow Wifi Scan]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.wifi.scan;org.freedesktop.NetworkManager.enable-disable-wifi;org.freedesktop.NetworkManager.settings.modify.own;org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.network-control

ResultAny=yes

ResultInactive=yes

ResultActive=yes

Authentication required to refresh system repositories

編輯 /etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla

[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh

ResultAny=yes

ResultInactive=yes

ResultActive=yes

Proxmox VE 8 密碼規則設定檔

/etc/security/pwquality.conf
/etc/pam.d/common-password
/etc/login.defs 


相關指令及檔案
/etc/pam.d/password
/etc/pam.d/common-password 

passwd --expire [[$USER]
chage -d 0 [$USER]

raspbian 停用 ssh 密碼 raspberry 檢查

移除 /etc/profile.d/sshpasswd.sh

apt purge libpam-chksshpwd

更新 Debian 11 到 12

編輯 /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main
deb http://ftp.debian.org/debian bookworm-backports main contrib non-free                       

apt update -y
apt upgrade --without-new-pkgs -y
apt full-upgrade -y