diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-06-14 22:19:29 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-06-14 22:19:29 +0100 |
| commit | dcf43ee844c4d34cc41161bbcb21ca7b290f963d (patch) | |
| tree | c88f68ed650e7f106b93354dc6e44d7a65826e8e | |
| parent | c6369365333e8f554e94ff10d0825a76b5d88239 (diff) | |
Add Adding a User in Arch Linux
| -rw-r--r-- | source/_posts/adding_a_user_in_arch_linux.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source/_posts/adding_a_user_in_arch_linux.md b/source/_posts/adding_a_user_in_arch_linux.md new file mode 100644 index 0000000..e6ad198 --- /dev/null +++ b/source/_posts/adding_a_user_in_arch_linux.md @@ -0,0 +1,32 @@ +--- +extends: _layouts.post +section: content +title: Adding a User in Arch Linux +date: 2020-06-15 +description: Use the command line to add a user in Arch Linux +tags: [Arch] +--- + +In a [previous post](/posts/2020-05-25/installing_arch_linux_on_a_x220_thinkpad) I installed Arch Linux on my Thinkpad X220. Since it was a very minimal install there are no user accounts except for the root user. So to add myself as a user I need to use the *useradd* command. + +```shell +$ useradd -m -s /bin/bash david +``` + +I used the below options with the command. + +- *-m* Create the home directory for this account. +- *-s /bin/bash* Make *bash* the login shell for this account. +- *david* The name of the new user. + +This creates a new account for me and also ensures that a home directory is created as */home/david*. + +The new account will require a password so assign one with the *passwd* command. + +```shell +$ passwd + +New password: +Retype new password: +passwd: password updated successfully +``` |
