ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Damir Shayhutdinov" <lost404@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] poweroff из под юзера
Date: Thu, 21 Feb 2008 22:52:57 +0300
Message-ID: <679044850802211152gf86eab1l32d711b8ab19dfb9@mail.gmail.com> (raw)
In-Reply-To: <op.t6v3u1hgmb8vzs@oc.peooc.net>

>  Интересно, а что же этот пакет настаивает в системе,
>  т.е. без него 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, но это небезопасно.

  parent reply	other threads:[~2008-02-21 19:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21  5:26 Mikhail Kuligin
2008-02-21  5:48 ` Владимир Гусев
2008-02-21 19:15   ` Aleksander N.Gorohovski
2008-02-21 19:21     ` Владимир Кутявин
2008-02-21 19:21     ` Damir Shayhutdinov
2008-02-21 19:46       ` Aleksander N.Gorohovski
2008-02-21 19:49         ` Andrey Rahmatullin
2008-02-21 19:56           ` Aleksander N.Gorohovski
2008-02-21 19:52         ` Damir Shayhutdinov [this message]
2008-02-21 20:02           ` Aleksander N.Gorohovski
2008-02-22  8:58     ` [Comm] poweroff из под юзера [JT] Владимир Гусев

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=679044850802211152gf86eab1l32d711b8ab19dfb9@mail.gmail.com \
    --to=lost404@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git