Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cgwalters/docker-image-setuid-shell
- Owner: cgwalters
- Created: 2016-01-04T21:41:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-04T21:45:32.000Z (almost 9 years ago)
- Last Synced: 2023-03-11T22:42:17.892Z (over 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-bashOr, the root password has been removed and you can use the traditional `su`:
```
su - root
```