crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
206 stars 94 forks source link

is not possible to know password #26

Closed ghost closed 6 years ago

ghost commented 6 years ago

Is very good so i dont know how use

is not possible to know password

rewitt1 commented 6 years ago

Since no one ever responded to this, and there isn't a clear question, I'm going to close this.

mixaz commented 4 years ago

pokyuser@7d3f2f3087d5:/workdir$ apt-get install bc E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? pokyuser@7d3f2f3087d5:/workdir$ sudo apt-get install bc [sudo] password for pokyuser: Sorry, try again. [sudo] password for pokyuser: Sorry, try again. [sudo] password for pokyuser: sudo: 3 incorrect password attempts

What is the password for pokyuser?

rewitt1 commented 4 years ago

Hi @mixaz,

There is no password, but the password is in the locked state. So you can't switch to pokyuser using a password.

That being said, even if you could use the password, you still wouldn't be able to use sudo, because pokyuser isn't in the sudoers file.

If you want to perform something as root the easiest way is to probably start your container, and then run the command below in a different shell. CONTAINERID can be retrieved from docker ps or is the name you chose for the container:

docker exec -it --user=root CONTAINERID bash

From that shell you could run apt-get, change the sudoers file, change the password for pokyuser or any other things that require root privileges.

mixaz commented 4 years ago

@rewitt1 I already reviewed a similar issue here where you explained that, but thanks anyway