From adf65dfb8cf75596cd96f19d687ce932fb66492b Mon Sep 17 00:00:00 2001 From: Aditya Date: Fri, 6 Jan 2023 11:15:50 +0530 Subject: [PATCH] create ch4 - add user --- scripts/chapter4/4.3-add-user.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/chapter4/4.3-add-user.sh diff --git a/scripts/chapter4/4.3-add-user.sh b/scripts/chapter4/4.3-add-user.sh new file mode 100644 index 0000000..a250290 --- /dev/null +++ b/scripts/chapter4/4.3-add-user.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +groupadd lfs +useradd -s /bin/bash -g lfs -m -k /dev/null lfs + +passwd lfs + +chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} +case $(uname -m) in + x86_64) chown -v lfs $LFS/lib64 ;; +esac +