herd-community icon indicating copy to clipboard operation
herd-community copied to clipboard

[BUG]: Allow running Herd on restricted user accounts

Open ghost opened this issue 10 months ago • 3 comments

Discussed in https://github.com/beyondcode/herd-community/discussions/396

Originally posted by SebHanke October 15, 2023. => It's been over a year...

Operating system version

macOS Sonoma 14.0

System architecture

ARM64 (M1, M2, etc)

Herd Version

latest ?

PHP Version

any

Bug description

Cannot use herd sites when herd is running in non admin user.

Steps to reproduce

  1. Have a Mac with macOS .
  2. Create second regular account without admin rights.
  3. Install herd in the seconds non admin account.
  4. Try to add a site to herd either using or the GUI.
  5. Discover that you cannot add sites and returns empty list.
  6. Make a GitHub issue and hope for a miracle.

ghost avatar Jan 31 '25 18:01 ghost

Same here. MacOS Sonoma, with a user not present in the sudoers file due to company policy.

Herd file is present in the /etc/sudoers.d path with the following content:

%admin ALL=(root) NOPASSWD:SETENV: /usr/bin/security

Is there any way to run FPM without root privileges?

Thank you.

gamerboy avatar Feb 11 '25 20:02 gamerboy

Same here. MacOS Sequoia. Installed under a standard account.

  1. herd link does not work (it reports a successful symbolic link but it actually is not created)
  2. herd.yml aliases does not work either as they also use symbolic links
  3. of course, can not set a site to https

fhsheridan avatar Jul 19 '25 17:07 fhsheridan

Same issue here.

There was an error creating your application...

Installer Output
In Site.php line 188:

The [x] site has been secured with a fresh TLS certificate.
Restarting Nginx...

Warning: file_get_contents(/Users/<user>/Library/Application Support/Herd/config/valet/Certificates/x.test.crt): Failed to open stream: No such file or directory in phar:///Users/<user>/Library/Application Support/Herd/bin/herd.phar/cli/Valet/Site.php on line 753
A [x] symbolic link has been created in [/Users/<user>/Library/Application Support/Herd/config/valet/Sites/x].

Merdin avatar Jul 28 '25 08:07 Merdin