Skip to content
Follow
Ubuntu Linux

How to Manage Logout Prompt on Ubuntu Linux

Richard
Written by
Richard
Feb 1, 2023 Updated Aug 13, 2026 2 min read
Enable Automatic Suspension in Ubuntu Linux Easily
Enable Automatic Suspension in Ubuntu Linux Easily

The logout prompt in Ubuntu Linux is a safety box that asks if you really want to end your session before closing your open apps. This extra check stops you from clicking the button by mistake and losing unsaved work.

Ubuntu versions like 22.04 LTS and 24.04 LTS let you turn off this prompt so you can log out much faster. You just need to change a quick setting in your system preferences to skip the warning screen entirely.

⚡ Quick Answer

You can manage the Ubuntu logout prompt using the Terminal or Dconf Editor. In the Terminal, use `gsettings set org.gnome.SessionManager logout-prompt false` to disable it or `gsettings reset org.gnome.SessionManager logout-prompt` to enable it. Dconf Editor allows toggling the `logout-prompt` setting under `org -> gnome -> gnome-session`.

Turn on or off log out prompt on Ubuntu Linux

Managing this prompt via the terminal takes only a single command. This setting helps prevent you from accidentally closing your work without saving when you log out.

Opening the terminal requires pressing Ctrl+Alt+T on the keyboard.

Ubuntu Linux activities overview Terminal search
Ubuntu Linux activities overview Terminal search

To turn off the logout prompt, type this command and press Enter:

gsettings set org.gnome.SessionManager logout-prompt false

To turn the prompt back on, type this command and press Enter:

gsettings reset org.gnome.SessionManager logout-prompt

Disable or enable the logout prompt using the Dconf Editor

Dconf Editor provides a graphical interface (a visual menu for managing system settings) for adjusting configurations without touching the command line.

Installing this application must happen first. Open the terminal and run this command:

sudo apt install dconf-editor

The App Center also offers installation by searching for "Dconf Editor."

ubuntu linux decon editor install
Ubuntu Linux decon editor install

After opening Dconf Editor, follow these steps:

  • Navigate to: org -> gnome -> gnome-session
  • Find the logout-prompt setting in the list.
  • Toggle the switch to On to enable the prompt.
  • Toggle the switch to Off to disable the prompt.
Ubuntu Linux turn on or off log out prompt
Ubuntu Linux turns on or off the log-out prompt.

Once finished, the computer follows the new rule the next time anyone tries to sign out.

Ubuntu Linux logout prompt
Ubuntu Linux logout prompt

Conclusion

Adjusting the Ubuntu logout prompt serves as a good method for avoiding lost work. It acts as a helpful reminder before logging out, preventing accidental data loss, though it doesn't add security against unauthorized access.

Keep in mind that this setting only prevents accidental data loss rather than acting as a security barrier against unauthorized users. For more information on managing the system, see How to add or remove software on Ubuntu Linux.

What is the logout command in Linux?

The logout command terminates all processes either with the same controlling terminal as the present process or with all processes which have this terminal open. Processes that are not children of the present process are terminated upon access to the terminal. The present process is also terminated.

How do I turn off login prompt in Ubuntu?

Disabling automatic login follows a similar path. Navigate to Settings → System → Users, unlock the panel with a password, and toggle the Automatic Login button off. That completes the process.

Was this guide helpful?

100% of readers found this helpful (1 votes)

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Enable Visual Alerts on Ubuntu Linux
Ubuntu Linux How to Enable Visual Alerts on Ubuntu Linux
Enable or Disable 'Switch User' in Ubuntu Linux
Ubuntu Linux Enable or Disable 'Switch User' in Ubuntu Linux
Enable Remote Desktop on Ubuntu Linux
Ubuntu Linux Enable Remote Desktop on Ubuntu Linux
Enable Mobile Hotspot on Ubuntu Linux
Ubuntu Linux Enable Mobile Hotspot on Ubuntu Linux

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *