1 Commits

Author SHA1 Message Date
44ea1a3071 adduser-space script 2026-02-22 14:30:28 +02:00
4 changed files with 7 additions and 11 deletions

View File

@@ -1,5 +0,0 @@
don't forget to
```bash
sudo loginctl enable-linger $USER
```

View File

@@ -9,8 +9,3 @@ On that server we use podman instead of docker because it's:
## How to use?
Exactly the same as docker, but, obviously, instead of `docker` write `podman`. More documentation find [there](https://podman.io/docs)
Maybe (just maybe) you'll need to run this thing (but I still not ceratin if it's necessary):
```sh
systemctl --user enable --now podman.socket
```

View File

@@ -11,7 +11,7 @@ This file explains which ports are used and for what reason (please categorize t
## Rules
If you want to add some extra port, then please:
1. Check prs of other people
1. Check opened prs of other people
2. Use 1024+ (because user for caddy isn't root and I don't want to change smth so please)
There will be more, but that's all for now

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"