-1

Why is 'chattr' on CentOS 6 returning 'Killed'?

# chattr -i /usr/sbin
Killed

# file /usr/bin/chattr
/usr/bin/chattr: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linker (uses shared libs), for GNU/Linux 2.6.9, not 

# uname -a
Linux nameofcompany.com 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
HBruijn
  • 72,524
  • 21
  • 127
  • 192
  • 2
    Throw `strace` before that command and post anything interesting toward the end of its output. – EEAA Feb 24 '16 at 19:46
  • In my recent experience, this means you're running out of VM. Do you have any swap space configured on this machine? How much core memory? – MadHatter Feb 25 '16 at 07:10
  • Thanks EEAA, MadHatter, HBrujin for your feedback/help. It appeared that the problem was directly related to running a 32-bit exe on a 64-bit system. While I was unable to overwrite the existing exe, I copied a 64-bit version over and now all is well... – user1038090 Feb 25 '16 at 20:51
  • @user1038090 thanks for letting us know, if you have time you can post as your own answer to close the question. – yagmoth555 Mar 07 '16 at 14:46

1 Answers1

1

It appeared that the problem was directly related to running a 32-bit exe on a 64-bit system. Problem solved by installing 64-bit version.