herd-community
herd-community copied to clipboard
[BUG]: Allow running Herd on restricted user accounts
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
- Have a Mac with macOS .
- Create second regular account without admin rights.
- Install herd in the seconds non admin account.
- Try to add a site to herd either using
or the GUI. - Discover that you cannot add sites and
returns empty list. - Make a GitHub issue and hope for a miracle.
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.
Same here. MacOS Sequoia. Installed under a standard account.
- herd link does not work (it reports a successful symbolic link but it actually is not created)
- herd.yml aliases does not work either as they also use symbolic links
- of course, can not set a site to https
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].