<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="logout-automatic" xml:lang="ko">

  <info>
    <link type="guide" xref="login#management"/>
<!--    <link type="seealso" xref="dconf-profiles" />-->
    <link type="seealso" xref="dconf-lockdown"/>
    <link type="seealso" xref="login-automatic"/>

    <revision pkgversion="3.12" date="2014-06-18" status="review"/>

    <credit type="author copyright">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2013</years>
    </credit>

    <credit type="editor">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2014</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>대기중인 사용자 세션을 끝냅니다.</desc>

  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>조재은</mal:name>
      <mal:email>ckr971028@gmail.com</mal:email>
      <mal:years>2018</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>조성호</mal:name>
      <mal:email>shcho@gnome.org</mal:email>
      <mal:years>2019, 2021, 2023.</mal:years>
    </mal:credit>
  </info>

  <title>자동 로그아웃 설정</title>

  <p>일정 시간 동안 사용자 세션이 대기중일 경우 자동으로 끝낼 수 있습니다. 머신을 배터리 또는 교류 전원으로 실행하는지 여부에 따라 관련 <sys its:translate="no">dconf</sys> 키를 설정하여 잠글 수 있습니다.</p>

  <note style="warning">
    <p>대기 세션을 자동으로 끝내버리면 저장하지 않은 데이터가 잠재적으로 날라갈 수 있음을 염두에 두십시오.</p>
  </note>

  <steps>
    <title>교류 전원에 연결한 머신을 자동으로 로그아웃하도록 설정</title>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"/>
    <item>
      <p><file>/etc/dconf/db/local.d/00-autologout</file> 디렉터리에 머신 전체 설정을 저장할 <code>local</code> 데이터베이스를 만드십시오:</p>
      <listing>
        <code>
[org/gnome/settings-daemon/plugins/power]
# Set the timeout to 900 seconds when on mains power
sleep-inactive-ac-timeout=900
# Set action after timeout to be logout when on mains power
sleep-inactive-ac-type='logout'
</code>
      </listing>
    </item>
    <item>
      <p><file>/etc/dconf/db/local.d/locks/autologout</file> 파일에 사용자 설정을 우선 적용하고, 사용자로 하여금 바꾸지 못하게 막으십시오:</p>
      <listing>
        <code>
# Lock automatic logout settings
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
</code>
</listing>
    </item>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/>
  </steps>

  <!-- There will shortly be a way to get key descriptions using gsettings, we
       should recommend this instead of listing the terms here. See
       https://bugzilla.gnome.org/show_bug.cgi?id=668232 -->
  <p>다음 GSettings 키를 살펴볼만합니다:</p>
  <terms>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-timeout</code></title>
      <p>교류 전원에 연결하여 동작할 경우 대기 모드로 진입하기 전 아무런 동작을 취하지 않아도 될 초 숫자를 지정합니다.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-type</code></title>
      <p>교류 전원에 연결하여 동작할 경우 일정 시간이 지났을 때 어떤 동작을 수행해야 하느냐를 지정합니다.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-timeout</code></title>
      <p>배터리 전원에 연결하여 동작할 경우 대기 모드로 진입하기 전 아무런 동작을 취하지 않아도 될 초 숫자를 지정합니다.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-type</code></title>
      <p>배터리 전원에 연결하여 동작할 경우 일정 시간이 지났을 때 어떤 동작을 수행해야 하느냐를 지정합니다.</p>
    </item>
  </terms>

  <p><cmd>gsettings range</cmd> 명령을 실행하면 키에 대해 사용할 수 있는 값의 범위를 알 수 있습니다. 예를 들자면:</p>
  
  <screen>$ <input>gsettings range org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type</input>
enum
'blank' # blanks the screen
'suspend' # suspends the system
'shutdown' # starts a standard shutdown procedure
'hibernate' # hibernates the system
'interactive' # shows a pop-up query asking the user what to do
'nothing' # does nothing
'logout' # log out from the session</screen>

</page>
