7 lines
192 B
Bash
7 lines
192 B
Bash
#!/bin/bash
|
|
|
|
username=$1
|
|
useradd -m -s /bin/bash "$username"
|
|
loginctl enable-linger "$username" # for user's systemd services to work after logout and start with system start
|
|
echo "$username"
|