[_] *nix error: cannot execute binary file
Steve Roome
steve at pepcross.com
Mon Mar 12 21:48:38 GMT 2007
Check a few things like. which sudo list out your shell aliases (I have no idea what shell you are using though) whereis sudo then depending on your OS try some variant of ptrace, dttrace etc and watch for stuff. or mv the mv command to mv.x and replace the mv command with your own wrapper (at your own peril!) with a script like this one, which I've got for ifconfig for the time being.... steve at zebedee 1 0 % cat /sbin/ifconfig #!/bin/sh logger "$PPID (`cat /proc/$PPID/cmdline`) called ifconfig $*" /sbin/ifconfig.x $* ...... Then again, you'll need to fix the `cat /proc...` to work on your os, or use ps or something, if you can't do this then I'm afraid you'll need to give us slightly more information on what platform and configuration you've got. Good luck, Steve On Mon, Mar 12, 2007 at 09:01:21PM +0000, World of Jake wrote: > I used to be able to "sudo -s anyoldcommand" on a remote machine that > someone else has set up, but now I get this error message when I try > to sudo: > > "mv: mv: cannot execute binary file" > > But it works if I just type in the command as a regular user. Anyone > any ideas? Hopefully the sysadmin will fix it this eve, I'm just > curious ;) > > cheers, Jake > > > -- > underscore_ list info/archive -> http://www.under-score.org.uk