mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
create ch4 - add user
This commit is contained in:
parent
c9048b7b91
commit
adf65dfb8c
1 changed files with 12 additions and 0 deletions
12
scripts/chapter4/4.3-add-user.sh
Normal file
12
scripts/chapter4/4.3-add-user.sh
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue