Skip to content

[Q] Is sudoers option "runcwd" implemented? #1448

@sokai

Description

@sokai

Hey!

I can't get sudo -u caddy -s -D /var/lib/caddy working (w/ sudo-rs v0.2.11 and a wheel user).
I only get the error/hint sudo: you are not allowed to use '--chdir /var/lib/caddy' with […].

Trying to us Defaults:root,%wheel runcwd=* (like explained by the sudoers man page) in /etc/sudoers (I'm not using as separate /etc/sudoers-rs) to fix the issue, I end up getting unknown setting: 'runcwd'

I don't know where the real cause is, but I venture the guess that sudo-rs hasn't implemented the sudoers option runcwd, ATM. So IMHO using -D or --chdir seems not possible, right?
(If I'm wrong here, how can I use -D?)

Thanks in advance (for answering my maybe dumb question) and KR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions