| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/help/C/system-admin-guide/ |
Upload File : |
<page xmlns="http://projectmallard.org/1.0/"
xmlns:its="http://www.w3.org/2005/11/its"
type="topic" style="task"
id="desktop-lockscreen">
<info>
<link type="guide" xref="appearance" />
<link type="seealso" xref="dconf-profiles" />
<link type="seealso" xref="dconf-lockdown" />
<revision pkgversion="3.8" date="2013-08-08" status="review"/>
<revision pkgversion="3.14" date="2014-06-18" status="final"/>
<credit type="author copyright">
<name>Jana Svarova</name>
<email>jana.svarova@gmail.com</email>
<years>2013</years>
</credit>
<credit type="editor">
<name>Shaun McCance</name>
<email>shaunm@gnome.org</email>
<years>2014</years>
</credit>
<desc>Make the screen automatically lock so the user must
enter a password after being idle.</desc>
</info>
<title>Lock the screen when user is idle</title>
<p>You can make the screen lock automatically whenever a user
is idle for some amount of time. This is useful if your users
may leave their computers unattended in public or unsecure
locations.</p>
<steps>
<title>Enable automatic screen lock</title>
<include href="dconf-snippets.xml"
xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"
xmlns="http://www.w3.org/2001/XInclude"/>
<include href="dconf-snippets.xml"
xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"
xmlns="http://www.w3.org/2001/XInclude"/>
<item>
<p>Create the key file
<file>/etc/dconf/db/local.d/00-screensaver</file> to provide
information for the <sys>local</sys> database.</p>
<listing>
<title><file>/etc/dconf/db/local.d/00-screensaver</file></title>
<code>
# Specify the dconf path
[org/gnome/desktop/session]
# Number of seconds of inactivity before the screen goes blank
idle-delay=uint32 180
# Specify the dconf path
[org/gnome/desktop/screensaver]
# Lock the screen after the screen is blank
lock-enabled=true
# Number of seconds after the screen is blank before locking the screen
lock-delay=uint32 0
</code>
</listing>
<p>You must include the <code>uint32</code> along with the
integer key values as shown.</p>
</item>
<item>
<p>To prevent the user from overriding these settings, create the file
<file>/etc/dconf/db/local.d/locks/screensaver</file> with the following
content:</p>
<listing>
<title><file>/etc/dconf/db/local.db/locks/screensaver</file></title>
<code>
# Lock desktop screensaver settings
/org/gnome/desktop/session/idle-delay
/org/gnome/desktop/screensaver/lock-enabled
/org/gnome/desktop/screensaver/lock-delay
</code>
</listing>
</item>
<include href="dconf-snippets.xml"
xpointer="xpointer(/*/*[@xml:id='dconf-update'])"
xmlns="http://www.w3.org/2001/XInclude"/>
<include href="dconf-snippets.xml"
xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"
xmlns="http://www.w3.org/2001/XInclude"/>
</steps>
</page>