Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kali dbus and root user support #81

Open
jacob-horton opened this issue Oct 3, 2023 · 2 comments
Open

Kali dbus and root user support #81

jacob-horton opened this issue Oct 3, 2023 · 2 comments

Comments

@jacob-horton
Copy link

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?

@abdelllah-driouich
Copy link

Hey @jacob-horton , I have the same issues as you,

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:~$

please if any one have any solution, It's urgent!

@Ian-Kasmweb

@MasterZhang007
Copy link

After reading the official docs and searching online, I confirmed that the image does not provide root user privileges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants