Skip to content

check if user has full passwordless sudo privileges#29

Merged
alauppe merged 4 commits intoopenclaw:mainfrom
baldwinsung:sudo_ask_become
Mar 11, 2026
Merged

check if user has full passwordless sudo privileges#29
alauppe merged 4 commits intoopenclaw:mainfrom
baldwinsung:sudo_ask_become

Conversation

@baldwinsung
Copy link
Contributor

fixes #28

baldwinsung and others added 4 commits February 23, 2026 16:28
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Baldwin Sung <baldwinsung@users.noreply.github.com>
@alauppe
Copy link
Member

alauppe commented Mar 11, 2026

Thanks for this improvement. The core behavior change makes sense: if the user already has passwordless sudo, run-playbook.sh should not force an unnecessary become-password prompt.

I pushed a small follow-up commit onto your branch before merging to keep the behavior the same while cleaning up the wrapper a bit:

  • normalize the shell indentation in the new branch
  • add a short message so users can see whether passwordless sudo was detected or whether they are being prompted

Appreciate the contribution.

@alauppe alauppe merged commit e59a42a into openclaw:main Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check if user has full passwordless sudo privileges

2 participants