<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mlavi</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mlavi"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Mlavi"/>
	<updated>2026-05-01T09:30:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Mlavi&amp;diff=18605</id>
		<title>User:Mlavi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Mlavi&amp;diff=18605"/>
		<updated>2021-01-24T18:41:26Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Learn more about me: http://mlavi.github.io/about&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18336</id>
		<title>Requirements</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18336"/>
		<updated>2020-12-24T20:27:57Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: /* Booting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will tell you what requirements you will need to use the Alpine Linux operating system:&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Hardware requirements ==&lt;br /&gt;
&lt;br /&gt;
For installation and usage take in consideration Alpine can run in several devices, from the popular PC machine also including video game consoles like Game boy Advance and 3DS, so you must check:&lt;br /&gt;
&lt;br /&gt;
** Architectures&lt;br /&gt;
** Memory&lt;br /&gt;
** Storage&lt;br /&gt;
** Peripherals&lt;br /&gt;
&lt;br /&gt;
=== Architectures ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means kind of computer, The most popular is the misnamed &amp;quot;intel IBM PC&amp;quot;&#039;&#039;&#039; or &amp;quot;i386&amp;quot; which is actually in fact the x86 or x64, there are other computers supporteds that are not &amp;quot;x86&amp;quot; like mainframes also servers, as embebed devices.. inclusivelly routers like Sonicwall and Cisco ones. Here are the supported:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported since !! Meaning of installation and target architecture&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || all || The popular AMD64 compatible 64-bit x86 based machines, i386 is not recommended for newer/latest hardware.&lt;br /&gt;
|-&lt;br /&gt;
| x86 || all || The all popular 32 bit intel (i386 pc 32bit) and x86_64 (i686 pc 64bit and amd64)compatible (both)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || For the PowerPC devices with pure little-endian mode, mostly for POWER8 and POWER9&lt;br /&gt;
|-&lt;br /&gt;
| armhf || v3.0 || The newer ARM hard-float for newer, more powerful 32-bit devices alongside 64-bit. Including video games!&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || v3.9 || The 32-bit ARM only execution state of the ARMv7 devices machines. Including video game consoles!&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || v3.5 || The 64-bit ARM only execution state of the ARMv8 device machines. Like Rasberri&#039;s&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || for 64-bit big-endian PowerPC and Power ISA processors like some MAC computers.&lt;br /&gt;
|-&lt;br /&gt;
| s390x || v3.6 || For the Super powered IBM mainframes, especially IBM Z and IBM LinuxONE servers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Memory ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means minimum amount of RAM memory. Need of RAM it depends of the meaning of the installation&#039;&#039;&#039;, any hardware are supported and there is minimum sizes for:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Target Arch !! Minimum RAM to start !! Minimum RAM to install !! Minimum RAM for GUI desktop !! Enough for GUI work&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || 512 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| x86_32 || 128 Megs || 256 Megs || 1 Gigs || 3 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 128 Megs || 256 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armhf || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || 256 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| s390x || 128 Megs || 256 Megs || 2 Gigs || N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Storage ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal storage device that can be added after or before install to use&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;All the PATA and SATA hard disk drives are supported, also any USB or SD&#039;&#039;&#039; card that can be detected by USB BUS by the linux kernel subsystem during install.&lt;br /&gt;
&lt;br /&gt;
=== Peripherals ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal device that can be added after or before install to detectd&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
ISA devices are not supported since 3.8 because kernel drops support.&lt;br /&gt;
&lt;br /&gt;
Almost any GPU are supported, but for advanced features, 3D acceleration are manager by MESA project:&lt;br /&gt;
&lt;br /&gt;
* Intel: mostly any Intel by one exception, intel i810/i815 will lack of features cos only has 4Mb memory, Mesa and Linux drop theit support.&lt;br /&gt;
* ATI/AMD, only radeon series with exception of recent two last years respect Alpine release, Rage r128/match64 series has limited support.&lt;br /&gt;
* Nvidia: limited; only few are complete supported! not all features are allowed!&lt;br /&gt;
* Matrox: not all features are supported, just cos are shipped on most servers.&lt;br /&gt;
* Sis: limited features are supported, since code are not updated on Xorg and Linux kernel&lt;br /&gt;
* Via: limited features are supported, since openchrome code are not updated on Xorg and Linux kernel&lt;br /&gt;
&lt;br /&gt;
== Software requirements ==&lt;br /&gt;
&lt;br /&gt;
** Media&lt;br /&gt;
** Booting&lt;br /&gt;
** Storage&lt;br /&gt;
** Firmware&lt;br /&gt;
&lt;br /&gt;
=== Media ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means the files need for dump the install media, and later boot from the target install&#039;&#039;&#039; machine, of course downloaded from http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ or main Download page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Available for !! ISO (for USB, CD/DVD) !! IMG (for Netboot)  !! TAR (for ROOTFS, in tar.gz) !! Download links&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/&lt;br /&gt;
|-&lt;br /&gt;
| x86 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86/&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ppc64le/&lt;br /&gt;
|-&lt;br /&gt;
| armhf || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armhf/&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armv7/&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 ||  YES || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/mips64/&lt;br /&gt;
|-&lt;br /&gt;
| s390x || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/s390x/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Checksum ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means Commands to verify the checksum and GPG signature of a downloaded image file on different systems, is complete optional!&#039;&#039;&#039;. This kind of check are made to verify if the download media ISO (for USB, CD/DVD),  IMG (for Netboot)  or TAR (for ROOTFS, in tar.gz) file are correct and will work. Just performs that command in your system before use that downloaded file:&lt;br /&gt;
&lt;br /&gt;
{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! OS where media was downloaded !! &amp;lt;code&amp;gt;sha265&amp;lt;/code&amp;gt; calculation (to be compared manually) !! &amp;lt;code&amp;gt;GPG&amp;lt;/code&amp;gt; signature verification&lt;br /&gt;
|-&lt;br /&gt;
| Linux || &amp;lt;code&amp;gt;sha256sum -c alpine-*.iso.sha256&amp;lt;/code&amp;gt;     || &amp;lt;code&amp;gt;curl https://alpinelinux.org/keys/ncopa.asc &amp;amp;#124;&amp;lt;br&amp;gt; gpg --import ;&amp;lt;br&amp;gt;&amp;lt;nowiki&amp;gt;gpg --verify alpine-*.iso.asc alpine-*.iso&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| MACOS  || &amp;lt;code&amp;gt;shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|-&lt;br /&gt;
| BSD || &amp;lt;code&amp;gt;/usr/local/bin/shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Booting ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means support for kind of BIOS setup of machine, and where can be media downloaded will be boot&#039;&#039;&#039;, please for more info check [[Alpine_and_UEFI|Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported BIOS !! Supported Types !! Media Boot Recommended&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| x86 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| armhf || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || ?Coreboot?, Vendor/OEM || BIOS, ?UEFI? || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || Vendor/OEM || ? || MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| s390x || Vendor/OEM || BIOS, ?UEFI?|| &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If the computer does not automatically boot from the desired device, one needs to bring up the boot menu selection for choosing the media to boot from. Depending on the computer the menu may be accessed by quickly (repeatedly) pressing a key when booting starts, or sometimes it is needed to press the button before starting the computer and keep holding it when it boots. Typical keys are:  `F9`-`F12`, sometimes `F7` or `F8`. If these don&#039;t bring up the boot menu, it may be necessary to enter the BIOS configuration and adjust the boot settings, for which typical keys are: `Del.` `F1` `F2` `F6` or `Esc.`&lt;br /&gt;
&lt;br /&gt;
=== Space ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This means amount of available space in disk partitions to perform a kind of install&#039;&#039;&#039; and of course will depends of type and meaning of your desired install, this are the recommended sizes but depends of the BIOS/UEFI supported you must perform and read the [[Alpine_and_UEFI#Alpine_disk_layout_for_UEFI|Alpine disk layout for UEFI/BIOS at Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Minimum sizes !! Partition for BOOT (&amp;lt;code&amp;gt;/boot&amp;lt;/code&amp;gt;) !! Partition for ROOT (&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) !! Partition for HOME (&amp;lt;code&amp;gt;/home&amp;lt;/code&amp;gt;) !! Partition for SWAP (&amp;lt;code&amp;gt;N/A&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| base only || 100 Megs || 500 Megs || 1 Gigs || Optional&lt;br /&gt;
|-&lt;br /&gt;
| default server || 200 Megs || 2 Gigs || 2 Gigs || 4 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| default desktop || 250 Megs || 12 Gigs || 80 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| mail server || 200 Megs || 20 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| web server || 200 Megs || 10 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
&lt;br /&gt;
# [[Installation]]&lt;br /&gt;
# [[Alpine_newbie#Install|Alpine_newbie Install section]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User_talk:Mlavi&amp;diff=18313</id>
		<title>User talk:Mlavi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User_talk:Mlavi&amp;diff=18313"/>
		<updated>2020-12-19T19:33:42Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: Created page with &amp;quot;* Ansible APK Module: To be confirmed: the module is planned to move out of Ansible base in the future, forcing use of the collection.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Ansible APK Module]]: To be confirmed: the module is planned to move out of Ansible base in the future, forcing use of the collection.&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Mlavi&amp;diff=18312</id>
		<title>User:Mlavi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Mlavi&amp;diff=18312"/>
		<updated>2020-12-19T19:32:46Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: Created page with &amp;quot;You can learn more about me on http://mlavi.github.io/about&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can learn more about me on http://mlavi.github.io/about&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_new_user&amp;diff=18302</id>
		<title>Setting up a new user</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_new_user&amp;diff=18302"/>
		<updated>2020-12-18T00:49:18Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: typos and simplified grammar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
Creating a user is an important step when first configuring a Linux system. Generally &#039;&#039;root&#039;&#039; account is used for administration only as it has access to the operating system and its configuration. This are not a good practice, so the recommendation are creation of accounts for specific purposes like remote connection or desktop usage.&lt;br /&gt;
&lt;br /&gt;
This document will show first basic usage overview and later detailed cases of user management in Alpine linux.&lt;br /&gt;
&lt;br /&gt;
= Overview and new users accounts =&lt;br /&gt;
&lt;br /&gt;
Creating user accounts provides the users their own $HOME directory and allows you (the root administrator) to limit the access that these user accounts have to the operating system&#039;s configuration. Using them increases the security, because they limit possible actions and thus the possible damage (even from accidental errors).&lt;br /&gt;
&lt;br /&gt;
== Creating a new user ==&lt;br /&gt;
&lt;br /&gt;
Using the command &#039;&#039;&#039;adduser&#039;&#039;&#039; will allow you to create a new user in the system.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|adduser &amp;lt;username&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
It will prompt to set a password for the new user, by example let&#039;s create a new user with session name &amp;quot;test&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # adduser test&lt;br /&gt;
 Changing password for test&lt;br /&gt;
 New password: &lt;br /&gt;
 Retype password: &lt;br /&gt;
 passwd: password for test changed by root&lt;br /&gt;
&lt;br /&gt;
The new user can be seen in &lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/passwd|root:x:0:0:root:/root:/bin/ash&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
test:x:1000:1000:Linux User,,,:/home/test:/bin/ash}}&lt;br /&gt;
&lt;br /&gt;
You can now &#039;&#039;exit&#039;&#039; and login to the new account. The [[#management_of_users_and_logins]] section has detailed usage and is recommended!&lt;br /&gt;
&lt;br /&gt;
== User management commands ==&lt;br /&gt;
&lt;br /&gt;
Alpine at install comes only with busybox user management commands and the following are standard for all Linux distributions&lt;br /&gt;
&lt;br /&gt;
If no &#039;&#039;OPTIONS&#039;&#039; is set, by default when creating a new user, it will create a home directory in {{Path|/home/&amp;lt;username&amp;gt;}}, with the shell set that uses the &#039;&#039;root&#039;&#039; account (ash by default), user ID and group ID 1000+, and the GECOS field &#039;&#039;Linux User,,,&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== adduser ===&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;adduser [OPTIONS] USER [GROUP]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create new user, or add USER to GROUP&lt;br /&gt;
&lt;br /&gt;
* --home DIR Home directory&lt;br /&gt;
*     --gecos GECOS GECOS field&lt;br /&gt;
*     --shell SHELL Login shell named SHELL by example /bin/bash&lt;br /&gt;
*     --ingroup GRP Group (by name)&lt;br /&gt;
*     --system Create a system user&lt;br /&gt;
*     --disabled-password Don&#039;t assign a password so cannot login in&lt;br /&gt;
*     --no-create-home Don&#039;t create home directory&lt;br /&gt;
*     --uid UID User id&lt;br /&gt;
&lt;br /&gt;
Those options only work for newer versions:&lt;br /&gt;
&lt;br /&gt;
*  -k SKEL		Skeleton directory (/etc/skel)&lt;br /&gt;
&lt;br /&gt;
One thing to note is that if &amp;lt;nowiki&amp;gt;--ingroup&amp;lt;/nowiki&amp;gt; isn&#039;t set then the GID is assigned to match the UID. If the GID corresponding to the provided UID already exists adduser will fail.&lt;br /&gt;
&lt;br /&gt;
=== addgroup ===&lt;br /&gt;
&lt;br /&gt;
Usage: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;addgroup [-g GID] [-S] [USER] GROUP&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a group or add a user to a group&lt;br /&gt;
&lt;br /&gt;
* --gid GID  Group id&lt;br /&gt;
*  --system   Create a system group&lt;br /&gt;
&lt;br /&gt;
Where the most common Alpine base groups permissions are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;disk&#039;&#039;&#039;:x:6:root,adm  Only if need usage vith virtual machines and access to other partitions over new disks for&lt;br /&gt;
* &#039;&#039;&#039;lp&#039;&#039;&#039;:x:7:lp  IF will need to use printing services and printers management&lt;br /&gt;
* &#039;&#039;&#039;floppy&#039;&#039;&#039;:x:11:root  Backguard compatible group, use only if need access to external special devices&lt;br /&gt;
* &#039;&#039;&#039;audio&#039;&#039;&#039;:x:18:  Need for audio listening and management of sound volumes as normal user&lt;br /&gt;
* &#039;&#039;&#039;cdrom&#039;&#039;&#039;:x:19:  For access to disck writers and mounting DVD, BR or CD rom disk as normal user&lt;br /&gt;
* &#039;&#039;&#039;dialout&#039;&#039;&#039;:x:20:root  Need for dial private connections and use of modems as normal users&lt;br /&gt;
* &#039;&#039;&#039;tape&#039;&#039;&#039;:x:26:root  Need have into this if plan to use special devices for backup.. rarelly in no servers&lt;br /&gt;
* &#039;&#039;&#039;video&#039;&#039;&#039;:x:27:root  For usage of cameras, mor thant one GPU special features, as normal user&lt;br /&gt;
* &#039;&#039;&#039;netdev&#039;&#039;&#039;:x:28:  For network connections management as normal user&lt;br /&gt;
* &#039;&#039;&#039;kvm&#039;&#039;&#039;:x:34:kvm Only if as normal user will manage graphically virtual machines.. rarelly on no servers&lt;br /&gt;
* &#039;&#039;&#039;games&#039;&#039;&#039;:x:35:  Need if you want to play games also specially need if will share score between users&lt;br /&gt;
* &#039;&#039;&#039;cdrw&#039;&#039;&#039;:x:80:  To write RW-DVD, RW-BR or RW-CD disk on a disk writing device&lt;br /&gt;
* &#039;&#039;&#039;apache&#039;&#039;&#039;:x:81: Need if you will perfom development as normal user and want to publish locally on web server&lt;br /&gt;
* &#039;&#039;&#039;usb&#039;&#039;&#039;:x:85: Need to access to special usb devices, deprecated group&lt;br /&gt;
* &#039;&#039;&#039;users&#039;&#039;&#039;:x:100:games If you plan to used common files for all users, mandatory as desktop usage&lt;br /&gt;
&lt;br /&gt;
A more complete list are in : https://git.alpinelinux.org/alpine-baselayout/tree/group more detailed user and group management are in the sections below:&lt;br /&gt;
&lt;br /&gt;
= management of users and logins =&lt;br /&gt;
&lt;br /&gt;
When Alpine Linux is first installed by default it comes with the user &#039;&#039;root&#039;&#039; with no password set &#039;&#039;&#039;so the first step after boot into alpine fresh install are set a password to the user &#039;&#039;root&#039;&#039;&#039;&#039;&#039;, if during isntall was run setup-alpine to change root password, that will be already assigned and can be changed with those setup steps described here. More info in the [[Setting up a new user|Setting users]] wiki page.&lt;br /&gt;
&lt;br /&gt;
== Users creation and defaults ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Only &#039;&#039;root&#039;&#039; can manage users&#039;&#039;&#039;. Creating an account allows it to have it&#039;s own &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;$HOME&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory and allows you to limit access to the configuration of the operating system for security reasons. So the following commands will first setup root environment login and then assing a new password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cat &amp;gt; /root/.cshrc &amp;lt;&amp;lt; EOF&lt;br /&gt;
unsetenv DISPLAY || true&lt;br /&gt;
HISTCONTROL=ignoreboth&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cp /root/.cshrc /root/.profile&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_root_password&amp;quot; | chpasswd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The remote management cannot be done with root directly by default, due ssh security, so we need to setup an remote connection account to made &amp;quot;su&amp;quot; once connected. &lt;br /&gt;
&lt;br /&gt;
The most recommended it&#039;s having a access user here named &amp;quot;remote&amp;quot; and normal general usage user here named &amp;quot;general&amp;quot; for convenience, in the next commands we will setup a very hardened limited environment for any new user and created those two users:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mkdir -p /etc/skel/&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/skel/.logout &amp;lt;&amp;lt; EOF&lt;br /&gt;
history -c&lt;br /&gt;
/bin/rm -f /opt/remote/.mysql_history&lt;br /&gt;
/bin/rm -f /opt/remote/.history&lt;br /&gt;
/bin/rm -f /opt/remote/.bash_history&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/skel/.cshrc &amp;lt;&amp;lt; EOF&lt;br /&gt;
set autologout = 30&lt;br /&gt;
set prompt = &amp;quot;$ &amp;quot;&lt;br /&gt;
set history = 0&lt;br /&gt;
set ignoreeof&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cp /etc/skel/.cshrc /etc/skel/.profile&lt;br /&gt;
&lt;br /&gt;
adduser -D --home /opt/remote --shell /bin/ash remote&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_remote_user_password&amp;quot; | chpasswd&lt;br /&gt;
&lt;br /&gt;
adduser -D --shell /bin/bash general&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_general_user_password&amp;quot; | chpasswd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Tip|&amp;quot;&#039;&#039;&#039;general&#039;&#039;&#039;&amp;quot; are the name of the user, that name MUST be only lowercase letters and no spaces with no symbols}}&lt;br /&gt;
&lt;br /&gt;
Note that those users are created with minimal settings.&lt;br /&gt;
&lt;br /&gt;
== Users management and system access ==&lt;br /&gt;
&lt;br /&gt;
But this user will not have enough privileges for a desktop made purposes, Alpine comes with high security so administrator (the &#039;&#039;root&#039;&#039; account owner) must perform the management of that user. Take care, for a server made there&#039;s no similar procedure!&lt;br /&gt;
&lt;br /&gt;
Now we can changes some defaults and added to proper groups to access devices or perform connections so, those are the recommended groups where the user must have in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
for u in $(ls /home); do for g in disk lp floppy audio cdrom dialout video netdev games users; do addgroup $u $g; done;done&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Management of users can be made with the default &#039;&#039;&#039;busybox&#039;&#039;&#039;, but for easier administration, you can add the &#039;&#039;&#039;libuser&#039;&#039;&#039; package from the testing repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cat &amp;gt; /etc/apk/repositories &amp;lt;&amp;lt; EOF&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/main&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/community&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/edge/testing/&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
apk update&lt;br /&gt;
&lt;br /&gt;
apk add libuser&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/apk/repositories &amp;lt;&amp;lt; EOF&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/main&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/community&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
apk update&lt;br /&gt;
&lt;br /&gt;
touch /etc/login.defs&lt;br /&gt;
&lt;br /&gt;
touch /etc/default/useradd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we have &#039;&#039;libuser&#039;&#039; also &#039;&#039;&#039;can change default shell&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* If you want to change the current user&#039;s shell, log in as that user and then inside their terminal session execute:: &amp;lt;pre&amp;gt;lchsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you want to change a different user&#039;s shell, run as administration or as &#039;&#039;&#039;&#039;&#039;root&#039;&#039;&#039;&#039;&#039;: &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;lchsh general&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;quot;general&amp;quot; was the name of a created user login in previous sections.&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
&lt;br /&gt;
[[Alpine_newbie_apk_packages#Users_creation_and_defaults]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Newbie]]&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_new_user&amp;diff=18301</id>
		<title>Setting up a new user</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_new_user&amp;diff=18301"/>
		<updated>2020-12-18T00:46:17Z</updated>

		<summary type="html">&lt;p&gt;Mlavi: Some minor grammar edits and simplification!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
Creating a user is an important step when first configuring a Linux system. Generally &#039;&#039;root&#039;&#039; account is used for administration only as it has access to the operating system and its configuration. This are not a good practice, so the recommendation are creation of accounts for specific purposes like remote connection or desktop usage.&lt;br /&gt;
&lt;br /&gt;
This document will show first basic usage overview and later detailed cases of user management in Alpine linux.&lt;br /&gt;
&lt;br /&gt;
= Overview and new users accounts =&lt;br /&gt;
&lt;br /&gt;
Creating user accounts provides the users their own $HOME directory and allows you (the root administrator) to limit the access that these user accounts have to the operating system&#039;s configuration. Using them increases the security, because they limit possible actions and thus the possible damage (even from accidental errors).&lt;br /&gt;
&lt;br /&gt;
== Creating a new user ==&lt;br /&gt;
&lt;br /&gt;
Using the command &#039;&#039;&#039;adduser&#039;&#039;&#039; will allow you to create a new user in the system.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|adduser &amp;lt;username&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
It will prompt to set a password for the new user, by example let&#039;s create a new user with session name &amp;quot;test&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # adduser test&lt;br /&gt;
 Changing password for test&lt;br /&gt;
 New password: &lt;br /&gt;
 Retype password: &lt;br /&gt;
 passwd: password for test changed by root&lt;br /&gt;
&lt;br /&gt;
The new user can be seen in &lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/passwd|root:x:0:0:root:/root:/bin/ash&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
test:x:1000:1000:Linux User,,,:/home/test:/bin/ash}}&lt;br /&gt;
&lt;br /&gt;
You can now &#039;&#039;exit&#039;&#039; and login to the new account. The follwing section [[#management_of_users_and_logins]] next here have better detailed usage and its recommended to read!&lt;br /&gt;
&lt;br /&gt;
== User management commands ==&lt;br /&gt;
&lt;br /&gt;
Alpine at install comes only with busybox user management commands and the following are standar for all linux distributions&lt;br /&gt;
&lt;br /&gt;
If no &#039;&#039;OPTIONS&#039;&#039; is set, by default when creating a new user, it will create a home directory in {{Path|/home/&amp;lt;username&amp;gt;}}, with the shell set that uses the &#039;&#039;root&#039;&#039; account (ash by default), user ID and group ID 1000+, and the GECOS field &#039;&#039;Linux User,,,&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== adduser ===&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;adduser [OPTIONS] USER [GROUP]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create new user, or add USER to GROUP&lt;br /&gt;
&lt;br /&gt;
* --home DIR Home directory&lt;br /&gt;
*     --gecos GECOS GECOS field&lt;br /&gt;
*     --shell SHELL Login shell named SHELL by example /bin/bash&lt;br /&gt;
*     --ingroup GRP Group (by name)&lt;br /&gt;
*     --system Create a system user&lt;br /&gt;
*     --disabled-password Don&#039;t assign a password so cannot login in&lt;br /&gt;
*     --no-create-home Don&#039;t create home directory&lt;br /&gt;
*     --uid UID User id&lt;br /&gt;
&lt;br /&gt;
Those options only work for newer versions:&lt;br /&gt;
&lt;br /&gt;
*  -k SKEL		Skeleton directory (/etc/skel)&lt;br /&gt;
&lt;br /&gt;
One thing to note is that if &amp;lt;nowiki&amp;gt;--ingroup&amp;lt;/nowiki&amp;gt; isn&#039;t set then the GID is assigned to match the UID. If the GID corresponding to the provided UID already exists adduser will fail.&lt;br /&gt;
&lt;br /&gt;
=== addgroup ===&lt;br /&gt;
&lt;br /&gt;
Usage: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;addgroup [-g GID] [-S] [USER] GROUP&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a group or add a user to a group&lt;br /&gt;
&lt;br /&gt;
* --gid GID  Group id&lt;br /&gt;
*  --system   Create a system group&lt;br /&gt;
&lt;br /&gt;
Where the most common Alpine base groups permissions are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;disk&#039;&#039;&#039;:x:6:root,adm  Only if need usage vith virtual machines and access to other partitions over new disks for&lt;br /&gt;
* &#039;&#039;&#039;lp&#039;&#039;&#039;:x:7:lp  IF will need to use printing services and printers management&lt;br /&gt;
* &#039;&#039;&#039;floppy&#039;&#039;&#039;:x:11:root  Backguard compatible group, use only if need access to external special devices&lt;br /&gt;
* &#039;&#039;&#039;audio&#039;&#039;&#039;:x:18:  Need for audio listening and management of sound volumes as normal user&lt;br /&gt;
* &#039;&#039;&#039;cdrom&#039;&#039;&#039;:x:19:  For access to disck writers and mounting DVD, BR or CD rom disk as normal user&lt;br /&gt;
* &#039;&#039;&#039;dialout&#039;&#039;&#039;:x:20:root  Need for dial private connections and use of modems as normal users&lt;br /&gt;
* &#039;&#039;&#039;tape&#039;&#039;&#039;:x:26:root  Need have into this if plan to use special devices for backup.. rarelly in no servers&lt;br /&gt;
* &#039;&#039;&#039;video&#039;&#039;&#039;:x:27:root  For usage of cameras, mor thant one GPU special features, as normal user&lt;br /&gt;
* &#039;&#039;&#039;netdev&#039;&#039;&#039;:x:28:  For network connections management as normal user&lt;br /&gt;
* &#039;&#039;&#039;kvm&#039;&#039;&#039;:x:34:kvm Only if as normal user will manage graphically virtual machines.. rarelly on no servers&lt;br /&gt;
* &#039;&#039;&#039;games&#039;&#039;&#039;:x:35:  Need if you want to play games also specially need if will share score between users&lt;br /&gt;
* &#039;&#039;&#039;cdrw&#039;&#039;&#039;:x:80:  To write RW-DVD, RW-BR or RW-CD disk on a disk writing device&lt;br /&gt;
* &#039;&#039;&#039;apache&#039;&#039;&#039;:x:81: Need if you will perfom development as normal user and want to publish locally on web server&lt;br /&gt;
* &#039;&#039;&#039;usb&#039;&#039;&#039;:x:85: Need to access to special usb devices, deprecated group&lt;br /&gt;
* &#039;&#039;&#039;users&#039;&#039;&#039;:x:100:games If you plan to used common files for all users, mandatory as desktop usage&lt;br /&gt;
&lt;br /&gt;
A more complete list are in : https://git.alpinelinux.org/alpine-baselayout/tree/group more detailed user and group management are in the sections below:&lt;br /&gt;
&lt;br /&gt;
= management of users and logins =&lt;br /&gt;
&lt;br /&gt;
When Alpine Linux is first installed by default it comes with the user &#039;&#039;root&#039;&#039; with no password set &#039;&#039;&#039;so the first step after boot into alpine fresh install are set a password to the user &#039;&#039;root&#039;&#039;&#039;&#039;&#039;, if during isntall was run setup-alpine to change root password, that will be already assigned and can be changed with those setup steps described here. More info in the [[Setting up a new user|Setting users]] wiki page.&lt;br /&gt;
&lt;br /&gt;
== Users creation and defaults ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Only &#039;&#039;root&#039;&#039; can manage users&#039;&#039;&#039;. Creating an account allows it to have it&#039;s own &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;$HOME&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory and allows you to limit access to the configuration of the operating system for security reasons. So the following commands will first setup root environment login and then assing a new password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cat &amp;gt; /root/.cshrc &amp;lt;&amp;lt; EOF&lt;br /&gt;
unsetenv DISPLAY || true&lt;br /&gt;
HISTCONTROL=ignoreboth&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cp /root/.cshrc /root/.profile&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_root_password&amp;quot; | chpasswd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The remote management cannot be done with root directly by default, due ssh security, so we need to setup an remote connection account to made &amp;quot;su&amp;quot; once connected. &lt;br /&gt;
&lt;br /&gt;
The most recommended it&#039;s having a access user here named &amp;quot;remote&amp;quot; and normal general usage user here named &amp;quot;general&amp;quot; for convenience, in the next commands we will setup a very hardened limited environment for any new user and created those two users:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mkdir -p /etc/skel/&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/skel/.logout &amp;lt;&amp;lt; EOF&lt;br /&gt;
history -c&lt;br /&gt;
/bin/rm -f /opt/remote/.mysql_history&lt;br /&gt;
/bin/rm -f /opt/remote/.history&lt;br /&gt;
/bin/rm -f /opt/remote/.bash_history&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/skel/.cshrc &amp;lt;&amp;lt; EOF&lt;br /&gt;
set autologout = 30&lt;br /&gt;
set prompt = &amp;quot;$ &amp;quot;&lt;br /&gt;
set history = 0&lt;br /&gt;
set ignoreeof&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
cp /etc/skel/.cshrc /etc/skel/.profile&lt;br /&gt;
&lt;br /&gt;
adduser -D --home /opt/remote --shell /bin/ash remote&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_remote_user_password&amp;quot; | chpasswd&lt;br /&gt;
&lt;br /&gt;
adduser -D --shell /bin/bash general&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;secret_new_general_user_password&amp;quot; | chpasswd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Tip|&amp;quot;&#039;&#039;&#039;general&#039;&#039;&#039;&amp;quot; are the name of the user, that name MUST be only lowercase letters and no spaces with no symbols}}&lt;br /&gt;
&lt;br /&gt;
Note that those users are created with minimal settings.&lt;br /&gt;
&lt;br /&gt;
== Users management and system access ==&lt;br /&gt;
&lt;br /&gt;
But this user will not have enough privileges for a desktop made purposes, Alpine comes with high security so administrator (the &#039;&#039;root&#039;&#039; account owner) must perform the management of that user. Take care, for a server made there&#039;s no similar procedure!&lt;br /&gt;
&lt;br /&gt;
Now we can changes some defaults and added to proper groups to access devices or perform connections so, those are the recommended groups where the user must have in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
for u in $(ls /home); do for g in disk lp floppy audio cdrom dialout video netdev games users; do addgroup $u $g; done;done&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Management of users can be made with the default &#039;&#039;&#039;busybox&#039;&#039;&#039;, but for easier administration, you can add the &#039;&#039;&#039;libuser&#039;&#039;&#039; package from the testing repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cat &amp;gt; /etc/apk/repositories &amp;lt;&amp;lt; EOF&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/main&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/community&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/edge/testing/&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
apk update&lt;br /&gt;
&lt;br /&gt;
apk add libuser&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/apk/repositories &amp;lt;&amp;lt; EOF&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/main&lt;br /&gt;
http://mirror.math.princeton.edu/pub/alpinelinux/v$(cat /etc/alpine-release | cut -d&#039;.&#039; -f1,2)/community&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
apk update&lt;br /&gt;
&lt;br /&gt;
touch /etc/login.defs&lt;br /&gt;
&lt;br /&gt;
touch /etc/default/useradd&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we have &#039;&#039;libuser&#039;&#039; also &#039;&#039;&#039;can change default shell&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* If you want to change the current user&#039;s shell, log in as that user and then inside their terminal session execute:: &amp;lt;pre&amp;gt;lchsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you want to change a different user&#039;s shell, run as administration or as &#039;&#039;&#039;&#039;&#039;root&#039;&#039;&#039;&#039;&#039;: &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;lchsh general&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;quot;general&amp;quot; was the name of a created user login in previous sections.&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
&lt;br /&gt;
[[Alpine_newbie_apk_packages#Users_creation_and_defaults]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Newbie]]&lt;/div&gt;</summary>
		<author><name>Mlavi</name></author>
	</entry>
</feed>