mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Merge branch 'main' of https://github.com/elAgala/server-initializer
This commit is contained in:
@@ -16,6 +16,10 @@ If you need the new user to have administrative privileges, add the user to the
|
||||
`sudo usermod -aG sudo newusername`
|
||||
This command adds the user to the sudo group, which grants administrative permissions.
|
||||
|
||||
- Give user permissions for deployments:
|
||||
`sudo sudo chown -R agala: /var/www/static /var/www/apps`
|
||||
This command gives the user access to the deployment folders so scp file upload is posible
|
||||
|
||||
## 3. Configure SSH Access
|
||||
|
||||
- Switch to the New User:
|
||||
@@ -67,3 +71,9 @@ gpasswd -a www-data username
|
||||
```bash
|
||||
sudo systemctl restart nginx
|
||||
```
|
||||
|
||||
## 6. Add user to Docker group (to execute docker commands)
|
||||
|
||||
```bash
|
||||
sudo usermod -aG docker username
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user