ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Barabashka <brbshk@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Права на выключение компьютера
Date: Sun, 11 Jan 2004 19:30:13 +0300
Message-ID: <20040111163013.GA2407@netbox.ru> (raw)
In-Reply-To: <20040107192702.5caf4c0f.seirge@metal.tomsk.ru>

On 07 Jan, 07:27, Seirge P. Kondratyev wrote:
> On Wed, 07 Jan 2004 15:59:31 +0300
> Jura <jury@land.ru> wrote:
> 
> > shawkat@samdu.uz пишет:
> > 
> > >>После выполнения команд:
> > >>$reboot
> > >>$halt
> > >>$poweroff
> > >>    система просит:
> > >>    Введите пароль пользователя root:
> > >>
> > >>Я хочу разрешить выполнять эти команды обычным пользователям,
> > >>которые не знают пароль для root
> > >>как это сделать?
> > >>    Юрий
> > >>    
> > >>
> > >
> > >настроить sudo
> > >
> > >/etc/sudoers
> > >------------------------------------------------------------------
> > >------
> > >
> > Прочитал man, спасибо создателям дистрибутива, (перевели на Руссий).
> > Отредактировал /etc/sudoers
> > 
> > --------------------
> > #cat /etc/sudoers
> > 
> > 	# Host alias specification
> > 
> > 	# User alias specification
> > 	User_Alias	POWUSERS = jura, jura1
> > 
> > 	# Cmnd alias specification
> > 	Cmnd_Alias	REBOOT = /usr/bin/reboot
> > 	Cmnd_Alias	POWEROFF = /usr/bin/poweroff
> > 	Cmnd_Alias	HALT = /usr/bin/halt
> > 
> > 	# Defaults specification
> > 
> > 	# User privilege specification
> > 	root		ALL = (ALL) ALL
> > 	POWUSERS	ALL = NOPASSWD: REBOOT, POWEROFF, HALT
> > -------------------
> > Ничего не изменилось:
> > --------
> > $reboot
> >     Введите пароль пользователя root:
> > --------
> > 
> 
> так ведь sudo reboot %) 

Нужно разлогиниться, чтобы система восприняла изменения. После
чего зайти и sudo poweroff.


  reply	other threads:[~2004-01-11 16:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  8:58 Jura
2004-01-07  9:51 ` Leonid B. Sysoletin
2004-01-07 10:05   ` seirge
2004-01-07 10:21     ` Andrey Rahmatullin
2004-01-07 10:57       ` Jura
2004-01-07 10:54         ` shawkat
2004-01-07 12:59           ` Jura
2004-01-07 13:10             ` shawkat
2004-01-07 13:27             ` Seirge P. Kondratyev
2004-01-11 16:30               ` Barabashka [this message]
2004-01-12  3:17                 ` Guzaev Pavel
2004-01-10 10:58       ` Valery V. Inozemtsev
2004-01-10 12:24         ` Andrey Rahmatullin
2004-01-11 11:25           ` [Comm] " Michael Shigorin
2004-01-07 10:28   ` [Comm] " Seirge P. Kondratyev
2004-01-07 10:48     ` Andrey Rahmatullin
2004-01-07 11:37     ` Seirge P. Kondratyev
2004-01-07 21:34       ` [Comm] " Michael Shigorin
2004-01-07 11:00   ` [Comm] " Vadim V. Zhytnikov
2004-01-07 10:49 ` [Comm] " Konstantin A. Lepikhov

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=20040111163013.GA2407@netbox.ru \
    --to=brbshk@list.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