Skip to content

Instantly share code, notes, and snippets.

@rbaul
Last active February 1, 2022 08:51
Show Gist options
  • Save rbaul/4a7171e0ebb2107337a46d0fe219d709 to your computer and use it in GitHub Desktop.
Save rbaul/4a7171e0ebb2107337a46d0fe219d709 to your computer and use it in GitHub Desktop.
Replace linux shell (ash, sh, bash)
/etc # cat passwd | grep "/bin/ash"
root:x:0:0:root:/root:/bin/ash
task-executor:x:1000:1000:Linux User,,,:/home/task-executor:/bin/ash
/etc # sed -i 's+/bin/ash+/bin/sh+g' passwd
/etc # cat passwd | grep "/bin/ash"
/etc # cat passwd | grep "/bin/sh"
root:x:0:0:root:/root:/bin/sh
task-executor:x:1000:1000:Linux User,,,:/home/task-executor:/bin/sh
https://www.cyberciti.biz/faq/alpine-linux-install-bash-using-apk-command/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment