From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 X-Virus-Scanned: amavisd-new at telenet.dn.ua Date: Thu, 21 Feb 2008 22:02:57 +0200 To: "ALT Linux Community general discussions" From: "Aleksander N.Gorohovski" Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 References: <679044850802211121o466d4045x91196ad0e2593e4@mail.gmail.com> <679044850802211152gf86eab1l32d711b8ab19dfb9@mail.gmail.com> Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <679044850802211152gf86eab1l32d711b8ab19dfb9@mail.gmail.com> User-Agent: Opera Mail/9.25 (Linux) Subject: Re: [Comm] =?koi8-r?b?cG93ZXJvZmYgydog0M/EIMDaxdLB?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 20:02:59 -0000 Archived-At: List-Archive: List-Post: On Thu, 21 Feb 2008 21:52:57 +0200, Damir Shayhutdinov wrote: >> Интересно, а что же этот пакет настаивает в системе, >> т.е. без него root-ручонками (в консоли) можно сделать эти настройки? > > rpm -ql SysVinit-usermode -v > > /etc/pam.d/halt -> reboot > /etc/pam.d/poweroff -> reboot > /etc/pam.d/reboot > /etc/security/console.apps/halt > /etc/security/console.apps/poweroff > /etc/security/console.apps/reboot > /usr/bin/halt -> reboot > /usr/bin/poweroff -> reboot > /usr/bin/reboot -> /usr/lib/consolehelper/helper > > Если продублировать все эти файлы root-ручонками, то можно. > Или просто поставить suid-бит на /usr/sbin/poweroff и сделать на него > ссылку в /usr/bin, но это небезопасно. Премного благодарен. Теперь всё понятно.