ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: php-coder <php-coder@ngs.ru>
To: community@altlinux.ru
Subject: [Comm] sudo & poweroff
Date: Mon, 6 Sep 2004 16:22:43 +0700
Message-ID: <37829109.20040906162243@ngs.ru> (raw)

0000100101011110100100101::06.09.2004::0110001001001000100111100100010

  Привет, Linuxоиды!

  Моя мама не может выключить компьютер :(( Она выходит из KDE, вводит
  poweroff и получает сообщение, что у ней нет прав, хотя я ей вроде
  их дал.
  
  В /etc/sudoerc прописано:
  ya  mycomp=(root)  NOPASSWD:/sbin/poweroff /sbin/reboot

  У пользователя прописал alias'ы:

  [ya@mycomp ya]$ alias poweroff reboot
  alias poweroff='sudo /sbin/poweroff'
  alias reboot='sudo /sbin/reboot'

  Но они почему-то замещаются:

  [ya@mycomp ya]$ which poweroff reboot
  /usr/bin/poweroff
  /usr/bin/reboot

  При этом при попытке выключить получаю:

  [ya@mycomp ya]$ poweroff
  Password:
  Sorry, user ya is not allowed to execute '/sbin/poweroff' as root on mycomp.mydomain.

  В логах:
  sudo: ya: command not allowed;

  В чем проблема? Что я сделал не правильно? Буду очень благодарен за
  помощь!

-- 
  С уважением, php-coder (mailto:php-coder[at]ngs[dot]ru)
  Registered Linux User #327594
  ALT Linux Master 2.2 (kernel 2.4.27)

010010010010010001010101100::Linux RuleZz!::10001001000100010001000111



             reply	other threads:[~2004-09-06  9:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-06  9:22 php-coder [this message]
2004-09-06  9:34 ` Mike Lykov
2004-09-06 10:23   ` Re[2]: " php-coder
2004-09-06 11:01     ` Mike Lykov
2004-09-06 11:03       ` [Comm] " Michael Shigorin
2004-09-06 11:47       ` Re[4]: [Comm] " php-coder
2004-09-06 14:07         ` Dolgov OV
2004-09-07  3:21         ` Re[4]: " Mike Lykov
2004-09-07  7:21           ` Re[6]: " php-coder
2004-09-06 12:30     ` Andrey Rahmatullin
2004-09-06  9:51 ` Andriy Dobrovol's'kii
2004-09-06 10:22   ` Re[2]: " php-coder
2004-09-06 12:20 ` Maxim Bodynasky
2004-09-06 13:41   ` Andrey Rahmatullin
2004-09-06 16:04     ` Maxim Bodynasky
2004-09-08 10:32   ` Re[2]: " php-coder
2004-09-06 14:02 ` Dolgov OV

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=37829109.20040906162243@ngs.ru \
    --to=php-coder@ngs.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