|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo error | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Craig Back <cback> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | CC: | cback |
| Priority: | normal | ||
| Version: | 1.6.4 | ||
| Hardware: | Sun | ||
| OS: | Other | ||
I can't tell what the problem is from this info (and it is not clear that this is a sudo problem). If you attach the script (or at least the part that uses sudo) to this bug report I might be able to make a guess. Not enough information to debug this problem. |
If trying to execute a Veritas command as root and I'm getting the following error. [amx1qm1]-devlab # su - aoc $ hastatus sh: /var/VRTSvcs/lock/10462.outhastatus: restricted Unable to open temporary file. Veritas seems to think it's a sudo error. Could you take a look at this truss output? $ truss hastatus execve("/rusers/bin/hastatus.sh", 0xFFBEFEAC, 0xFFBEFEB8) argc = 2 stat("/rusers/bin/hastatus.sh", 0xFFBEFBA0) = 0 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT open("/usr/lib/libgen.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF93C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF3A0000 mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF380000 mmap(0xFF394000, 9847, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF394000 munmap(0xFF386000, 57344) = 0 memcntl(0xFF380000, 7976, MC_ADVISE, 0x0003, 0, 0) = 0 close(3) = 0 open("/usr/lib/libc.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF93C) = 0 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00000000, 770048, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF280000 mmap(0xFF332000, 33380, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 663552) = 0xFF332000 munmap(0xFF324000, 57344) = 0 memcntl(0xFF280000, 131700, MC_ADVISE, 0x0003, 0, 0) = 0 close(3) = 0 open("/usr/lib/libdl.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF93C) = 0 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 close(3) = 0 open("/usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF7A4) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF370000 mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF360000 close(3) = 0 open("/dev/zero", O_RDONLY) = 3 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF350000 close(3) = 0 munmap(0xFF370000, 8192) = 0 getpid() = 10689 [10688] getpgid(10689) = 2019 getsid(10689) = 2019 brk(0x00039090) = 0 sysconfig(_CONFIG_SIGRT_MIN) = 38 sysconfig(_CONFIG_SIGRT_MAX) = 45 sigaltstack(0xFFBEFDA4, 0x00000000) = 0 sigaction(SIGHUP, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGHUP, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGINT, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGINT, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGQUIT, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGQUIT, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGILL, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGILL, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGTRAP, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGTRAP, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGABRT, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGABRT, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGEMT, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGEMT, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGFPE, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGFPE, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGBUS, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGBUS, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGSEGV, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGSYS, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGSYS, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGPIPE, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGPIPE, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGALRM, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGALRM, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGTERM, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGTERM, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGUSR1, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGUSR1, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGUSR2, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGUSR2, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGPWR, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGPWR, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGURG, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGURG, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGPOLL, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGPOLL, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGVTALRM, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGVTALRM, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGPROF, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGPROF, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGXCPU, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGXCPU, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGXFSZ, 0x00000000, 0xFFBEFD20) = 0 sigaction(SIGXFSZ, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMIN, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMIN+1, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMIN+2, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMIN+3, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMAX-3, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMAX-2, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMAX-1, 0xFFBEFC80, 0xFFBEFD00) = 0 sigaction(SIGRTMAX, 0xFFBEFC80, 0xFFBEFD00) = 0 getuid() = 1005 [1005] getuid() = 1005 [1005] getgid() = 1 [1] getgid() = 1 [1] open64("/rusers/bin/hastatus", 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, 0xFFBEFCCC) = 0 ioctl(19, TCGETA, 0xFFBEFCCC) Err#25 ENOTTY read(19, " # ! / b i n / s h\n\n s".., 128) = 51 brk(0x00039290) = 0 getuid() = 1005 [1005] stat64("/rusers/bin/sudo", 0xFFBEFA50) = 0 access("/rusers/bin/sudo", 9) = 0 fork() = 10690 sh: /var/VRTSvcs/lock/10690.outhastatus: restricted Unable to open temporary file. waitid(P_PID, 10690, 0xFFBEFBC8, WEXITED|WTRAPPED|WNOWAIT) = 0 ioctl(0, TIOCGPGRP, 0xFFBEFB84) = 0 ioctl(0, TCGETS, 0x0003836C) = 0 waitid(P_PID, 10690, 0xFFBEFBC8, WEXITED|WTRAPPED) = 0 read(19, 0x00038478, 128) = 0 ioctl(19, TCGETA, 0xFFBEFC64) Err#25 ENOTTY ioctl(19, TCGETA, 0xFFBEFCC4) Err#25 ENOTTY close(19) = 0 llseek(0, 0, SEEK_CUR) = 259143 _exit(0) Thanks, Craig