lfs-scripts/scripts/chapter4/4.3-add-user.sh

13 lines
205 B
Bash
Raw Normal View History

2023-01-06 05:45:50 +00:00
#!/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