From: "Andriy Dobrovol's'kii" <dobr@iop.kiev.ua>
To: community@altlinux.ru
Subject: Re: [Comm] sudo & poweroff
Date: Mon, 06 Sep 2004 12:51:10 +0300
Message-ID: <413C330E.10308@iop.kiev.ua> (raw)
In-Reply-To: <37829109.20040906162243@ngs.ru>
php-coder wrote:
> 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;
>
> В чем проблема? Что я сделал не правильно? Буду очень благодарен за
> помощь!
>
Во первых, да -- не правильно. Во-вторых, названия алиасов должны
записываться _прописными_буквами_, в-третьих, там не нужно поминать
sudo.
И вообще, если ещё жив atmsk.ru и его потомок, сходите туда и
прочтите статейку про настройку sudo.
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 265-7824 Department of Gas Electronics
Fax: (380-44) 265-2329 Institute of Physics of NASU
*********************************************************************
next prev parent reply other threads:[~2004-09-06 9:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-06 9:22 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 [this message]
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=413C330E.10308@iop.kiev.ua \
--to=dobr@iop.kiev.ua \
--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