Originally posted by: SystemAdmin
Hello,
I ran gencore on a process whose "s-bit" is set on AIX 5.3 (oslevel 5300-00).
when running the gencore command, I got an error message saying "gencore : Not Owner"(EPERM) I am not the owner. This happened also when I was root.
gencore worked fine on AIX 6.1 for the same process whose s-bit is set.
here is the truss o/p for the same operation
=================================================================================================================
bash-3.00$ truss -eflda -rall -wall -u
:: gencore 688286 core.688286 684176: 1060911: 0.0006: execve("/usr/bin/gencore", 0x2FF22AF4, 0x2FF22B04) argc: 3
684176: 1060911: argv: gencore 688286 core.688286
684176: 1060911: envp: AUTHSTATE=compat UNAME=AIX TERM=xterm SHELL=/usr/bin/ksh
.
.
.
.
684176: 1060911: ->libc.a:strlen()
684176: 1060911: <-libc.a:strlen() = b 0.000000
684176: 1060911: ->libc.a:atoi(0x2ff22ba0)
684176: 1060911: <-libc.a:atoi() = a809e 0.000000
684176: 1060911: 2.0228: gencore(0x2FF22A60, 0x00000063, 0x0069062C, 0x00000059, 0xF03B5D58, 0x00000000, 0x38360041, 0x00008000) (sleeping...)
684176: 1060911: 2.0228: gencore(0x2FF22A60, 0x00000063, 0x0069062C, 0x00000059, 0xF03B5D58, 0x00000000, 0x38360041, 0x00008000) Err#1 EPERM
684176: 1060911: ->libc.a:perror(0x20000564)
684176: 1060911: ->libc.a:strlen()
684176: 1060911: <-libc.a:strlen() = 8 0.000000
gencore:684176: 1060911: kwrite(2, 0x20000564, 8) = 8
684176: g e n c o r e :
: 684176: 1060911: kwrite(2, 0xF03BC108, 2) = 2
684176: :
684176: 1060911: ->libc.a:strlen()
684176: 1060911: <-libc.a:strlen() = 9 0.000000
Not owner684176: 1060911: kwrite(2, 0x2FF20A10, 9) = 9
684176: N o t o w n e r
684176: 1060911: kwrite(2, 0xF03BC100, 1) = 1
684176: \n
684176: 1060911: <-libc.a:perror() = 2ff22ff8 0.000000
684176: 1060911: ->libc.a:exit(0x1)
684176: 1060911: 28.4500: kfcntl(1, F_GETFL, 0x2FF22FFC) = 2
684176: 1060911: 28.4504: kfcntl(2, F_GETFL, 0x00000000) = 2
684176: 1060911: 28.4507: _exit(1)
bash-3.00$
=================================================================================================================
Any suggestions as to what I could do?
Thanks,
Sushil.
#AIX-Forum