kasmtech / workspaces-core-images

https://www.kasmweb.com
Other
328 stars 117 forks source link

how to inject user root to kali image run standalone? #12

Open mjakubowskilkr opened 2 years ago

mjakubowskilkr commented 2 years ago

I need to add user root to Kali container. Can I add any parameter to command sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/<image>:<tag> ?

j-travis commented 2 years ago

Yes, you are free to add any docker run flag you want , including --user root https://docs.docker.com/engine/reference/commandline/run/

mjakubowskilkr commented 2 years ago

OK, thank you. Another question - how to secure connection, can I change username and password for authentication? Default is kasm_user / password.

mjakubowskilkr commented 2 years ago

Can anybody answer me?

mmcclaskey commented 2 years ago

For the greatest level of security, use the full Kasm Workspaces platform, which is does all the following and more

For using a kasm docker image directly, without Workspaces, you can change the password as documented in Docker Hub and in GitHub in the example docker run command. The username is hard coded I believe, if you run the container directly without using the Workspaces platform.

mjakubowskilkr commented 2 years ago

Ok, thanx , it's satisfied answer.