pkgadd privileges
John Martinez <
rolnif@...>
2007-08-03 00:15:00 GMT
On Aug 2, 2007, at 5:01 PM, Russ Weeks wrote:
> Thanks, John.
>
> In this case, do you give RBAC/sudo access to pkgadd in its
> entirety, or do you give RBAC/sudo access to a set of specific
> commands, ie. 'pkgadd SomePackage'? The first case seems to
> liberal, the second case too strict.
No, I give access to a specific command, as in 'pkgadd', arguments
not included. I believe in sudo you can explicitly spell out command
arguments. I'm not sure in RBAC. I *think so*, but I'm not sure. I
agree that one is too liberal and the other too strict. 'Tis the
choice, I guess. I think I know where you're going with this, though.
You don't want that user to install any package they want, just a
specific set of packages.
As an option, you can always wrap pkgadd around your own shell/perl
scripts, limiting what can be installed. In an example I did at work,
I needed to give our directory team access to automatically create
home directories on the file servers. I used RBAC as a specific UID/
GID combo, allowed access to only one command, a perl script that
does the home directory creation the way I wanted them to, instead of
allowing that user the privilege to run 'mkdir' on its own as EUID=0.
> There was some discussion about this on security-discuss around
> 7/16/06, "ROLE and Profile Improvements". I don't think it really
> went anywhere. Is that a more appropriate forum for this question?
(Continue reading)