diff options
Diffstat (limited to 'source/_posts/adding_a_user_in_arch_linux.md')
| -rw-r--r-- | source/_posts/adding_a_user_in_arch_linux.md | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/source/_posts/adding_a_user_in_arch_linux.md b/source/_posts/adding_a_user_in_arch_linux.md deleted file mode 100644 index c647d53..0000000 --- a/source/_posts/adding_a_user_in_arch_linux.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -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/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 david - -New password: -Retype new password: -passwd: password updated successfully -``` - -Now all I have to do is logout of the root account. - -```shell -$ logout -``` - -Then login with the new credentials to confirm that everything is okay. - -```shell -suliman login: david -Password: - -david@suliman:$ -``` |
