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

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

    <bug>
          <bug_id>56713</bug_id>
          
          <creation_ts>2025-11-02 17:46:52 +0300</creation_ts>
          <short_desc>machinectl не спрашивает пароль</short_desc>
          <delta_ts>2026-01-25 02:34:26 +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>systemd-container</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</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="Vitaly Chikunov">vt</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>antohami</cc>
    
    <cc>arseny</cc>
    
    <cc>ldv</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>276002</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-11-02 17:46:52 +0300</bug_when>
    <thetext>`machinectl shell root@` не спрашивает пароль. При этом, systemd-run спрашивает пароль для запуска под другим пользователем.

 $ machinectl shell root@ /usr/bin/id
 Connected to the local host. Press ^] three times within 1s to exit session.
 uid=0(root) gid=0(root) groups=0(root)
 Connection to the local host terminated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276003</commentid>
    <comment_count>1</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2025-11-02 18:07:56 +0300</bug_when>
    <thetext>Нужен какой-то пакет polkit-rule-*, который ставит правила для действия org.freedesktop.machine1.host-shell. А может быть, это надо присоединить к существующим таким пакетам...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276004</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-11-02 18:31:14 +0300</bug_when>
    <thetext>Лучше, чтоб *по умолчанию* был пароль, иначе это похоже на дыру.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280251</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-01-14 23:08:04 +0300</bug_when>
    <thetext>Может для такого machinectl нужен хотя бы control?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280252</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2026-01-14 23:23:08 +0300</bug_when>
    <thetext>(Ответ для Vitaly Chikunov на комментарий #0)
&gt; `machinectl shell root@` не спрашивает пароль. При этом, systemd-run
&gt; спрашивает пароль для запуска под другим пользователем.
&gt; 
&gt;  $ machinectl shell root@ /usr/bin/id
&gt;  Connected to the local host. Press ^] three times within 1s to exit session.
&gt;  uid=0(root) gid=0(root) groups=0(root)
&gt;  Connection to the local host terminated.

У меня спрашивает пароль root&apos;а.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280823</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-01-25 02:34:26 +0300</bug_when>
    <thetext>Спасибо, это помогло понять в чем была проблема.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>