1843334 Members
3640 Online
110214 Solutions
New Discussion

Configuring SUDO

 
SOLVED
Go to solution
Oscar Garcia
Regular Advisor

Configuring SUDO

Hi guys,

I am trying to implement sudo in my 11.11 system and I am hitting problems...

First at all, I installed the software using sam and I have got the usual errors. I tryied to do my homework and followed the intructions in the http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=620312

Basically what I did was:
-uninstalled the software
-changed the 0 3 in the INFO file
-installed again
-changed the /usr/local/bin/sudo for 4111
-run swmodify -a state=configured sudo

Now I am trying to configure it. I imagine I do not need to run any configure or make.

The thing is I can not find any sudoers file!!!

What I have done wrong? or What I need to do? actually I was reading the Install and readme files some 'tutorials' (http://www.komar.org/pres/sudo/) but I am still confused.

What are the next steps?

Could you please help me?
9 REPLIES 9
Cheryl Griffin
Honored Contributor

Re: Configuring SUDO

You will need to configure /etc/sudoers.

Here is a sample file
http://www.courtesan.com/sudo/sample.sudoers
"Downtime is a Crime."
Nicolas Dumeige
Esteemed Contributor

Re: Configuring SUDO

Hello,

Have you tried /etc/sudoers ?

Nicolas
All different, all Unix
Geoff Wild
Honored Contributor

Re: Configuring SUDO

Use the visudoers command to setup/create /etc/sudoers

How to sudo:

http://www.siliconvalleyccie.com/linux-hn/sudo.htm

http://www.courtesan.com/sudo/man/sudo.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Oscar Garcia
Regular Advisor

Re: Configuring SUDO

Thanks guys for your answers.

I tried visudo as root but it comes with:

# visudo
sh: visudo: not found.

Do I need to set up something in the /etc/PATH?
Sridhar Bhaskarla
Honored Contributor

Re: Configuring SUDO

Hi,

If you downloaded sudo from the porting site, then visudo would be under /usr/local/sbin directory. So, ensure the profile of root has /usr/local/sbin added to the PATH. Don't put it in /etc/PATH. It's not needed for the ordinary users.

Since 'visudo' is not a regularly run command, you can smply run '/usr/locals/bin/visudo' if you don't want to put it in root's profile.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff_Traigle
Honored Contributor

Re: Configuring SUDO

visudo is installed in /usr/local/sbin. Fully qualify the path or add it to root's PATH and it should work fine. It actually edits and uses /usr/local/etc/sudo/sudoers.
--
Jeff Traigle
Oscar Garcia
Regular Advisor

Re: Configuring SUDO

Well it seems that I have got it terrible wrong...

When I run visudo it comes with this error:

# /usr/local/sbin/visudo
sh: /usr/local/sbin/visudo: Execute permission denied.

At least the file exists...

So, Do I need to chmod to 4111 or something like that?

cheers!
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Configuring SUDO

Nop. It should be 111 with root:root permissions.

If you installed it from the porting center, it's not packaged up well. Hence you have to do these adjustments.

This is part of Internet Express Package available in software.hp.com

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

You can download it and install only sudo from that package. But it is for 11i.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Oscar Garcia
Regular Advisor

Re: Configuring SUDO

Fantastic!

Well, now I am able to use visudo without problem so it is just down to the configuration reading...

They should removed that thing from the porting center, it gives just headaches. We should just installed from Internet Express Package, as Sri suggested but I taught I will need to install all those products that I do not need.

Thanks very much gentlemen for your answers I will assigning points shortly.