Skip to content

Commit

Permalink
docs: update docs for new rootful password setup
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
  • Loading branch information
89luca89 committed Aug 6, 2023
1 parent 6baf512 commit 315b9f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ docker/podman container or a flatpak.
⚠️ **BE CAREFUL**:⚠️ if you use docker, or you use podman with the `--root/-r` flag,
the containers will run as root, so **root inside the rootful container can modify
system stuff outside the container**,
if you have security concern for this, **use podman that runs in rootless mode**.
Be also aware that **In rootful mode, user and root will inherit the host's password**, this will
ensure at least that the container is not a passwordless gate to root,
but if you have security concern for this, **use podman that runs in rootless mode**.
Rootless docker is still not working as intended and will be included in the future
when it will be complete.

Expand Down
6 changes: 1 addition & 5 deletions docs/posts/run_libvirt_in_distrobox.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ ssh for it:
Port 2222" | sudo tee -a /etc/ssh/sshd_config
:-$ sudo systemctl enable --now sshd
:-$ sudo systemctl restart sshd
:~$ sudo su -
:~# passwd
```

Now set a password for root user.

## Connect from the host

You can now install VirtManager, you can either use a normal (non root) distrobox, and export the app
Expand All @@ -67,7 +63,7 @@ Then set it like this:
Optionally you can set it to autoconnect.

Now you can simply double click the connection to activate it, you'll be prompted
with a password, insert the one you used in the `passwd` step previously:
with your password, insert the same password as the host:

![image](https://user-images.githubusercontent.com/598882/208441932-f561af0b-9c19-45f7-bacc-d690d80b75e1.png)

Expand Down

0 comments on commit 315b9f2

Please sign in to comment.