Compare commits
4 Commits
adduser-sc
...
adduser-sp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdf694d7a7 | ||
| 738e40ba48 | |||
| 3d3c28807c | |||
| 2f09a841bc |
@@ -2,3 +2,9 @@
|
|||||||
|
|
||||||
## 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](/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
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
don't forget to
|
|
||||||
```bash
|
|
||||||
sudo loginctl enable-linger $USER
|
|
||||||
```
|
|
||||||
@@ -9,8 +9,3 @@ On that server we use podman instead of docker because it's:
|
|||||||
## How to use?
|
## How to use?
|
||||||
Exactly the same as docker, but, obviously, instead of `docker` write `podman`. More documentation find [there](https://podman.io/docs)
|
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
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ This file explains which ports are used and for what reason (please categorize t
|
|||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
If you want to add some extra port, then please:
|
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)
|
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
|
There will be more, but that's all for now
|
||||||
|
|||||||
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