script adduser-space #4

Merged
miko089 merged 2 commits from adduser-space into main 2026-02-22 18:55:23 +00:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit 738e40ba48 - Show all commits

View File

@@ -2,3 +2,8 @@
## Docs ## Docs
docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues
## Scripts
### adduser-script
enables lingering after creating a user

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"