ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Juveman <juveman@atom.ru>
To: community@altlinux.ru
Subject: [Comm] Re: Проблема при монтировании CD
Date: Mon, 17 Nov 2003 10:41:21 +0300
Message-ID: <20031117104121.33b24ad7.juveman@atom.ru> (raw)
In-Reply-To: <20031116193342.C82214801D@lrn.ru>

> [...]
> > Команда grep cdrom /etc/group выводит похожие результаты. А вот sudo control mount предлагает мне набрать пароль. Набираю пароль root - говорит, что пароль неверный, а попробовал набрать пароль пользователя появилось следующее сообщение:
> > juveman is not in the sudoers file.  This incident will be reported.
> > Ошибки в написании паролей исключены.
> Это нормально. sudo нужен именно пароль юзера, но сначала надо прописать
> этого юзера в sudoers (man sudoers). Ты просто сделай от рута
> control mount
> 
> Или в Мандраке нет control?

Видимо нет:
[root@juveman juveman]# control mount
bash: control: command not found

Я понял, что разрешения хранятся в /etc/sudoers. Вот только в нем написано, что его редактировать можно только через visudo. А через обычный редактор его нельзя отредактировать?
И еще, предидущий вопрос не снимается. Почему при попытке монтирования устройства под рутом, повляется сообщение mount: permission denied?
Файл /etc/sudoers сейчас выглядит следующим образом:
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root	ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL)	ALL
# Same thing without a password
# %wheel	ALL=(ALL)	NOPASSWD: ALL
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

С уважением, Juveman


       reply	other threads:[~2003-11-17  7:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17  7:41 ` Juveman [this message]
2003-11-17 19:00   ` Зенькович Александр

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=20031117104121.33b24ad7.juveman@atom.ru \
    --to=juveman@atom.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