Re: Now Solaris has ACL's is there any need for sudo?

From: Akop Pogosian (akopps+usenet_at_ocf.berkeley.edu)
Date: 08/16/03


Date: Sat, 16 Aug 2003 03:50:15 +0000 (UTC)

Wayne <nospam@all.4me> wrote:
> Akop Pogosian wrote:

>> chud@chud.is-a-geek.net wrote:
>>
>>
>>>Have you ever tried to set up ACL's? I have, and it is a big pain in
>>>the ass. Granted, you have finer granularity with ACL's but when you
>>>want to give fast and dirty access to otherwise root run commands to
>>>some operators, sudo is the way to go. This is IMHO of course ;)
>>
>> Of course, the additional granularity of file ACLs comes at the price
>> of higher learning curve though I don't find ACLs to be too much pain
>> to use. The setfacl syntax is more complicated that chmod but I
>> usually only use setfacl with -f option which accepts as its input, (a
>> possibly edited) output of getfacl command.
>>
>> Though, I don't think this answer's OPs question because he was
>> looking for a sudo replacement. More granular file ACLs of course can
>> remove the necessity for using sudo in certain cases but a more
>> general solution is the Solaris RBAC/pfexec facility.

> In my opinion:

> Neither ACLs nor RBACs provide the flexibility, ease, and granularity
> of sudo. While an ACL can be set on a project directory, it is
> sometimes the case that you wish to limit execute permission to
> certain commands. The ancient technique of setting up extra groups
> (e.g., a group per command, and add users to the groups to control
> who can run which commands) may not work, there is a
> limit of 16-32 for the number of groups per user. And setting an
> ACL on each command, directory, and the odd data files, libraries,
> etc., could easily be a maintenance nightmare.

> RBAC is for sites that don't permit 3rd party software such as sudo,
> but near as I can see from the RBAC docs I've read, while you can
> restrict usage to commands, you can't control which options.

You could use shell wrapper scripts or RBAC authorizations to overcome
this limitation but the later will work only with certain RBAC-enabled
Sun applications and only for certain commonly used tasks. I think too
that it's probably not worth spending the time reinwenting the wheel
with RBAC when you can use sudo but for certain corner cases RBAC
might still be useful.

-- 
Akop Pogosian
This space has been accidentally left blank.


Relevant Pages

  • Re: Delete ACLs for a whole domain
    ... If you consider a whole filesystem, with a big number of folders and subfolders with specific ACLs, I need a command to remove all the OLDDOMAIN entries. ... Their filesystems now have ACLs ...
    (microsoft.public.win2000.active_directory)
  • RE: Data Migration
    ... If you want to replace NT ACLs with 2k3 ACLs, you can use SubInACL tool. ... " on the Microsoft Web site at ... you can use the following command below. ...
    (microsoft.public.windows.server.migration)
  • Re: Delete ACLs for a whole domain
    ... > I solved using the command SETACL. ... Herb Martin, MCSE, MVP ... >> By deleting all ACL entries belonging to OLDDOMAIN, ... >> Note that I do not have to migrate ACLs from OLDDOMAIN to NEWDOMAIN, ...
    (microsoft.public.win2000.active_directory)
  • Re: wsh, bat, win2003, ASP
    ... > It works fine if I type it manually via the command prompt. ... ACLS on CSCRIPT.EXE changed ... the code you have in the VBS file can be placed in an ASP file ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.wsh)