Change default shell: Difference between revisions

From Alpine Linux
No edit summary
m (make dir info missed)
Line 8: Line 8:


* ''touch /etc/login.defs''
* ''touch /etc/login.defs''
* ''mkdir /etc/default''
* ''touch /etc/default/useradd''
* ''touch /etc/default/useradd''
<br>
<br>

Revision as of 12:02, 28 November 2021

Changing the default shell


Download the required package:
apk add libuser
If you do not have files: /etc/login.defs /etc/default/useradd
We will need to create them

  • touch /etc/login.defs
  • mkdir /etc/default
  • touch /etc/default/useradd


Now we can change our default shell
If you want to change the current user's shell: lchsh
If you want to change a different user's shell: lchsh USERNAME