On 30.09.2009 02:40, Darshaka Pathirana wrote: > On 30.09.2009 02:32, Darshaka Pathirana wrote: >> Hi! >> >> I have something like this: >> >> <file> >> #! /bin/sh >> ainsl -a $target/etc/sudoers "%adm ALL = NOPASSWD: /bin/su -[mp]" >> exit 0 >> </file> >> >> Got the expected output (in /etc/sudoers without LINE): >> >> %adm ALL = NOPASSWD: /bin/su -[mp] >> >> Running again (now containing LINE) leads to: >> >> %adm ALL = NOPASSWD: /bin/su -[mp] >> %adm ALL = NOPASSWD: /bin/su -[mp] >> >> (I obviously exptected no adding..) >> >> I then tried: >> >> ainsl -a $target/etc/sudoers "%adm ALL = NOPASSWD: /bin/su -\[mp\]" > > Oops. Forgot to take the shell into account: > > ainsl -a $target/etc/sudoers "%adm ALL = NOPASSWD: /bin/su -\\[mp\\]"
Quagl. This same line fails on a different machine (but also Debian/Lenny but not created with FAI - shell is also bash). Using fai-client 3.2.17~lenny1 and then 3.2.20.1. I am out of options (or maybe its just too late to work on this). Any help greatly appreciated. Thanks! Greetings, - Darsha