in reply to xargs error using open cmd for output with redirected input file

Does $cmd work if you paste it into the shell?

Nothing wrong with that subroutine aside from shell interpolation vulnerability, which wouldn't be triggered by these strings (no meta characters)

src_line_info( '/auto/stbu-tools/wrlinux/wrl6/wrlinux-6/layers/binary-toolchain-4.8- +39/bin/i686-wrs-linux-gnu-addr2line', '/auto/pix-asa-image/essen/9.4.2.11/smp', );

If $cmd works from shell but not from src_line_info, then other part of program must use setuid to change the user, or the user running the program isn't the same one as your shell

  • Comment on Re: xargs error using open cmd for output with redirected input file (setuid)
  • Download Code

Replies are listed 'Best First'.
Re^2: xargs error using open cmd for output with redirected input file (setuid)
by cben (Initiate) on Nov 30, 2016 at 21:27 UTC

    Thank you for your reply!

    Does $cmd work if you paste it into the shell?

    Yes, it works from the shell, running it as root.

    the user running the program isn't the same one as your shell

    This is the case--when invoked automatically, it's a cgi program and I think the uid/gid is Apache/Apache (but I'll check). It's still not clear to me why with perms set to rwxr-xr-x for everything why it wouldn't work. But at least I think I''m on the right track now.

    Thanks again for your help!

    Chuck