[SunHELP] Re: Urgent !! Help , Can Login on SUN OS 5.7
Prashant Desai
pressy_sun at yahoo.com
Tue Feb 4 04:11:10 CST 2003
did truss -o test-su /usr/bin/su
attached is the out-put file generated by truss can u
pls tell me what the problem is
warm regards
Prashant
--- "Christopher L. Barnard" <cbar44 at tsg.cbot.com>
wrote:
> truss /usr/bin/su to find out what it is looking
> for..
>
> Ah, I see in your email that you are learning
> solaris. /usr/bin/truss
> is the program that will show (in a lot more detail
> than you usually
> need) what a binary is doing, and in particular what
> files it needs. It
> will most likely show that it is hanging on an
> open() command on a file
> that does not exist.
>
>
+-----------------------------------------------------------------------+
> | Christopher L. Barnard O When I was a
> boy I was told that |
> | cbarnard at tsg.cbot.com / \ anybody could
> become president. |
> | (312) 347-4901 O---O Now I'm
> beginning to believe it. |
> | http://www.cs.uchicago.edu/~cbarnard
> --Clarence Darrow |
> +----------PGP public key available via finger or
> PGP keyserver---------+
>
> > Hi
> >
> > i am running Sun os 5.7 , it was working great
> till
> > now , but since last 2 days i am facing wiered
> > problem,
> >
> > i am not able to "su -" to the system , i can
> telnet
> > on the system and login with normal uid , but when
> i
> > gives "su -" it asks for password , and then just
> gets
> > hang no responce at all , even i tried going to
> the
> > terminal and tried to open the console/terminal
> window
> > locally on the mechine but that also is not
> working
> >
> > can some one tell me what could be the reason for
> this
> > and how can i restore it back to normal state
> >
> >
> > pls reply asap
> > as m really in big problem as m still learning
> solaris
> > and new to it
> >
> > regards
> > Prashant
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> > _______________________________________________
> > sunmanagers mailing list
> > sunmanagers at sunmanagers.org
> >
>
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
execve("/usr/bin/su", 0xFFBEF4E4, 0xFFBEF4EC) argc = 1
stat("/usr/bin/su", 0xFFBEF1D8) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
open("/usr/local/lib/libcrypt_i.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libcrypt_i.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF3A0000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF380000
mmap(0xFF390000, 8796, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
munmap(0xFF382000, 57344) = 0
memcntl(0xFF380000, 4140, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libcmd.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libcmd.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF360000
mmap(0xFF372000, 3915, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 8192) = 0xFF372000
munmap(0xFF364000, 57344) = 0
memcntl(0xFF360000, 4764, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libbsm.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libbsm.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00000000, 147456, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF330000
mmap(0xFF350000, 9968, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 65536) = 0xFF350000
munmap(0xFF342000, 57344) = 0
memcntl(0xFF330000, 23264, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libmp.so.2", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libmp.so.2", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF310000
mmap(0xFF322000, 3993, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 8192) = 0xFF322000
munmap(0xFF314000, 57344) = 0
open("/dev/zero", O_RDONLY) = 4
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF300000
memcntl(0xFF310000, 3380, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libsocket.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libsocket.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00000000, 106496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF2E0000
mmap(0xFF2F6000, 11073, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 24576) = 0xFF2F6000
munmap(0xFF2E8000, 57344) = 0
memcntl(0xFF2E0000, 14492, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libnsl.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libnsl.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00000000, 663552, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF200000
mmap(0xFF290000, 34748, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 524288) = 0xFF290000
mmap(0xFF29A000, 24696, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF29A000
munmap(0xFF282000, 57344) = 0
memcntl(0xFF200000, 88928, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libdl.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
close(3) = 0
open("/usr/local/lib/libpam.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libpam.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF2D0000
mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF2B0000
mmap(0xFF2C4000, 8411, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF2C4000
munmap(0xFF2B6000, 57344) = 0
memcntl(0xFF2B0000, 6564, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libc.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF2D0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF2D0000
mmap(0x00000000, 778240, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF100000
mmap(0xFF1B4000, 32112, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 671744) = 0xFF1B4000
mmap(0xFF1BC000, 5592, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF1BC000
munmap(0xFF1A6000, 57344) = 0
memcntl(0xFF100000, 131844, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libgen.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libgen.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEF74) = 0
mmap(0xFF2D0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF2D0000
mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF1E0000
mmap(0xFF1F4000, 9847, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF1F4000
munmap(0xFF1E6000, 57344) = 0
memcntl(0xFF1E0000, 7976, MC_ADVISE, 0x0003, 0, 0) = 0
close(3) = 0
open("/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEDDC) = 0
mmap(0xFF2D0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF2D0000
mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF1D0000
close(3) = 0
close(4) = 0
munmap(0xFF2D0000, 8192) = 0
brk(0x00024E30) = 0
brk(0x00026E30) = 0
open("/etc/default/su", O_RDONLY) = 3
llseek(3, 0, SEEK_CUR) = 0
llseek(3, 0, SEEK_SET) = 0
fstat64(3, 0xFFBEF2C0) = 0
brk(0x00026E30) = 0
brk(0x00028E30) = 0
ioctl(3, TCGETA, 0xFFBEF24C) Err#25 ENOTTY
read(3, " # i d e n t\t " @ ( # )".., 8192) = 703
llseek(3, 0xFFFFFFFFFFFFFDD7, SEEK_CUR) = 150
llseek(3, 0, SEEK_SET) = 0
read(3, " # i d e n t\t " @ ( # )".., 8192) = 703
read(3, 0x0002615C, 8192) = 0
llseek(3, 0, SEEK_CUR) = 703
llseek(3, 0, SEEK_SET) = 0
read(3, " # i d e n t\t " @ ( # )".., 8192) = 703
read(3, 0x0002615C, 8192) = 0
llseek(3, 0, SEEK_CUR) = 703
llseek(3, 0, SEEK_SET) = 0
read(3, " # i d e n t\t " @ ( # )".., 8192) = 703
read(3, 0x0002615C, 8192) = 0
llseek(3, 0, SEEK_CUR) = 703
llseek(3, 0, SEEK_SET) = 0
read(3, " # i d e n t\t " @ ( # )".., 8192) = 703
llseek(3, 0, SEEK_CUR) = 703
close(3) = 0
fstat64(0, 0xFFBEF380) = 0
ioctl(0, TCGETA, 0xFFBEF25C) = 0
stat64("/dev/tty", 0xFFBEF2E8) = 0
stat64("/dev/console", 0xFFBEF2E8) = 0
stat64("/dev/conslog", 0xFFBEF2E8) = 0
stat64("/dev/syscon", 0xFFBEF2E8) = 0
stat64("/dev/systty", 0xFFBEF2E8) = 0
stat64("/dev/wscons", 0xFFBEF2E8) = 0
open("/etc/ttysrch", O_RDONLY) = 3
stat64("/etc/ttysrch", 0xFFBEF1D8) = 0
read(3, " # i d e n t\t " @ ( # )".., 1408) = 1408
close(3) = 0
stat64("/dev/pts/14", 0xFFBEF1D8) = 0
fstat64(0, 0xFFBEF1A8) = 0
ioctl(0, TCGETA, 0xFFBEF084) = 0
stat64("/dev/tty", 0xFFBEF110) = 0
stat64("/dev/console", 0xFFBEF110) = 0
stat64("/dev/conslog", 0xFFBEF110) = 0
stat64("/dev/syscon", 0xFFBEF110) = 0
stat64("/dev/systty", 0xFFBEF110) = 0
stat64("/dev/wscons", 0xFFBEF110) = 0
open("/etc/ttysrch", O_RDONLY) = 3
stat64("/etc/ttysrch", 0xFFBEF000) = 0
read(3, " # i d e n t\t " @ ( # )".., 1408) = 1408
close(3) = 0
stat64("/dev/pts/14", 0xFFBEF000) = 0
open("/var/adm/utmpx", O_RDONLY) = 3
fstat64(3, 0xFFBEF0E8) = 0
ioctl(3, TCGETA, 0xFFBEF074) Err#25 ENOTTY
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192) = 8192
llseek(3, 0xFFFFFFFFFFFFFFF8, SEEK_CUR) = 8184
close(3) = 0
open64("/var/adm/utmp", O_RDONLY) = 3
llseek(3, 756, SEEK_SET) = 756
read(3, " r o o t\0\0\0\0 1 4\0\0".., 36) = 36
close(3) = 0
open("/var/adm/sulog", O_WRONLY|O_APPEND|O_CREAT, 0600) = 3
close(3) = 0
chown("/var/adm/sulog", 0, 0) = 0
stat64("/etc/pam_debug", 0xFFBEF380) Err#2 ENOENT
stat64("/etc/pam.conf", 0xFFBEF208) = 0
open("/etc/pam.conf", O_RDONLY) = 3
mmap(0x00000000, 861, PROT_READ, MAP_PRIVATE, 3, 0) = 0xFF2D0000
munmap(0xFF2D0000, 861) = 0
close(3) = 0
uname(0x00024190) = 1
auditsys(BSM_AUDITCTL, 0x00000014) Err#22 EINVAL
fstat(-1, 0xFFBEF390) Err#9 EBADF
sigaction(SIGQUIT, 0xFFBEF358, 0xFFBEF3D8) = 0
sigaction(SIGINT, 0xFFBEF358, 0xFFBEF3D8) = 0
open64("/etc/.name_service_door", O_RDONLY) = 3
fcntl(3, F_SETFD, 0x00000001) = 0
door_info(3, 0xFF1BC340) = 0
door_call(3, 0xFFBEEF48) = 0
getuid() = 0 [0]
getuid() = 0 [0]
fstat(-1, 0xFFBEE760) Err#9 EBADF
open("/dev/conslog", O_WRONLY) = 4
fcntl(4, F_SETFD, 0x00000001) = 0
fstat(4, 0xFFBEE760) = 0
fstat(4, 0xFFBEF1C0) = 0
time() = 1044353323
putmsg(4, 0xFFBEE878, 0xFFBEE86C, 0) = 0
open("/etc/.syslog_door", O_RDONLY) = 5
door_info(5, 0xFFBEE7B0) Err#9 EBADF
close(5) = 0
sigfillset(0xFF1BC4C4) = 0
sigprocmask(SIG_BLOCK, 0xFFBEE85C, 0xFFBEE84C) = 0
fork() = 4118
waitid(P_PID, 4118, 0xFFBEE768, 0403 ) (sleeping...)
More information about the SunHELP
mailing list