Changed SUDO pwd on its own - and broke it
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- debian, linux, rust
- Domain
- cli, operating-systems, security
Research direction
No source file, test, or entry point is named. Start by reviewing the reported session log and the steps involving a Debian remote machine with sudo access; clarify whether the fix must prevent unrequested credential changes, validate explicitly authorized changes, or both, then define tests showing that admin access remains usable.
Written by the indexing model from the issue text.
Description
What issue are you seeing?
Gave Codex (running Gpt5.6 Sol Extra High) credentials to a debian linux device (ssh user + sudo pwd).
Somehow in the middle of the session it decides for no reason to rotate the sudo key- completely unrelated to actual instructions. Couldn't believe when i read that in the log. I immediately steered it on that because it didnt stop on its own to tell me directly.
Turned out it was even worse- it not only changed the SUDO pwd but it also broke the new one in the process and locked everyone out of admin access. Images attached speak for themselves. I had to get physical with the console cable to come back here.
Maybe add a hard guardrail that it doesn't pro-activly rotate credentials OR that it verifies if it does so, that the command itself is cleanly formed.
What steps can reproduce the bug?
Give it full access to a remote machine incl sudo credential and a task. Happened somehow random and out of the blue.
What is the expected behavior?
Shouldn't mess with secrets at all unless explicitly instructed.
Additional information
No response
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·