Advanced permissions/user properties
Alex Burger
alex_b at users.sourceforge.net
Sat Nov 4 22:07:51 CET 2006
Alex Burger wrote:
> The more I think about it, the more I think we are looking at this the
> wrong way. With file system or application permissions, we would assign
> a group to a folder/object, and then pick what rights the group would
> have. Why don't we do the same thing with Nagios?
>
> Leave the groups as they are, but modify the host and service
> contact_groups command? For example:
>
> define host{
> host_name localhost
> contact_groups netops:rw, helpdesk:r
> }
>
> For backwards compatibility, if no permissions are set, the defaults
> would be rw so the following would be the same:
>
> define host{
> host_name localhost
> contact_groups netops, helpdesk:r
> }
>
> If a user was in both the netops and helpdesk group, the user should
> have rw access.
>
> This will take a bit more work to implement, but I think it makes more
> sense. What do you think?
>
> Alex
Attached is a patch for 2.5 that implements what I described above. It
works on both hosts and services.
The following four lines are are examples of read/write access for
netops and helpdesk:
contact_groups netops, helpdesk
contact_groups netops, helpdesk:rw
contact_groups netops:rw, helpdesk
contact_groups netops:rw, helpdesk:rw
The following two lines are are examples of read/write access for netops
and read only (view only) for helpdesk:
contact_groups netops, helpdesk:r
contact_groups netops:rw, helpdesk:r
Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-group-perms3
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061104/060f5281/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list