From: Sergei <serpiph@pochtamt.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] Scrty qn #2: How to allow Ctrl-Alt-del only to some users? Date: Tue Sep 18 00:04:04 2001 Message-ID: <200109172014.f8HKEx9G019219@pif.b5.mephi.ru> (raw) In-Reply-To: <20010917181746.B15086@hb.ant-on.net> 17 Сентябрь 2001 18:17, Вы написали: > Как сделать так, чтобы каждый и всякий не мог вызвать нежелательную > перезагрузку системы, нажав Ctrl-Alt-del? > > Я примерно представляю, что можно сделать, но не уверен, что это правильно. > > $ grep ctrlaltdel /etc/inittab > ca::ctrlaltdel:/sbin/shutdown -t3 -r now > > Как я понимаю, можно добавить ключ -a к параметрам shutdown, а в > файл /etc/shutdown.allow включить всех "надежных" пользователей. > Я ничего не испорчу, если так сделаю? Нет. Просто после добавления этого ключа должен быть файл /etc/shutdown.allow, где будут юзвери, могущие перегрузить. (Кстати, раньше встречал инфу, что не более 32 пользователей файле. Как сейчас - не знаю.) > Кроме того, мне непонятен (даже после чтения man shutdown) механизм, как > будет определяться возможность или невозможность перезагрузки. Конкретно: > предположим, что root зашел по ssh по сети. Т. е., в терминах > `man shutdown`, an authorized user IS logged in. (в `man shutdown` > идет уточнение: ... is logged in on one of the virtual consoles, но > мне не понятно, что такое virtual consoles). К клавиатуре в это время > подходит Кто_угодно и нажимает Ctrl-Alt-del. Будет ребут или не будет? Не знаю. > Наконец, последний вопрос: могу ли я вообще в /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 -- С уважением, Епифанов Сергей.
next prev parent reply other threads:[~2001-09-18 0:04 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 [this message] 2001-09-18 10:36 ` HB trying to survive under Linux 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=200109172014.f8HKEx9G019219@pif.b5.mephi.ru \ --to=serpiph@pochtamt.ru \ --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