1833016 Members
3399 Online
110048 Solutions
New Discussion

problems with sudoers

 
KOGOE
Advisor

problems with sudoers

I've download sudo but I have some problem
with sudoers; I've edit sudoers by visudo and enter aliases :
line 8 # Host alias specification
line 9 Host_Alias TRANS = 10.10.10.3
...
But the problem is that I've the following error :
Warning: undeclared Host_Alias `TRANS' referenced near line 9
>>> sudoers file: syntax error, line 8 <<<
I dont know the raison of that error; could someone help me please!
Thank U in advance
8 REPLIES 8
Arunvijai_4
Honored Contributor

Re: problems with sudoers

Hello,

Check this thread,

http://www.moderngigabyte.net/modernbill/forums/showthread.php?t=3632&page=2

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: problems with sudoers

Can you resolve that ip address??

nslookup 10.10.10.3
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: problems with sudoers

Shalom Kogoe,

Just for grins, copy the sudoers file to a backup and take out line 8. Its complaining about syntax and thats probably before line 8.

If you are new to the tool, perhaps try a simpler configuration, which would involve just what users get to use what applications that normally require root privs.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Godron
Honored Contributor

Re: problems with sudoers

Hi,
have a look at:
http://www.sudo.ws/sudo/man/sudoers.html

May I also suggest you start assigning points: 0 points for 18 reponses

If you are unsure how to:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Ivan Ferreira
Honored Contributor

Re: problems with sudoers

Use cat -e /etc/sudoers to verify for non printable characters that may be creating problems with your configuration. Ensure that no extra or unfinished "," or "\" is in your file.

With cat -e the file should look like:

$
Host_Alias IAS = hostname_of_ias$
$
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
KOGOE
Advisor

Re: problems with sudoers

Ok I see the problem : mabye you could face it one day : it was a problem of space before keywords Host_Alias,User_Alias,Cmnd_Alias ... and so on; I've deleted the space and it work very well;
Thanks
Peter Godron
Honored Contributor

Re: problems with sudoers

Muthukumar_5
Honored Contributor

Re: problems with sudoers

You have not assigned a single point to your questions?!

Hope you know the way to assign points to your questions. Read guidline document.

--
Muthu
Easy to suggest when don't know about the problem!