[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sudo-users
Subject:    Re: [sudo-users] Defaults:user
From:       Victor Engle <victor.engle () gmail ! com>
Date:       2017-02-03 12:18:11
Message-ID: CABLWypOw3FM=ezn+U615--qJvXZi2aNU8_O6ShngJ0ucZvqzsA () mail ! gmail ! com
[Download RAW message or body]

Thanks Todd. I agree on the user aliases. I'm just trying to cover all the
bases in parsing a file I may not have created.

Vic

On Thu, Feb 2, 2017 at 5:59 PM Todd C. Miller <Todd.Miller@courtesan.com>
wrote:

> On Thu, 02 Feb 2017 18:36:43 +0000, Victor Engle wrote:
>
> > I read the man page but I'm a little confused about the format for
> > Defaults:user. In particular, I want to be able to parse the line, pull
> out
> > the users and validate them, then reconstruct the line minus invalid
> users.
> >
> > If a list of users is specified how are the users in the list delimited
> and
> > how is the user list delimited from the parameter at the end of the
> entry?
>
> The list is delimited so you can do things like:
>
> Defaults:bob,alice,joe  !authenticate
>
> But it is probably easier to read/maintain if you use a User_Alias,
> e.g.
>
> User_Alias FULLTIMERS = bob, alice, joe
> Defaults:FULLTIMERS     !authenticate
>
>  - todd
>
____________________________________________________________
sudo-users mailing list <sudo-users@sudo.ws>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic