metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

docker entrypoint fallback to root

Open fabpiaf opened this issue 11 months ago • 20 comments

https://github.com/rapid7/metasploit-framework/blob/157763b2afa7ac990bc5a4e9a1bd1cfc25cdd58c/docker/entrypoint.sh#L28C1-L30C5

What is this actually for? What happens is:

docker compose up #works fine with new user id
#ctrl +c
docker compose up #does not use the same user but root

fabpiaf avatar Jan 29 '25 16:01 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Mar 03 '25 15:03 github-actions[bot]

not stale

fabpiaf avatar Mar 04 '25 06:03 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Apr 03 '25 15:04 github-actions[bot]

not stale

fabpiaf avatar Apr 04 '25 06:04 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar May 05 '25 15:05 github-actions[bot]

not stale

fabpiaf avatar May 06 '25 12:05 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Jun 06 '25 15:06 github-actions[bot]

not stale

fabpiaf avatar Jun 06 '25 19:06 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Jul 10 '25 15:07 github-actions[bot]

not stale

fabpiaf avatar Jul 14 '25 11:07 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Aug 14 '25 15:08 github-actions[bot]

not stale

fabpiaf avatar Aug 18 '25 18:08 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Sep 19 '25 15:09 github-actions[bot]

not stale

fabpiaf avatar Sep 19 '25 19:09 fabpiaf

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Oct 22 '25 15:10 github-actions[bot]

not stale

fabpiaf avatar Oct 28 '25 15:10 fabpiaf

I'm not sure what the origin of that code is; Are you wanting both scenarios to go down the su-exec $MSF_USER "$@" path? 👀

adfoster-r7 avatar Oct 28 '25 15:10 adfoster-r7

I honestly dont know the intention of the code. I guess what was intended is that each host system user gets a reliable guest user id?

fabpiaf avatar Nov 26 '25 16:11 fabpiaf

That's a great question; maybe @firefart might remember the nuances here 🤞

adfoster-r7 avatar Nov 26 '25 16:11 adfoster-r7

Iirc that's because we mount the home directory of the user and the user id running msfconsole and the directory permissions need to match inside the container. So we create or modify a user to have the same id as the user launching the script

firefart avatar Nov 26 '25 16:11 firefart