diff --git a/README.md b/README.md index 4e525d2..3633b92 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,8 @@ ## 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 +enables lingering after creating a user diff --git a/scripts/adduser-space b/scripts/adduser-space new file mode 100644 index 0000000..511c302 --- /dev/null +++ b/scripts/adduser-space @@ -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"