I am learning penetration testing, and I am trying to perform linux privilege escalation using docker. So I created a new user with the minimum permissions and I added it to the docker group. The problem now is that this new user cannot run docker.
I tried to change the permission for this user using chmod but it does not work. Can anyone help me please to permit the new user to run docker!! this is the new user:
pentester:x:1001:1001::/home/pentester:/bin/bash
and this is the docker group:
docker:x:976:anasgharsa,pentester
and when I am connected with the new user and try docker images
or docker ps
I get this error message : "unable to get absolute bin path: stat .: permission denied"