<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>49271</bug_id>
          
          <creation_ts>2024-02-02 15:30:42 +0300</creation_ts>
          <short_desc>Настройки Системы → Папки: не обрабатывает пути с переменными (%HOME%)</short_desc>
          <delta_ts>2024-03-29 16:43:19 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gpupdate</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Shesteperov">alimektor</reporter>
          <assigned_to name="Valery Sinelnikov">greh</assigned_to>
          <cc>greh</cc>
    
    <cc>nir</cc>
    
    <cc>sin</cc>
    
    <cc>zurabishvilinn</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>241059</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2024-02-02 15:30:42 +0300</bug_when>
    <thetext>Версия

-   gpupdate-0.9.13.6-alt1

Шаги воспроизведения

В GPUI включить поддержку экспериментальных групповых политик и
дополнительные политики:

Компьютер -&gt; Административные шаблоны -&gt; Система ALT -&gt; Групповые
политики -&gt; Экспериментальные групповые политики -&gt; Включено

Компьютер -&gt; Административные шаблоны -&gt; Система ALT -&gt; Групповые
политики -&gt; Механизмы GPUpdate:

-   Управление локальными каталогами -&gt; Включено
-   Управление локальными каталогами для пользователей -&gt; Включено

В GPUI открыть раздел Пользователь - Настройки - Настройки системы -
Папки

ПКМ на пустом поле справа - Новый - Папки

Настроить папку:

-   Действие: Создать
-   Путь: %HOME%/user-test-dir

Нажать OK

Перезагрузить клиентскую систему, авторизоваться доменным пользователем.

Выполнить наличия папки:

    $ l ~/user-test-dir

Ожидаемый результат: созданная папка, как указано в политике.

Фактический результат: папки нет.

Ручное применение политики:

    $ gpupdate -l 3
    2024-02-02 15:11:32.472|[W00002]| Текущий уровень привилегий не позволяет выполнить gpupdate для указанного пользователя. Будут обновлены настройки текущего пользователя.|{&apos;username&apos;: &apos;testuser&apos;}
    Apply group policies for computer.
    Apply group policies for testuser.
    2024-02-02 15:11:43.969|[E00020]| Error occured while running user applier in user context (with dropped privileges)|{&apos;applier&apos;: &apos;folders&apos;, &apos;exception&apos;: &quot;[Errno 13] Permission denied: &apos;/user-test-dir&apos;&quot;}

Возможные причины: не обрабатывает переменные в политике.

XML политики выглядит ОК:

    # cat /var/lib/samba/sysvol/samba.testdomain/Policies/*/USER/Preferences/Folders/Folders.xml 
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;
    &lt;Folders clsid=&quot;{77CC39E7-3D16-4f8f-AF86-EC0BBEE2C861}&quot;&gt;
      &lt;Folder bypassErrors=&quot;0&quot; changed=&quot;2024-02-02 15:09:09&quot; clsid=&quot;{07DA02F5-F9CD-4397-A550-4AE21B6B4BD3}&quot; desc=&quot;&quot; image=&quot;0&quot; name=&quot;user-test-dir&quot; removePolicy=&quot;0&quot; status=&quot;&quot; uid=&quot;{33a0f02c-9de6-40ae-9da5-a9bd6972fdb3}&quot; userContext=&quot;1&quot;&gt;
        &lt;Properties action=&quot;C&quot; archive=&quot;0&quot; hidden=&quot;0&quot; path=&quot;%HOME%/user-test-dir&quot; readOnly=&quot;0&quot;/&gt;
      &lt;/Folder&gt;
    &lt;/Folders&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243762</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolai Zurabishvili">zurabishvilinn</who>
    <bug_when>2024-03-29 16:43:19 +0300</bug_when>
    <thetext>gpupdate-0.9.13.9-alt1

Не удалось воспроизвести</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>