AIX: Solved: gencore:: Not owner
I have encountered an interesting issue or error while generating gencore on an AIX server.
Lets see the error and solution details below.
Error Details
ngeunix003> gencore 12583030 ../core.dmp gencore:: Not owner ngeunix003--> gencore 12583030 ../core.dmp ngeunix003-->
Investigation
ngeunix003--> ls -l /usr/bin/gencore -r-xr-xr-x 1 bin bin 2566 Aug 4 2016 /usr/bin/gencore ngeunix003--> /usr/bin/gencore Usage: gencore gencore:: Invalid argument ngeunix003--> /usr/bin/gencore 12583030 core.12583030 gencore:: Not owner ngeunix003--> /usr/bin/gencore 12583030 core.12583030 gencore:: Not owner ### try to debug this command. ngeunix003--> truss gencore 5308588 /usr/SE/corefiles/5308588core.dmp execve("/usr/bin/gencore", 0x2FF22B24, 0x20015668) argc: 3 read_sysconfig(0xF0620768, 0x00000010, 0xFFFFFFFD, 0x10000000, 0x200005F0, 0x00000080, 0x06010000, 0xF0692F00) = 0x00000000 gencore(0x2FF22A60, 0x2FF22BC2, 0xF0618A10, 0x00000000, 0x005100AC, 0x70005F3D, 0x00000072, 0x2FF22BE8) Err#1 EPERM gencore:kwrite(2, " g e n c o r e :", 8) = 8 : kwrite(2, " : ", 2) = 2 Not ownerkwrite(2, " N o t o w n e r", 9) = 9 kwrite(2, "\n", 1) = 1 kfcntl(1, F_GETFL, 0x2FF22FFC) = 67110914 kfcntl(2, F_GETFL, 0x2FF22FFC) = 67110914 _exit(1)
Solution
ngeunix003--> chown root /usr/bin/gencore ngeunix003-->