linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Subhash Bhushan" <subhash_bhushan@hotmail.com>
To: spradeep@ceeby.com
Cc: linux-admin@vger.kernel.org
Subject: Re: Sudo
Date: Thu, 19 Jun 2003 17:09:47 +0000	[thread overview]
Message-ID: <Law14-F7512xEXYT3wt000462f3@hotmail.com> (raw)

>From: Pradeep Kumar Sadanapalli <spradeep@ceeby.com>
>Reply-To: spradeep@ceeby.com
>To: linux-admin@vger.kernel.org
>Subject: Sudo
>Date: Tue, 17 Jun 2003 20:16:59 -0700 (PDT)
>
>Hi,
>I have given sudo rights to a user for the command "rpm" . but within rpm, 
>I want to keep some restrictions. For example, the user should not be able 
>to run "rpm" to install a package I wish, say "abc.rpm" .
>
>That means  "sudo rpm -ivh any.rpm" should work except "sudo rpm -ivh 
>abc.rpm"
>
>Is it possible? If so, please help me out how to do this. I hope I am clear 
>with what I intend to do .
>
>Thanks in advance....
>


Specify a command alias with the specific rpm command that you want to deny.
Specify a user alias for all the users you want to prevent from running this 
command.
In the user previlege specification, negate the permission for the running 
the command for those users.

The trick is to specify the complete command in the command alias. Be 
careful not to allow any combinations of rpm command to be able to run with 
that specific rpm.

Subhash Bhushan.



_____________________________________________________________
>Search - Browse - Communicate
>http://www.ceeby.com
>Best Meta Search Engine on the Web.
>
>_____________________________________________________________
>Select your own custom email address for FREE! Get you@yourchoice.com, No 
>Ads, 6MB, IMAP, POP, SMTP & more! 
>http://www.everyone.net/selectmail?campaign=tag
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

_________________________________________________________________
Bollywood's back! Will June keep up the tempo? 
http://server1.msn.co.in/features/junemovies03/index.asp


             reply	other threads:[~2003-06-19 17:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-19 17:09 Subhash Bhushan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-19 21:08 Sudo Pradeep Kumar Sadanapalli
2003-06-22  4:10 ` Sudo Arvind
2003-06-18  3:16 Sudo Pradeep Kumar Sadanapalli
2003-06-18  4:50 ` Sudo Glynn Clements
2003-06-18 14:28 ` Sudo Brian Davidson

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=Law14-F7512xEXYT3wt000462f3@hotmail.com \
    --to=subhash_bhushan@hotmail.com \
    --cc=linux-admin@vger.kernel.org \
    --cc=spradeep@ceeby.com \
    /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;
as well as URLs for NNTP newsgroup(s).