lfs-scripts/scripts/chapter4/4.3-add-user.sh
2023-01-06 11:15:50 +05:30

12 lines
205 B
Bash

#!/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