I am in the middle of setting up a bunch of lab computers running Ubuntu 14.04 at the local University and would like to disable the need to use a password when exiting screen saver (but not necessary disable the possibility to lock the screen) for all users.

If possible a command line solution that could be deployed over ssh would be preferred.

  • I recommend adding as many tags that uniquely apply as possible, for instance - you are looking for a command-line solution involving lock-screen and screensaver. Additionally, this is a great way to see if your question already has a solution out there - you can search questions for multiple tags yourself - such as putting '[lock-screen][screensaver][password]' into the search box. – Clayton Jul 14 '15 at 6:18

I have found one way to achieve this taken from https://help.ubuntu.com/community/UbuntuLTSP/DisableScreenLock where the steps taken basically is:

  1. Create a script lock_disable.sh containing

    #! /bin/bash
    /usr/bin/gsettings set org.gnome.desktop.screensaver lock-enabled false
  2. Make the file executable and add lock_disable.sh.desktop in /etc/xdg/autostart/ with the following contents

    [Desktop Entry]
    Name=LockScreen Disabled
    Comment=Disable the lock screen

    replacing /full/path/to/ with the correct path to where lock_disable.sh is kept.

What this will do is change the setting for each user when they login to the system such that the lock-screen does not become enabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.