From 1858c123e9e5cb1765fe5009a13dcf1a5b6189bf Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sun, 31 Dec 2023 18:36:01 +0100 Subject: [PATCH] updated instructions --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2f1fb3b..579ea8d 100644 --- a/README.md +++ b/README.md @@ -9,26 +9,26 @@ Laptop configuration for Arch Linux ## Setup -### Setup the variables needed for running the playbook +### Create the user as administrator ```bash -mkdir --parent ansible/roles/user/vars -touch ansible/roles/user/vars/main.yml +# Install the necessary dependencies +pacman -S sudo fish git + +# Allow members of the group "sudo" to issue sudo commands +sed -i 's/# %sudo/%sudo/g' /etc/sudoers + +# Add the "sudo" group +groupadd sudo + +# Add the unprivileged user +useradd --create-home --shell --groups sudo --uid 1000 /bin/fish user + +# Setup the password for the unprivileged user +passwd user ``` -```yaml ---- -user: - name: "change-me" - password: "change-me" - groups: sudo - uid: 1000 - shell: /bin/fish -root: - shell: /bin/fish -``` - -### Laptop installation +### Laptop installation as user ```bash # Clone the repository