ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "unix9" <unix9@yandex.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: Halt.Остановка системы и выкл. компа. Учетная запись.
Date: Tue, 7 Oct 2003 15:40:18 +0400 (MSD)
Message-ID: <3F82A622.000001.31425@tide.yandex.ru> (raw)
In-Reply-To: <20031007112046.GR25069@osdn.org.ua>


>On Tue, Oct 07, 2003 at 01:37:37PM +0400, unix9 wrote:
>> Если помните был такой замечательный дистрибутив  как Spring
>> 2000. Так вот там я создавал учетную запись "Halt" и система
>> при в вводе этого логина выключалась. Беда в том, что я не могу
>> вспомнить как правильно ее создать, чтобы система выключалась,
>> а не запрашивала пароль. Кто знает помогите.
>
>А не проще:
>
>1) сделать
>
>echo button >> /etc/modules
>sudo apt-get install acpid
>sudo chkconfig acpid on
>
>и
>
>modprobe button
>sudo service acpid start
>
>или reboot, если button не загрузится (бывают нюансы "после"),
>после чего для выключения ATX-based используется просто кнопка
>питания, ИЛИ
>
>2) изменить в /etc/inittab
>
>/sbin/shutdown -t3 -r now
>
>на
>
>/sbin/poweroff
>
>и использовать Ctrl-Alt-Del?
Нет, не проще. Ctrl-Alt-Del оставим для перезагрузок.

halt::7:0:halt/sbin/halt -p вот это проще всего.
теперь в приглошении логина мы пишим halt, система понимает, что это не пользователь( подавляет вывод приглашения ввести пароль), останавливает систему и выключает компьютер. Даже монитор включать не надо, дополнительных пакетов тоже ставить не надо.


  parent reply	other threads:[~2003-10-07 11:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07  9:37 [Comm] Halt. Остановка " unix9
2003-10-07 11:20 ` [Comm] " Michael Shigorin
2003-10-07 11:34   ` [Comm] Re: Halt.Остановка " "KoLyA" 
2003-10-07 11:40     ` Michael Shigorin
2003-10-07 11:40   ` unix9 [this message]
2003-10-07 12:00   ` [Comm] Re: Halt. Остановка " Alexandr R. Ogurtzoff
2003-10-07 12:26     ` Michael Shigorin
2003-10-07 12:59       ` Alexandr R. Ogurtzoff
2003-10-07 16:49         ` Michael Shigorin

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=3F82A622.000001.31425@tide.yandex.ru \
    --to=unix9@yandex.ru \
    --cc=community@altlinux.ru \
    /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