script adduser-space

This commit is contained in:
2026-02-22 14:34:11 +02:00
parent 3d3c28807c
commit 738e40ba48
2 changed files with 11 additions and 0 deletions

6
scripts/adduser-space Normal file
View File

@@ -0,0 +1,6 @@
#!/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"