Compare commits
1 Commits
init
...
adduser-sc
| Author | SHA1 | Date | |
|---|---|---|---|
| 44ea1a3071 |
@@ -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" # for user's systemd services to work after logout and start with system start
|
||||||
|
echo "$username"
|
||||||
Reference in New Issue
Block a user