Merge pull request 'script adduser-space' (#4) from adduser-space into main

Reviewed-on: #4
Reviewed-by: just-mn <just-mn@noreply.localhost>
This commit was merged in pull request #4.
This commit is contained in:
2026-02-22 18:55:22 +00:00
2 changed files with 12 additions and 0 deletions

View File

@@ -2,3 +2,9 @@
## 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
## Scripts
### [adduser-script](/scripts/adduser-space)
enables lingering after creating a user\
lingering means user's systemd services are continue work after logout and start with system start

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"
echo "$username"