Operating System - HP-UX
1758568 Members
2188 Online
108872 Solutions
New Discussion юеВ

sudo su - takes too long to execute.

 
KiddA
Advisor

sudo su - takes too long to execute.

Hi people!
I'm having this weird issue when trying to do "sudo su -" in a 11iv2 HPUX Itanium Server.

The thing is that it takes too long to ask me for password...

Sudo version is 1.6.9p11.

I've also tried "tusc sudo su -" to see if at some point it sleeps... but all I get are lots of lstat:

lstat("/cdrom/PHKL_32630/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32631/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32634/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32635/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32637/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32645/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32646/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32653/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32714/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_32876/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33024/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33025/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33029/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33052/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33069/emacs", 0x7fffce60) ................................. ERR#2 ENOENT
lstat("/cdrom/PHKL_33161/emacs", 0x7fffce60) ................................. ERR#2 ENOENT

these are the lasts lines:

fcntl(29, F_SETLK, 0x40005530) ............................................... ERR#13 EACCES
fstat(29, 0x7ffff7f0) ........................................................ = 0
ioctl(0, TIOCGWINSZ, 0x7ffffd30) ............................................. = 0
time(0x7ffffd2c) ............................................................. = 1209077438
lseek(29, 4060, SEEK_SET) .................................................... = 4060
read(29, 0x7ffff900, 1024) ................................................... = 0
sigprocmask(SIG_BLOCK, 0x7ffffc90, 0x7ffffcb0) ............................... = 0
sigprocmask(SIG_SETMASK, 0x7ffffcb0, NULL) ................................... = 0
sigprocmask(SIG_BLOCK, 0x7ffffc90, 0x7ffffcb0) ............................... = 0
sigprocmask(SIG_SETMASK, 0x7ffffcb0, NULL) ................................... = 0
sigprocmask(SIG_BLOCK, 0x7ffffbc0, 0x7ffffbe0) ............................... = 0
ioctl(0, TIOCGWINSZ, 0x7ffffbb0) ............................................. = 0
sigprocmask(SIG_SETMASK, 0x7ffffbe0, NULL) ................................... = 0
sigvector(SIGCLD, 0x7ffff860, 0x7ffff870) .................................... = 0
waitpid(-1, 0x7ffff890, WNOHANG|WUNTRACED) ................................... ERR#10 ECHILD
sigvector(SIGCLD, 0x7ffff860, 0x7ffff870) .................................... = 0
sigprocmask(SIG_SETMASK, 0x7fffe310, 0x7fffe330) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe310) ............................. = 0
write(2, "h b 1 p c i 1 / r o o t > ", 16) ............................. = 16
sigprocmask(SIG_SETMASK, 0x7fffe310, 0x7fffe330) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe310) ............................. = 0
ioctl(2, TCGETATTR, 0x40008ff0) .............................................. = 0
ioctl(2, TCSETATTRD, 0x40009050) ............................................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe350) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe350, 0x7fffe330) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe350) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe350, 0x7fffe330) ............................. = 0
read(0, 0x7fffe2d0, 1) ....................................................... [sleeping]

I'm attaching the tusc output for anyone who are willing to help me :P

Thanks in advance!
3 REPLIES 3
Venkatesh BL
Honored Contributor

Re: sudo su - takes too long to execute.

At what point while using 'tusc' did you notice the long pause? that would tell you where the problem is.
KiddA
Advisor

Re: sudo su - takes too long to execute.

Hi Venkatesh ... this are the lasts lines of tusc:


hb1pci1 /root > write(2, "h b 1 p c i 1 / r o o t > ", 16) ............................. = 1
sigprocmask(SIG_SETMASK, 0x7fffe310, 0x7fffe330) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe310) ............................. = 0
ioctl(2, TCGETATTR, 0x40008ff0) .............................................. = 0
ioctl(2, TCSETATTRD, 0x40009050) ............................................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe350) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe350, 0x7fffe330) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe330, 0x7fffe350) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fffe350, 0x7fffe330) ............................. = 0
read(0, 0x7fffe2d0, 1) ....................................................... [sleeping]
Received signal 23, SIGWINCH, in read(), [caught], no siginfo
read(0, 0x7fffe2d0, 1) ....................................................... = 0
sigvector(SIGWINCH, 0x7fff91e0, 0x7fff91f0) .................................. = 0
sigprocmask(SIG_BLOCK, 0x7fff90b0, 0x7fff90d0) ............................... = 0
ioctl(0, TIOCGWINSZ, 0x7fff90a0) ............................................. = 0
sigprocmask(SIG_BLOCK, 0x7fff9050, 0x7fff9070) ............................... = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, NULL) ................................... = 0
sigprocmask(SIG_SETMASK, 0x7fff9050, 0x7fff9070) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, 0x7fff9050) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9050, 0x7fff9070) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, 0x7fff9050) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff90d0, NULL) ................................... = 0
Received signal 23, SIGWINCH, in read(), [caught], no siginfo
read(0, 0x7fffe2d0, 1) ....................................................... = 0
sigvector(SIGWINCH, 0x7fff91e0, 0x7fff91f0) .................................. = 0
sigprocmask(SIG_BLOCK, 0x7fff90b0, 0x7fff90d0) ............................... = 0
ioctl(0, TIOCGWINSZ, 0x7fff90a0) ............................................. = 0
sigprocmask(SIG_BLOCK, 0x7fff9050, 0x7fff9070) ............................... = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, NULL) ................................... = 0
sigprocmask(SIG_SETMASK, 0x7fff9050, 0x7fff9070) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, 0x7fff9050) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9050, 0x7fff9070) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff9070, 0x7fff9050) ............................. = 0
sigprocmask(SIG_SETMASK, 0x7fff90d0, NULL) ................................... = 0
read(0, 0x7fffe2d0, 1) ....................................................... [sleeping]

Would sombedoy shed some light on this? THX!!!
Dennis Handly
Acclaimed Contributor

Re: sudo su - takes too long to execute.

>this are the lasts lines of tusc:
read(0, 0x7fffe2d0, 1) ....... [sleeping]

>Would somebody shed some light on this?

It is doing several 1 char reads from stdin. Did you forget to type in your password?

If you are going to use tusc, use:
tusc -fp -o tusc.out command ...