Gurus,
Any idea why a hostname command returns 0? none of the files are changed..
pasting partial output of truss from the end..
brk(0x0003A1B8) = 0
brk(0x0003A3B8) = 0
stat("/platform/SUNW,Sun-F
ire-280R/l
ib/libc_ps
r.so.1", 0xFFBFF378) = 0
resolvepath("/platform/SUN
W,Sun-Fire
-280R/lib/
libc_psr.s
o.1", "/platform/sun4u-us3/lib/l
ibc_psr.so
.1", 1023) = 37
open("/platform/SUNW,Sun-F
ire-280R/l
ib/libc_ps
r.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF260000
munmap(0xFF262000, 24576) = 0
close(3) = 0
brk(0x0003A5B8) = 0
brk(0x0003A7B8) = 0
getuid() = 0 [0]
getuid() = 0 [0]
getgid() = 0 [0]
getgid() = 0 [0]
open64("/bin/hostname", O_RDONLY) = 3
close(19) Err#9 EBADF
fcntl(3, F_DUPFD, 0x00000013) = 19
close(3) = 0
fcntl(19, F_SETFD, 0x00000001) = 0
ioctl(2, TCGETA, 0xFFBFFA44) = 0
ioctl(19, TCGETA, 0xFFBFFA44) Err#25 ENOTTY
read(19, " # ! / u s r / b i n / s".., 128) = 128
read(19, " C E C O D E O F A".., 128) = 128
read(19, " y r i g h t ( c ) 1".., 128) = 128
read(19, " N = S U N W _ O S T _ O".., 128) = 128
read(19, " b i n / g e t t e x t ".., 128) = 49
schedctl() = 0xFF254000
0
fork1() = 476
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
waitid(P_PID, 476, 0xFFBFF870, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF88C) = 0
ioctl(0, TCGETS, 0x00039178) = 0
waitid(P_PID, 476, 0xFFBFF870, WEXITED|WTRAPPED) = 0
read(19, 0x00039610, 128) = 0
ioctl(19, TCGETA, 0xFFBFF9DC) Err#25 ENOTTY
ioctl(19, TCGETA, 0xFFBFFA3C) Err#25 ENOTTY
close(19) = 0
_exit(0)
...
0 # hostname
0
0 #
0 # cat /etc/hostname.eri0
tester
0 # cat /etc/nodename
tester
0 # grep tester /etc/hosts
xxx.xx.xx.xxx tester
0 #
Start Free Trial