Opened 3 years ago

Last modified 3 years ago

#64717 assigned defect

sshuttle: Sudoers functionality broken

Reported by: Steuard (Steuard Jensen) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sshuttle

Description

The current version of sshuttle has features to create sudoers.d entries to allow automated use of the script. The current macports port needs two fixes to make this work.

First, there is a missing dependency on the "realpath" port.

And second, the "sudoers-add" script is coded to insist on the path "/etc/sudoers.d" rather than the macOS path "/private/etc/sudoers.d". I'll attach a simple patch file that takes care of that.

With these changes, everything works as expected.

Attachments (1)

sshuttle-sudoers.patch (569 bytes) - added by Steuard (Steuard Jensen) 3 years ago.
Short patch to use Mac /private/etc path

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by Steuard (Steuard Jensen)

Attachment: sshuttle-sudoers.patch added

Short patch to use Mac /private/etc path

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to herbygillot
Status: newassigned
Summary: Sudoers functionality brokensshuttle: Sudoers functionality broken

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

The portion of the patch that changes /etc to /private/etc should only be applied within a platform darwin block.

Please report these problems to the developers of sshuttle as well. They will probably want to find a more general solution to the problem. (Who knows if there are other operating systems where, like on macOS, /etc is a symlink.)

Note: See TracTickets for help on using tickets.