ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergei <serpiph@pochtamt.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: Re[2]: [mdk-re] core & reboot
Date: Sat Jul 14 00:51:12 2001
Message-ID: <01071401173802.05506@pif.b5.mephi.ru> (raw)
In-Reply-To: <14724012651.20010709170144@oducentr.elektra.ru>

Понедельник 09 Июль 2001 17:01, Вы написали:
> Hello Roman,
>
> Monday, July 09, 2001, 4:53:35 PM, you wrote:
>
>
>
> RS> Эти файлы создаёт ОС, когда она вынуждена снять с
> RS> выполнения косое приложение.
> RS> Нужны они для поиска концов...
> RS> Если не собираетесь заниматься посмертной отладкой -
> RS> поставьте в limits.conf лимит 0 на core, они тогда не
> RS> будут создаваться.
>
> а могут они создаваться из за того что я в tty2 даю reboot , а при
> этом Х'ы запущены
>
>
> кстати , можно ли сделать чтобы обычный пользователь (не рут и не
> суперпользовател)мог  давать из терминала команды reboot , halt и т.д
> а то надоело su набирать чтобы просто перегрузится или выключится
Я сделал так:
1) поставил usermode...
2) в /etc/pam.d создал файлы reboot, halt, poweroff, shutdown с начинкой:
#%PAM-1.0
auth       sufficient	/lib/security/pam_rootok.so
auth       required	/lib/security/pam_listfile.so item=user sense=allow 
file=/etc/power.operator onerr=fail
auth       required	/lib/security/pam_console.so
auth       required	/lib/security/pam_stack.so service=system-auth
account    required	/lib/security/pam_permit.so

И в файле /etc/power.operator указал кто может эти команды использовать.

3)В /etc/security/console.apps создал фйлы типа:
для shutdown файл shutdwon с начинкой:
USER=<user>
PROGRAM=/sbin/shutdown
SESSION=false
FALLBACK=false

И это все
-- 
С уважением, Епифанов Сергей.



      parent reply	other threads:[~2001-07-14  0:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-09 16:37 [mdk-re] core Roman S
2001-07-09 16:48 ` Re[2]: [mdk-re] core & reboot sobol
2001-07-09 16:54   ` Artem K. Jouravsky
2001-07-09 17:13     ` [mdk-re] sudo sobol
2001-07-09 17:21       ` Artem K. Jouravsky
2001-07-09 17:13   ` [mdk-re] core & reboot cornet
2001-07-14  0:51   ` Sergei [this message]

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=01071401173802.05506@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