Daniel Cross
09/06/2023, 7:05 AM❯ ./fleetctl package --type=pkg --fleet-desktop --fleet-url=<https://REDACTED.com> --enroll-secret=REDACTED
Generating your osquery installer...
Error: create orbit dir: Path /var/folders/0m/j0pfdbrj1v3f0rj22ktydcdm0000gn/T/orbit-package832843677/root already exists with mode 20000000700 instead of the expected 20000000755Daniel Cross
09/06/2023, 7:08 AM❯ ./fleetctl package --type=pkg --fleet-url=<https://REDACTED.com> \
--enroll-secret=REDACTED \
--fleet-certificate=fleet.pem
Generating your osquery installer...
Error: create orbit dir: Path /var/folders/0m/j0pfdbrj1v3f0rj22ktydcdm0000gn/T/orbit-package3344373369/root already exists with mode 20000000700 instead of the expected 20000000755Daniel Cross
09/06/2023, 7:12 AMDherder
09/06/2023, 4:14 PMsudo the command? Looks like some kind of permissions issue 700 vs 755. Or, maybe chmod the 0m folder recursively to 755?Daniel Cross
09/06/2023, 11:24 PM/tmp
Generating your osquery installer...
Error: create orbit dir: Path /tmp/orbit-package1842156953/root already exists with mode 20000000700 instead of the expected 20000000755Dherder
09/06/2023, 11:32 PMDaniel Cross
09/07/2023, 12:22 AM❯ ./fleetctl
zsh: exec format error: ./fleetctlDaniel Cross
09/07/2023, 12:29 AMdaniel.cross@x1 ~/fleetctl_v4.36.0_linux
❯ ./fleetctl package --type=pkg --fleet-desktop --fleet-url=<https://REDACTED.com> --enroll-secret=REDACTED
Generating your osquery installer...
Error: create orbit dir: Path /tmp/orbit-package973367418/root already exists with mode 20000000700 instead of the expected 20000000755
[1] daniel.cross@x1 ~/fleetctl_v4.36.0_linux
❯ uname -a
Linux x1 6.4.11-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 16 17:55:16 UTC 2023 x86_64 x86_64 x86_64 GNU/LinuxDaniel Cross
09/07/2023, 12:29 AMDaniel Cross
09/07/2023, 12:39 AM--debug and get no further info.Kathy Satterlee
09/07/2023, 7:05 PMKathy Satterlee
09/07/2023, 7:07 PMDaniel Cross
09/07/2023, 11:24 PMGabe Hernandez
09/08/2023, 12:20 PMchmod the directory to 755 where the package is building? it looks like there is some permission issue here and that may help.Daniel Cross
09/11/2023, 12:27 AM[1] daniel.cross@Daniels-MBP-2 ~
❯ sudo ls -al /var/folders/0m/j0pfdbrj1v3f0rj22ktydcdm0000gn/T/ | head -n 3
total 0
drwx------@ 299 daniel.cross staff 9568 11 Sep 10:25 .
drwxr-xr-x@ 6 daniel.cross staff 192 31 Mar 2022 ..
/tmp is already writable (which is was was used in the sudo example, and sudo should work anyhow):
❯ sudo ls -al /tmp
Password:
lrwxr-xr-x@ 1 root wheel 11 15 Jun 20:08 /tmp -> private/tmp
daniel.cross@Daniels-MBP-2 ~
❯ sudo ls -al /private/tmp
total 520
drwxrwxrwt 14 root wheel 448 11 Sep 10:23 .
Fedora host
/tmp is writable.
❯ ls -al /tmp | head -n3
total 4053272
drwxrwxrwt. 20 root root 25940 Sep 11 09:50 .
dr-xr-xr-x. 1 root root 158 Nov 5 2022 ..
I can touch files into all of these locatioøs.Tom Wilburn
01/08/2024, 6:37 PMDaniel Cross
01/12/2024, 5:04 AM