Compare commits
2 Commits
main
...
adduser-sp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdf694d7a7 | ||
| 738e40ba48 |
@@ -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
6
scripts/adduser-space
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
username=$1
|
||||
useradd -m -s /bin/bash "$username"
|
||||
loginctl enable-linger "$username"
|
||||
echo "$username"
|
||||
Reference in New Issue
Block a user