I'm running into some problems and would appreciate bouncing some ideas
off of someone else.
What problems are you running into?
Other than filesystem quirks (UUCP temp filenames or target filenames
might be case sensitive, which would cause a surprise when running
on HFS),
or setting up a daemon via Launchd,
I don't think there are that many MacOS-specific issues that would
trip you up.
[...]What problems are you running into?
Running uucico as anybody other than the _uucp user (Apple has
apparently renamed "uucp" to "_uucp") will end up with failed
connections, I believe related to a line error. Yet the exact same >configuration and uucico command work just fine when run as the _uucp
user. This may be related to what line / port type that I'm using; pipe
to ssh.
Similarly, if I add "-r" to the uucp / uuto / uux commands run by the >non-_uucp user, so that they only spool their request and don't actually >start uucico and subsequently run uucico as the _uucp user, everything
works as expected. non-_uucp users files / commands get queued as
expected. uucico works as expected when run as _uucp.
- I had to disable System Integrity Protection (a trip in and of itself).
- Remount root read-write so that I could edit the config files.
- chown uucp related binaries to _uucp:
- chmod uucp related binaries to setuid & setgid
- chmod permissions on the uucp spool directory
- create the uucp public directory
That's fascinating! The fact that everything works when the invocation
of ssh comes from the daemon but not when invoked by the user suggests
some kind of unwanted inheritance from the normal user's environment.
I wonder if it has to do with Keychain access or some other
Mac-specific hook in ssh.
Have you considered trying a different line/port type to see if
that gets rid of the problem?
I suspect that stunnel, with client and server authentication enabled,
would provide you with a similar level of security and be easier
to maintain.
Another possibility is to install a private version of ssh, either
from Macports or build it yourself, and point UUCP to that binary.
You might be able to avoid all that by installing a private version
of uucp, like the one in MacPorts, which will use different paths
and shouldn't need any epic battles with the MacOS security settings.
If you'd rather debug the existing setup, try adding the "-v" option
to uucp's invocation of ssh and see what turns up in the logs.
Add up to two more "-v" options to increase verbosity. By comparing
the log output of a successful run with an unsuccessful one, you
should get some hints as to what's going wrong.
Good luck and let us know what happens!
I need to look at things and think about what was done between two
different macOS systems, Yosemite 10.10.5 & Catalina 10.15.15. Once I understand the differences between the two well enough to articulate,
I'll share my findings.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:21:17 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,793 |