Добавить Linux/users.md
This commit is contained in:
parent
2ffc121222
commit
1024222c5e
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Popular Linux user actions
|
||||||
|
|
||||||
|
## Add nologin, no home user (for running services)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
useradd --no-create-home --shell /usr/sbin/nologin user_name
|
||||||
|
```
|
||||||
|
|
||||||
|
## Add user in group
|
||||||
|
```bash
|
||||||
|
usermod -aG group_name user_name
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue