This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/os/arch_linux/0-adduser.bash
2016-10-25 20:01:42 -05:00

9 lines
232 B
Bash
Executable file

#!/usr/bin/env bash
groupadd admin 2>/dev/null
mkdir -p /home/daniel
useradd -m -d /home/daniel/usr -G admin,users -s /usr/bin/bash daniel
chown -R daniel:daniel /home/daniel
echo "Setting password for user 'daniel'"
passwd daniel