Thanks for that. I realised I made a silly mistake in not running sudo before doing the commands (oops)<br><br><div class="gmail_quote">2008/10/24 Roger Downing <span dir="ltr"><<a href="mailto:roger.downing@stfc.ac.uk">roger.downing@stfc.ac.uk</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Thursday 23 October 2008 22:39:37 Stuart Burns wrote:<br>

> Hi everyone,<br>
><br>
> Hopefully a quickish question.<br>
><br>
> I'm trying to set up sudoer file but failing badly.<br>
><br>
> I am running suse SLES 10.2 but hitting a problem.<br>
><br>
> I have a user called adam ;) that I want to allow to run the sudo command,<br>
> via the sudoer file....<br>
><br>
> However trying to make it work, fails miserably.<br>
><br>
> Can anyone who has 5 mins post a proper sudoer file ?<br>
><br>
> Regards<br>
><br>
> Stuart.<br>
><br>
</div></div>The most basic rule, which would allow a named user to run any command as root, would be:<br>
adam    ALL=(ALL) ALL<br>
<br>
This permits user adam, logged in at any host (this allows for shared sudoers files across many machines), to run any command as any user.<br>
<br>
Are you using the 'visudo' command to do the editing of the /etc/sudoers file? This will validate the file each time.<br>
<br>
As requested, here is a working but basic one straight from ubuntu 8.04:<br>
--- SNIP ---<br>
<br>
# /etc/sudoers<br>
#<br>
# This file MUST be edited with the 'visudo' command as root.<br>
#<br>
# See the man page for details on how to write a sudoers file.<br>
# Host alias specification<br>
<br>
# User alias specification<br>
<br>
# Cmnd alias specification<br>
<br>
# Defaults<br>
<br>
Defaults        !lecture,tty_tickets,!fqdn<br>
<br>
# User privilege specification<br>
root    ALL=(ALL) ALL<br>
<br>
# Members of the admin group may gain root privileges<br>
%admin ALL=(ALL) ALL<br>
<br>
--- SNIP ---<br>
<br>
--<br>
Roger Downing<br>
SRB Systems Manager<br>
STFC<br>
Daresbury Laboratories<br>
Keckwick Lane<br>
Warrington<br>
WA4 4AD<br>
<br>
Tel: 01925 603937<br>
Mbl: 07880 736154<br>
<br>
_______________________________________________<br>
Chester mailing list<br>
<a href="mailto:Chester@mailman.lug.org.uk">Chester@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/chester" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/chester</a><br>
</blockquote></div><br>