You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not sure if this is the right place to put this issue, so let me know if I need to move it!
I would like to be able to use Kali linux, which requires root privileges for some applications. I have looked through the docs and have tried:
Setting "user": "root" in docker run config
Installing sudo and configuring it to be passwordless in the docker exec config
However, I encounter issues with both.
Preferably, I would use the kasm-user account with passwordless sudo.
This stuff is all kinda new to me, so I may be misunderstanding the following, but it seems the issues are:
The root user doesn't have access to the X server, so cannot open graphical applications without running xhost +si:localuser:root first
DBus is not running, meaning pkexec doesn't work. For example, the wireshark desktop file uses pkexec to elevate the user's privileges, so this fails to open unless starting DBus manually with sudo service dbus start
Even with dbus running, I can't open wireshark because pkexec uses the terminal for password input. There also isn't a password for the root user (that I'm aware of). If the whole container is run as root though, this works (as it does not need a password)
I have found that I can run xhost +si:localuser:root in first_launch (in docker exec config), which fixes part of the problem, but I couldn't get DBus to start automatically.
I have tried playing around with Dockerfiles but had a similar issue.
Could I have some guidance on how to get root properly working on kali please?
The text was updated successfully, but these errors were encountered:
default:~$ sudo su [sudo] password for kasm-user: Sorry, try again. [sudo] password for kasm-user: Sorry, try again. [sudo] password for kasm-user: sudo: 3 incorrect password attempts default:~$ I try-ed , root, password, passowrdless, kali, and more. but no resulte^C default:~$
Hi, I'm not sure if this is the right place to put this issue, so let me know if I need to move it!
I would like to be able to use Kali linux, which requires root privileges for some applications. I have looked through the docs and have tried:
"user": "root"
in docker run configsudo
and configuring it to be passwordless in the docker exec configHowever, I encounter issues with both.
Preferably, I would use the
kasm-user
account with passwordlesssudo
.This stuff is all kinda new to me, so I may be misunderstanding the following, but it seems the issues are:
xhost +si:localuser:root
firstpkexec
doesn't work. For example, the wireshark desktop file usespkexec
to elevate the user's privileges, so this fails to open unless starting DBus manually withsudo service dbus start
pkexec
uses the terminal for password input. There also isn't a password for the root user (that I'm aware of). If the whole container is run as root though, this works (as it does not need a password)I have found that I can run
xhost +si:localuser:root
infirst_launch
(in docker exec config), which fixes part of the problem, but I couldn't get DBus to start automatically.I have tried playing around with Dockerfiles but had a similar issue.
Could I have some guidance on how to get root properly working on kali please?
The text was updated successfully, but these errors were encountered: