2024年6月28日 星期五

Debian bash 設定自動登出

cat >/etc/profile.d/autologout.sh <<EOF
#!/bin/bash
export TMOUT=3600
EOF

SSH相關設定 
編輯 /etc/ssh/sshd_config
ClientAliveInterval 3600
ClientAliveCountMax 0

Logrotate 因為父目錄權限而執行失敗

錯誤訊息
because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

修改設定檔
/etc/logrotate.conf
/etc/logrotate.d/*

加入 su root root 設定

2024年6月25日 星期二

2024年6月12日 星期三

Debian 12 Xfce4 set this file as trusted

 gio set -t string "$f" metadata::xfce-exe-checksum "$(sha256sum "$f" | awk '{print $1}')"