Difference between revisions of "Change default shell"

From Alpine Linux
Jump to: navigation, search
(Changing the default shell)
(Changing the default shell)
Line 6: Line 6:
 
<br><br>
 
<br><br>
 
If you do not have files:
 
If you do not have files:
<br>
+
* /etc/login.defs
/etc/login.defs
+
* /etc/default/useradd
<br>
 
/etc/default/useradd
 
 
<br><br>
 
<br><br>
 
We will need to create them
 
We will need to create them

Revision as of 04:25, 24 October 2019

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
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