Re: Pb sudo
On Mon, Jul 30, 2001 at 05:00:37PM +0200, frederic massot wrote:
> # Cmnd alias specification
> Cmnd_Alias CHOWN=/bin/chown wwwdata.wwwdata, \
> /bin/chown -R wwwdata.wwwdata
RTFM
un extrait de man sudoers:
A Cmnd_List is a list of one or more commandnames,
directories, and other aliases. A commandname is a fully-
qualified filename which may include shell-style wildcards
(see `Wildcards' section below). A simple filename allows
the user to run the command with any arguments he/she
wishes. However, you may also command line arguments
(including wildcards). Alternately, you can specify "" to
indicate that the command may only be run without command
line arguments. A directory is a fully qualified pathname
ending in a '/'. When you specify a directory in a
Cmnd_List, the user will be able to run any file within
that directory (but not in any subdirectories therein).
If a Cmnd has associated command line arguments, then the
arguments in the Cmnd must match exactly those given by
the user on the command line (or match the wildcards if
there are any). Note that the following characters must
be escaped with a '\' if they are used in command
arguments: ',', ':', '=', '\'.
et dans les exemples
pete HPPA = /usr/bin/passwd [A-z]*, !/usr/bin/passwd root
The user pete is allowed to change anyone's password
except for root on the HPPA machines. Note that this
assumes passwd(1) does not take multiple usernames on the
command line.
--
Edouard G. Parmelan
http://egp.free.fr
Reply to:
- Follow-Ups:
- Re: Pb sudo
- From: frederic massot <frederic@juliana-multimedia.com>
- References:
- Re: Pb sudo
- From: Eric Deveaud <edeveaud@pasteur.fr>
- Re: Pb sudo
- From: frederic massot <frederic@juliana-multimedia.com>