megabyte-labs / install.doctor

A glorious combination of application / theme settings and a performant cross-platform, desktop-oriented software suite.
https://megabyte.space
Other
101 stars 23 forks source link

macOS Program-Specific Users / Groups #117

Open ProfessorManhattan opened 11 months ago

ProfessorManhattan commented 11 months ago

❔ What are you experiencing an issue with?

Latest Release

❔ Version

N/A

🐞 Description

During the installation process, if rclone is installed then a user named rclone and a group named rclone is created because the _groups key is defined. However, in a script when we try to run:

sudo chown rclone:rclone /etc/rclone.conf

Then, the following error is output:

chown: invalid group: 'rclone:rclone'

However, when I run sudo chown rclone:$(id -g -n) /etc/rclone.conf it works but it assigns the group as "staff". I'm not sure if this is something unique to my remotely managed corporate computer or because there is something else missing. However, I'd like to be able to label all the rclone stuff with the rclone group so that a user can be assigned that group and manage the file.

Looking for either an answer or a fix on this one.

⏺️ Steps To Reproduce

No response

πŸ“’ Relevant Log Output

No response

πŸ’‘ Possible Solution

No response