[sudo-users] sudo problem

Matthew Hannigan mlh at zip.com.au
Tue Sep 22 00:11:52 EDT 2009


On Mon, Sep 21, 2009 at 04:08:56PM +0800, kevan wrote:
> I have only recently loaded Linux Fedora11 onto my lap top and am having
> a small problem with sudo
> 
> I installed it using.
> 
> echo 'kevan ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

Not guaranteed to work as the last line might not have had a
trailing newline; in which case the above gets appended to the last line.


If you want to do this sort of thing, used 'ed' or some other
scriptable editor like this:

EDITOR=ed visudo <<!
$
a
kevan ALL=(ALL) NOPASSWD:ALL
.
w
q
!




More information about the sudo-users mailing list