ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Denis Kirienko <kirienko@mccme.ru>
To: community@altlinux.ru
Subject: Re: [Comm] условие для root'а
Date: Thu, 10 Feb 2005 22:54:47 +0300
Message-ID: <20050210225447.0eaad79e.kirienko@mccme.ru> (raw)
In-Reply-To: <200502102020.31260.s_jusupov@mail.ru>

Получил Thu, 10 Feb 2005 20:20:31 +0300 от Sergey Jusupov следующее
письмо:

> А можно ли сделать так:
> 1. При вводе пароля рута мой комп проверял определенное условие и 
> позволял/отклонял вход?
> Например, я ввожу пароль, комп проверяет наличие определенного файла
> на usb-флешке и при его наличии позволял получить права рута. Иначе
> - "бла бла бла неверный пароль"
> 
> 2. При получении прав рута: sms "Получены права рута" -> мой
> мобильник?
> 
> ЗЫ: 2 пункт где-то описывался, но найти не могу :(

Наиболее идеологически верным способом будет написание
собственного pam-модуля (на C), который выполнял бы и первое, и
второе. Вернее, двух модулей (один - для авторизации, второй - для
SMS). Отправку SMS проще всего реализовать при помощи платных гейтов
mail2sms.

Поставьте пакет pam-doc и почитайте документацию на pam.

--
Денис



      parent reply	other threads:[~2005-02-10 19:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 17:20 Sergey Jusupov
2005-02-10 17:36 ` Alexey S. Kuznetsov
2005-02-10 17:56 ` Maxim Tyurin
2005-02-11 13:35   ` Artem Pastukhov
2005-02-12  8:03   ` Alexey Borovskoy
2005-02-15 14:55     ` Maxim Tyurin
2005-02-18  9:01     ` Ivan Fedorov
2005-02-18 12:38       ` Alexey Borovskoy
2005-02-21  6:08         ` Ivan Fedorov
2005-02-25 10:38           ` Soloviev Aleksey
2005-02-27  8:13             ` Ivan Fedorov
2005-02-28  8:49               ` Soloviev Aleksey
2005-02-18 18:30   ` Denis Smirnov
2005-02-25 10:12     ` Maxim Tyurin
2005-02-27  8:16       ` Ivan Fedorov
2005-02-10 19:54 ` Denis Kirienko [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=20050210225447.0eaad79e.kirienko@mccme.ru \
    --to=kirienko@mccme.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