Page MenuHomeFreeBSD

pw: Skip root check with alternate root
ClosedPublic

Authored by emaste on Jun 6 2025, 2:06 AM.
Tags
None
Referenced Files
F128683737: D50710.diff
Sat, Sep 13, 8:14 AM
F128670830: D50710.id156605.diff
Sat, Sep 13, 5:11 AM
Unknown Object (File)
Wed, Sep 3, 3:19 PM
Unknown Object (File)
Tue, Sep 2, 3:52 AM
Unknown Object (File)
Mon, Sep 1, 7:01 AM
Unknown Object (File)
Sun, Aug 31, 11:03 AM
Unknown Object (File)
Tue, Aug 26, 10:16 PM
Unknown Object (File)
Tue, Aug 26, 9:24 PM
Subscribers

Details

Summary

Skip the you must be root check when -R or -V are specified. pw may be run by an unprivileged user for creating an image or jail. EPERM will still be reported from the open if the user does not have appropriate permission.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.Jun 6 2025, 2:06 AM
emaste created this revision.

There is a sentence in pw.8 about needing to run as root that should be updated to match the new reality.

This revision is now accepted and ready to land.Jul 14 2025, 8:42 PM

@emaste will you commit this soon? It's required for rootless release builds.

This revision was automatically updated to reflect the committed changes.