lowendbox / lowendscript

Bash scripts to set up/bootstrap low end virtual servers
173 stars 187 forks source link

Set DASH as default shell correctly #14

Closed itoffshore closed 4 years ago

itoffshore commented 11 years ago

The correct way to set DASH as the default shell:

dpkg-reconfigure dash

(it does a few other things besides changing the /bin/sh target)

If the login shell is changed to DASH for the normal login user you will also save 1.5 - 1.6% of RAM on a 128 meg box:

chsh -s /bin/dash username

(as it will be open doing nothing while you su to root)