SUMMARY: sudo: cannot open socket: Invalid argument

From: Chris Ruhnke <>
Date: Sun May 04 2008 - 17:35:14 EDT
Multiple responses, but none of them hit the target.

Indeed the problem turned out to be related to the in the 
/usr/local/lib directory.
There was no LD_LIBRARY_PATH defined so this must be one of the "default" 

When I removed this entry by renaming it, sudo began to work and mapped 
the socket library in /usr/lib.

I have no idea where the local version of the socket library came from.
I will leave things as they are and see if anyone complains.

Chris Ruhnke
Mid-Range Server Support
----- Forwarded by Chris Ruhnke/St Louis/IBM on 05/04/2008 04:21 PM -----

Chris Ruhnke/St Louis/IBM 
05/02/2008 09:56 AM


Update: sudo: cannot open socket: Invalid argument

To all who have asked the obvious questions...

- Yes, the file ownership is root:root
- Yes, the setuid bit is on -- mod = ---s--x--x

The checksums between working server and the non-working server match.

Several folks made recommendations to check the load libraries and we may 
have something there!


homer # ldd `which sudo` =>   /usr/lib/ =>    /usr/lib/ =>        /usr/local/lib/   <--- (SISCD_2.3) =>    (version not found)     <--- =>   /usr/lib/ =>     /usr/lib/ =>    /usr/lib/


pollux# ldd `which sudo` =>   /usr/lib/ =>    /usr/lib/ =>        /usr/lib/         <--- =>   /usr/lib/ =>     /usr/lib/ =>    /usr/lib/

Note that the working server points the library to the 
module in /use/lib while the failing server uses /use/local/lib.  I also 
have no idea where the (SISCD_2.3) module comes from on the failing 

At least I have something to research now!

Will summarize when I resolve.

Chris Ruhnke
Mid-Range Server Support

Original posting:

On Thu, 1 May 2008, Chris Ruhnke wrote:

This is an unusual one, for me at least...

Inherited server -- isn't that the was too many of these get started!

# uname -a
SunOS homer 5.6 Generic_105181-17 sun4m sparc SUNW,SPARCstation-10

Trying to run sudo and it doesn't start.  Displays the message:

# sudo -V
sudo: cannot open socket: Invalid argument

Have tried copying over a known good sudo image from another server
allegedly running the exact same patch level of Solaris 5.6 and get the
same results.

Have searched the sunmanagers archives with no hits.
Have Googled the web with no hits.

Anybody have an idea what the problem might be?
sunmanagers mailing list
Received on Sun May 4 17:36:03 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:10 EST