public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vladimir Rusinov" <vladimir@greenmice.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] rescrict command to certain dirs
Date: Sat, 4 Aug 2007 17:51:57 +0400	[thread overview]
Message-ID: <f6fdfb550708040651r40c66efcj59402c9bcebbde7c@mail.gmail.com> (raw)
In-Reply-To: <46B1E20D.8070304@gmx.ch>

[-- 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 --]

  reply	other threads:[~2007-08-04 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02 13:54 [gentoo-user] rescrict command to certain dirs Martin Gysel
2007-08-04 13:51 ` Vladimir Rusinov [this message]
2007-08-04 14:01 ` Boyd Stephen Smith Jr.

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=f6fdfb550708040651r40c66efcj59402c9bcebbde7c@mail.gmail.com \
    --to=vladimir@greenmice.info \
    --cc=gentoo-user@lists.gentoo.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox