scottyhardy / docker-remote-desktop

Docker image for Remote Desktop server with audio support
MIT License
242 stars 123 forks source link

What is root password? #10

Closed KashifHK123 closed 2 years ago

KashifHK123 commented 3 years ago

Hello, I need a root password to install my required programs. You didn't share the root password, Can you please share it?

MRzNone commented 3 years ago

Probably this line has some hint:

https://github.com/scottyhardy/docker-remote-desktop/blob/master/entrypoint.sh#L5

MRzNone commented 3 years ago

I was able to change the pass word via logging in as root and change password for user ubuntu.

docker exec -u 0 -it remote-desktop /bin/bash # log in the container as root
passwd ubuntu # change password
DarkAxi0m commented 3 years ago

Rather than the changing the password, I've found it better/easier to install sudo.

docker exec -u 0 -it remote-desktop /bin/bash    
apt update   
apt install sudo    
usermod -aG sudo ubuntu

Then logout and back in to the desktop and you can run root commands with sudo

sudo bash  
sudo apt update    
etc
scottyhardy commented 2 years ago

Hi all,

There is no root password set, unless there's one set in the ubuntu image(s) (which I'm pretty sure it's not). I thought I'd already added sudo to this image - looks like I haven't though so I can do that.