diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-05-17 15:59:24 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-05-17 15:59:24 +0100 |
| commit | bbf7974715b9a43bab207df75ef69209cdf13850 (patch) | |
| tree | 13078ed02a7fec8f28b1d6046e6533f1be2aec54 /www/posts/arch/2020-06-15/adding-a-user-in-arch-linux | |
| parent | 3e9a949c823917e0f4189628959fa4d3eb908db4 (diff) | |
Move to building localy rather than on remote server
Diffstat (limited to 'www/posts/arch/2020-06-15/adding-a-user-in-arch-linux')
| -rw-r--r-- | www/posts/arch/2020-06-15/adding-a-user-in-arch-linux/index.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www/posts/arch/2020-06-15/adding-a-user-in-arch-linux/index.html b/www/posts/arch/2020-06-15/adding-a-user-in-arch-linux/index.html new file mode 100644 index 0000000..c294c31 --- /dev/null +++ b/www/posts/arch/2020-06-15/adding-a-user-in-arch-linux/index.html @@ -0,0 +1,30 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Adding a User in Arch Linux</title> + <link rel="shortcut icon" href="/images/favicon.png"> + <link rel="stylesheet" href="/css/site.css"> + <link href="/posts/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts"/> + <link href="/posts/arch/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Arch"/> + <link href="/posts/gemini/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Gemini"/> + <link href="/posts/jigsaw/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Jigsaw"/> + <link href="/posts/laravel/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Laravel"/> + <link href="/posts/linux/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Linux"/> + <link href="/posts/markdown/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Markdown"/> + <link href="/posts/netlify/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Netlify"/> + <link href="/posts/nextcloud/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Nextcloud"/> + <link href="/posts/php/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About PHP"/> + </head> + <body> + <section><h1>Adding a User in Arch Linux</h1><blockquote>Mon 15th June 2020 By David T. Sadler.</blockquote><p>In a previous post 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.</p><pre><code class="shell">$ useradd -m -s /bin/bash david</code></pre><p>I used the below options with the command.</p><ul><li>-m Create the home directory for this account.</li><li>-s /bin/bash Make bash the login shell for this account.</li><li>david The name of the new user.</li></ul><p>This creates a new account for me and also ensures that a home directory is created as /home/david.</p><p>The new account will require a password so assign one with the passwd command.</p><pre><code class="shell">$ passwd david + +New password: +Retype new password: +passwd: password updated successfully</code></pre><p>Now all I have to do is logout of the root account.</p><pre><code class="shell">$ logout</code></pre><p>Then login with the new credentials to confirm that everything is okay.</p><pre><code class="shell">suliman login: david +Password: + +david@suliman:$</code></pre><h3>Links</h3><a href="/posts/arch/2020-05-25/installing-arch-linux-on-a-x220-thinkpad/">Installing Arch Linux on a Thinkpad X220.</a><a href="/posts/arch/">Arch - Read More Posts.</a><p>I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.</p><a href="mailto:david@davidtsadler.com">Email david@davidtsadler.com</a><a href="https://creativecommons.org/licenses/by-sa/4.0/">The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</a><p>Copyright © 2021 David T. Sadler.</p><a href="/">Return to Homepage.</a></section> + </body> +</html> |
