Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cgwalters/docker-image-setuid-shell

Testing Dockerfile to build an image with a setuid shell
https://github.com/cgwalters/docker-image-setuid-shell

Last synced: 26 days ago
JSON representation

Testing Dockerfile to build an image with a setuid shell

Awesome Lists containing this project

README

        

Use this image as a test case for securing Docker image hosts.

First, you can directly run:
```
/usr/bin/rootshell -p
```

This is just a copy of bash, which apparently requires an undocumented `-p` option:
http://unix.stackexchange.com/questions/74527/setuid-bit-seems-to-have-no-effect-on-bash

Or, the root password has been removed and you can use the traditional `su`:
```
su - root
```