feat: Clear terminal screen on logout #1817

Open
opened 2025-11-20 05:17:56 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @dp20eic on GitHub (Aug 31, 2025).

🌟 Briefly describe the feature

Installs a logout script to automatically clear the terminal history, ensuring a clean slate after each session.

📝 Detailed description

This feature request aims to improve user experience by automatically clearing the terminal screen when logging out.

💡 Why is this useful?

Motivation:

When a user logs out, of an SSH session or local console, previous commands and output often remain visible. This can pose a security risk, especially if confidential information such as IP addresses, user names, or configuration details are visible in the screen history.
Automatically clearing the screen ensures a “clean” state and protects user privacy and system information.

Implementation suggestion:

Please add a function to the helper scripts that creates or updates the file /etc/bash.bash_logout with the following content:

sleep 1
clear

With kind regards
Bernd

Originally created by @dp20eic on GitHub (Aug 31, 2025). ### 🌟 Briefly describe the feature Installs a logout script to automatically clear the terminal history, ensuring a clean slate after each session. ### 📝 Detailed description This feature request aims to improve user experience by automatically clearing the terminal screen when logging out. ### 💡 Why is this useful? **Motivation:** When a user logs out, of an SSH session or local console, previous commands and output often remain visible. This can pose a security risk, especially if confidential information such as IP addresses, user names, or configuration details are visible in the screen history. Automatically clearing the screen ensures a “clean” state and protects user privacy and system information. **Implementation suggestion:** Please add a function to the helper scripts that creates or updates the file `/etc/bash.bash_logout` with the following content: ``` sleep 1 clear ``` With kind regards Bernd
saavagebueno added the enhancement label 2025-11-20 05:17:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1817