ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: HB trying to survive under Linux <npecca@yahoo.com>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Scrty qn #2: How to allow Ctrl-Alt-del only to some users?
Date: Tue Sep 18 11:16:24 2001
Message-ID: <20010918104049.C16904@hb.ant-on.net> (raw)
Message-ID: <20010918111624.dayUySBNs_bt4SruSxUdu6dYcesEIJ4bL2Klly9HLO8@z> (raw)
In-Reply-To: <200109172014.f8HKEx9G019219@pif.b5.mephi.ru>; from serpiph@pochtamt.ru on Tue, Sep 18, 2001 at 12:14:59AM +0400

Tue, Sep 18, 2001 at 12:14:59AM +0400, Sergei wrote:

> > $ grep ctrlaltdel /etc/inittab
> > ca::ctrlaltdel:/sbin/shutdown -t3 -r now
> >
> > Как я понимаю, можно добавить ключ -a к параметрам shutdown, а в
> > файл /etc/shutdown.allow включить всех "надежных" пользователей.
> > Я ничего не испорчу, если так сделаю?

> Нет. Просто после добавления этого ключа должен быть файл 
> /etc/shutdown.allow, где будут юзвери, могущие перегрузить.

Понял.

> (Кстати, раньше встречал инфу, что не более 32 пользователей
> файле. Как сейчас - не знаю.)

Все именно так и есть, судя по `man shutdown`, не более 32-х лузеров.

> > Наконец, последний вопрос: могу ли я вообще в /etc/inittab вместо
> > '/sbin/shutdown blah-blah' набрать что-то совсем другое по собственному
> > вкусу (e. g. 'poweroff' or '/bin/echo Hello, world!') ?

> Все, что пожелает душа.
> У меня, например, так было:
> ca::ctrlaltdel:/bin/echo "Tried to reboot at `date`" |/bin/mail -s Reboot root

Великолепно. Премного благодарен, Сергей.

-- 
HB

_______________________________________________
Mandrake-russian mailing list
Mandrake-russian@altlinux.ru
http://altlinux.ru/mailman/listinfo/mandrake-russian





  reply	other threads:[~2001-09-18 11:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-17 18:13 HB trying to survive under Linux
2001-09-17 18:38 ` Peter V. Saveliev
2001-09-17 18:44   ` Vyt
2001-09-17 20:25   ` HB trying to survive under Linux
2001-09-17 19:01 ` Michael Shigorin
2001-09-17 20:44   ` HB trying to survive under Linux
2001-09-17 20:50     ` [mdk-re] " Alexander Bokovoy
2001-09-20 13:23   ` [mdk-re] " AT
2001-09-20 14:24     ` Michael Shigorin
2001-09-18  0:04 ` Sergei
2001-09-18 10:36   ` HB trying to survive under Linux [this message]
2001-09-18 11:16     ` HB trying to survive under Linux
2001-09-18 12:34     ` HB trying to survive under Linux
2001-09-21 12:07 ` Yuri Borunov
2001-09-21 15:12   ` HB trying to survive under Linux
2001-09-21 15:23     ` [mdk-re] [JT]Scrty " Yuri Borunov

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=20010918104049.C16904@hb.ant-on.net \
    --to=npecca@yahoo.com \
    --cc=mandrake-russian@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