Re:Accidentally Stopping a Global Cyber Attack
by kccqzy on Saturday May 13, 2017 @06:22PM
(#14333309)
If you change the name or location of the shell to something other than "/bin/sh", plenty of legitimate software would break too.
Even though the POSIX standard says:
> Applications should note that the standard PATH to the shell cannot be assumed to be either /bin/sh or /usr/bin/sh, and should be determined by interrogation of the PATH returned by `getconf PATH`, ensuring that the returned pathname is an absolute pathname and not a shell
built-in.
> For example, to determine the location of the standard sh utility:
Even though the POSIX standard says:
> Applications should note that the standard PATH to the shell cannot be assumed to be either /bin/sh or /usr/bin/sh, and should be determined by interrogation of the PATH returned by `getconf PATH`, ensuring that the returned pathname is an absolute pathname and not a shell built-in.
> For example, to determine the location of the standard sh utility:
command −v sh