* Re: [gentoo-user] rescrict command to certain dirs
@ 2007-08-04 13:51 99% ` Vladimir Rusinov
0 siblings, 0 replies; 1+ results
From: Vladimir Rusinov @ 2007-08-04 13:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
On 8/2/07, Martin Gysel <m.gysel@gmx.ch> wrote:
>
> it should do something like jail the user to
> /var/www/vhosts/DOMAIN/httpdocs/DIRtoFILES and let him perform some
> commands (rm, less, nano, etc) there as user WEBSERVER.
>
> AFAIK this isn't possible with sudo because I think it's not possible to
> restrict it to certain files or dirs.
%% from /etc/sudoers
# Users in group www are allowed to edit httpd.conf using sudoedit, or
# sudo -e, without a password.
# %www ALL=(ALL) NOPASSWD: sudoedit /etc/httpd.conf
--
Vladimir Rusinov
GreenMice Solutions: IT-решения на базе Linux
http://greenmice.info/
[-- Attachment #2: Type: text/html, Size: 1070 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-08-02 13:54 [gentoo-user] rescrict command to certain dirs Martin Gysel
2007-08-04 13:51 99% ` Vladimir Rusinov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox