Skip to content

Fix "No passwd entry for user '-'" #10

Merged
merged 1 commit into from Sep 27, 2022
Merged

Fix "No passwd entry for user '-'" #10

merged 1 commit into from Sep 27, 2022

Conversation

donald
Copy link
Contributor

@donald donald commented Sep 27, 2022

After the update of the shadow package from version 4.1.5.1 to 4.12.3,
"su" changed its interpretation of the pattern

su - -

so that the second "-" is now interpreted as the username which leads
to this error:

starting /run/mariux/mxvip.bla.cfg ..
starting /run/mariux/mxservice.bla.cfg ..
No passwd entry for user '-'

Fix this by coding the interpretation of "-" as "root", which is
specific to mxstartup anyway, explicitly.

After the update of the shadow package from version 4.1.5.1 to 4.12.3,
"su" changed its interpretation of the pattern

    su - -

so that the second "-" is now interpreted as the username which leads
to this error:

    starting /run/mariux/mxvip.bla.cfg ..
    starting /run/mariux/mxservice.bla.cfg ..
    No passwd entry for user '-'

Fix this by coding the interpretation of "-" as "root", which is
specific to mxstartup anyway, explicitly.
@donald donald requested a review from wwwutz September 27, 2022 11:18
@donald
Copy link
Contributor Author

donald commented Sep 27, 2022

Maybe we should move this to mxtools? Much overhead for a small fix in a perl script.

@donald donald merged commit b51f29e into master Sep 27, 2022
@wwwutz
Copy link
Contributor

wwwutz commented Sep 27, 2022

Maybe we should move this to mxtools? Much overhead for a small fix in a perl script.

Hmm, mxstartups could run anywhere, it's not MX dependend, so I think keeping it here as single repo is ok.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants