problems with PATTERN/LINE in ainsl(1)

Darshaka Pathirana dpat at syn-net.org
Wed Sep 30 09:52:49 CEST 2009


On 30.09.2009 09:02, Juergen Kahnert wrote:
> Hi,
> 
> On Wed, Sep 30, 2009 at 03:06:41AM +0200, Darshaka Pathirana wrote:
>>>> ainsl -a $target/etc/sudoers "%adm ALL = NOPASSWD: /bin/su -[mp]"
>> Any help greatly appreciated. Thanks!
> 
> try this as a quick workaround:
> 
>     ainsl -a $target/etc/sudoers '%adm ALL = NOPASSWD: /bin/su -[mp]' '^%adm ALL = NOPASSWD: /bin/su -.mp.$'

Thx very much. Figured that out a bit later (but was to lazy to post
it here).

Nevertheless the question is: is it a mistake on my side?

Greetings,
 - Darsha



More information about the linux-fai mailing list