SUMMARY (sort of): sudo hangs looking for /net/root.sh

From: JESSE CARROLL (jesse-carroll@usa.net)
Date: Thu Sep 20 2007 - 15:42:03 EDT


Thanks to those who quickly responded, especially Matthew Stier and Francisco
Roque who suggested looking at the /net automount. Disabling autofs allowed
the sudo command to finish as anticipated, but that is not a real solution as
I use /net to access other systems without going through NFS mount bother. I
tested several levels of 1.6.9 and all had the same issue. The latest,
1.6.8p9, does not have this issue and does not lstat lots of things for
root.sh. Therefore, the program was not hacked and does not need a recompile.
The lstat for root.sh must be a new "feature" for 1.6.9. So I'm going to use
1.6.8 for now.

JC

------ Original Message ------
Received: Thu, 20 Sep 2007 03:10:07 PM EDT
From: "JESSE CARROLL" <jesse-carroll@usa.net>
To: <sunmanagers@sunmanagers.org>
Subject: sudo hangs looking for /net/root.sh

Situation:

Sol 10 - 0807 on SPARC
Sudo version 1.6.9p5 from sunfreeware.com

As any valid sudo user, including root, run: 'sudo ls' (or any other command)
Command hangs a bit, but completes. If same command run immediately after
first completes, no hang. If run after a bit (at least 15 seconds) hangs
again. Truss of sudo shows a long pause running lstat for /net/root.sh. Any
ideas?

Base time stamp: 1190314826.5460 [ Thu Sep 20 19:00:26 GMT 2007 ]
 0.0000 execve("/usr/local/bin/sudo", 0xFFBFFE8C, 0xFFBFFE98) argc = 2
<snip uninteresting stuff>
 0.0500 getdents64(5, 0xFF2F4000, 8192) = 664
 0.0503 lstat("/lost+found/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0505 lstat("/var/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0507 lstat("/usr/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0510 lstat("/etc/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0512 lstat("/bin/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0514 lstat("/dev/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0516 lstat("/lib/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0518 lstat("/mnt/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0520 lstat("/opt/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0522 lstat("/proc/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0524 lstat("/sbin/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0527 lstat("/system/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0529 lstat("/tmp/root.sh", 0xFFBFC2D8) = 0
 0.0531 lstat("/platform/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0533 lstat("/kernel/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0535 lstat("/devices/root.sh", 0xFFBFC2D8) Err#2 ENOENT
 0.0537 lstat("/export/root.sh", 0xFFBFC2D8) Err#2 ENOENT
lstat("/net/root.sh", 0xFFBFC2D8) (sleeping...)
30.0715 lstat("/net/root.sh", 0xFFBFC2D8) Err#2 ENOENT
30.0731 lstat("/home/root.sh", 0xFFBFC2D8) Err#2 ENOENT
30.0744 lstat("/vol/root.sh", 0xFFBFC2D8) Err#2 ENOENT
30.0747 getdents64(5, 0xFF2F4000, 8192) = 0
<command completes>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:20 EDT