ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] sudo & poweroff
@ 2004-09-06  9:22 php-coder
  2004-09-06  9:34 ` Mike Lykov
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: php-coder @ 2004-09-06  9:22 UTC (permalink / raw)
  To: community

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2004-09-08 10:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-06  9:22 [Comm] sudo & poweroff php-coder
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

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