ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] sudo env_keep
Date: Mon, 21 May 2007 21:39:54 +0400
Message-ID: <20070521173954.GB32076@basalt.office.altlinux.org> (raw)
In-Reply-To: <20070521142027.GA27994@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

On Mon, May 21, 2007 at 06:20:27PM +0400, Dmitry V. Levin wrote:
> On Mon, May 21, 2007 at 04:45:41PM +0300, Michael Shigorin wrote:
[...]
> > На сейчас поймали при таком раскладе (полукиоск): минимальный
> > десктоп от одного пользователя висит на :0.0, при этом есть
> > кнопка запуска браузера на :0.1 (отдельный монитор) от другого
> > пользователя.
> > 
> > Помогло в сумме получасовое изучение sudoers(5) 
> > и колупание с  visudo(8), приведшее к:
> > 
> > # Defaults specification
> > Defaults !env_reset
> > Defaults !requiretty
> > Defaults !tty_tickets
> 
> Пожалуй, хватило бы
> Defaults env_keep += "DISPLAY"
> 
> В FC так сделано по умолчанию, может и нам стоит это сделать.

К слову, их патч на sudoers (FC6+) sudo-1.6.8p12-env-reset.patch выглядит так:

--- sudo-1.6.8p12/sudoers.env_reset	2006-02-08 16:58:15.000000000 +0100
+++ sudo-1.6.8p12/sudoers	2006-02-08 16:59:02.000000000 +0100
@@ -13,6 +13,14 @@
 
 # Defaults specification
 
+Defaults    env_reset
+Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
+                        LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
+                        LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
+                        LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
+                        LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
+                        _XKB_CHARSET"
+
 # Runas alias specification
 
 # User privilege specification

Мне кажется, что тут много лишнего...


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-05-21 17:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-21 13:45 [devel] q: current sudo default: was it all worth it? Michael Shigorin
2007-05-21 13:58 ` Slava Dubrovskiy
2007-05-21 14:20 ` Dmitry V. Levin
2007-05-21 17:39   ` Dmitry V. Levin [this message]
2007-05-21 21:16     ` Michael Shigorin
2007-05-22  9:55       ` Dmitry V. Levin
2007-05-22 10:01         ` 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=20070521173954.GB32076@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git