bash security hole

Ralf Mardorf kde.lists at yahoo.com
Sun Sep 28 03:48:04 UTC 2014


OT:

On Sat, 2014-09-27 at 19:26 -0700, Steve Riley wrote:
> #!/bin/sh
> 
> Will use sh. On Debian/Ubuntu, /bin/sh is a symbolic link
> to /bin/dash.

Unfortunately some other distros (at least Arch Linux) link sh -> bash,
so it's possible that scripts could contain bashisms,
http://manpages.ubuntu.com/manpages/trusty/man1/checkbashisms.1.html ,
but sh shouldn't allow bashisms. A script containing bashisms always
should use "#!/bin/bash" and never "#!/bin/sh", but some "sh" scripts
come with bashisms.





More information about the kubuntu-users mailing list