[_] *nix error: cannot execute binary file
World of Jake
subs at firebox.nu
Mon Mar 12 23:02:53 GMT 2007
Ahh, it was because I was using the -s (shell) option, which: > runs the shell specified by the SHELL envi- > ronment variable if it is set or the shell as specified in > passwd(5). and the sysadmin must have changed something in the shell environment? A real newbie when it comes to *nix command line stuff... thanks v much for your help Steve :) Jake On 12 Mar 2007, at 21:48, Steve Roome wrote: > 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 > > > -- > underscore_ list info/archive -> http://www.under-score.org.uk