ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@alt-linux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] I: sudo-1.6.4-alt0.1rc3 package available for testing
Date: Mon, 14 Jan 2002 11:33:03 +0300
Message-ID: <20020114083303.GD30744@ldv.office.alt-linux.org> (raw)
In-Reply-To: <Pine.LNX.4.43L.0201131853080.2014-100000@arrakis.zephyrous>

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

On Sun, Jan 13, 2002 at 07:14:51PM +0300, Ivan Zakharyaschev wrote:
> > > Просьба всем, у кого есть возможность, в течении ближайших 24 часов
> > > установить и протестировать на вашей конфигурации release candidate
> > > новой
> > > версии sudo.
> >
> > Вот, что случилось после apt-get dist-upgrade:
> >
> > [imz@shamrock imz]$ sudo echo hi
> > sudo: unknown defaults entry `secure_path' referenced near line 7
> > sudo: parse error in /etc/sudoers near line 6
> > [imz@shamrock imz]$ rpm -q sudo
> > sudo-1.6.4-alt0.1rc3
> > [imz@shamrock imz]$ cat /etc/sudoers*
> > cat: /etc/sudoers: Permission denied
> > cat: /etc/sudoers.rpmnew: Permission denied
> > cat: /etc/sudoers.tmp~: Permission denied
> > [imz@shamrock imz]$
> >
> > В результате, я не могу ничего сделать, потому что пароль root я
> > давно
> > забыл.
> >
> > Насколько я помню, /etc/sudoers был простейшим.
> 
> Не совсем, там была строчка:
> 
> Defaults secure_path="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/bin/X11"
> 
> (и плюс несколько пользователей в виде
> 
> root    ALL=(ALL) ALL
> 
> )
> 
> В соответствии с manpage для sudoers из нового пакета она неправильная,

Да, эта опция более не поддерживается, вместо этого используется вкомпилированный
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

> но
> 
> /usr/share/man/ru_RU.KOI8-R/man5/sudoers.5.bz2
> /usr/share/man/ru_RU.CP1251/man5/sudoers.5.bz2
> 
> остались старыми.

Надо обновить.

> После закомментирования строчки с Defaults sudo стал работать.

<skip>

> Проблема с получением прав root на том компьютере решилась вот так:
> 
> /mnt/debian/usr/bin/sudo bash

Безобразие! Почему на этой машине неправильно смонтирован /mnt/debian?

> Отсюда предложение: может быть предусмотреть установку вместе с новым
> sudo некоторого sudo-compat, который мог бы во время перехода работать
> со старыми конфигурационными файлами. Иначе человек, сделавший sudo
> apt-get dist-upgrade, может потерять возможность сделать что-либо еще, в
> том числе и переписать /etc/sudoers на новый лад.

Это его проблемы. Впрочем, в sudo advisory я об этом напишу.


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@alt-linux.org
ALT Linux Team      http://www.altlinux.ru/
Fandra Project      http://www.fandra.org/
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

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

      reply	other threads:[~2002-01-14  8:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-13 12:20 Dmitry V. Levin
2002-01-13 15:28 ` Ivan Zakharyaschev
2002-01-13 15:33   ` Ivan Zakharyaschev
2002-01-13 15:39     ` Aleksandr Blohin
2002-01-13 16:14   ` Ivan Zakharyaschev
2002-01-14  8:33     ` Dmitry V. Levin [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=20020114083303.GD30744@ldv.office.alt-linux.org \
    --to=ldv@alt-linux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

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

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


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