Scripts folder security and permissions

Posted on
Thu Sep 01, 2022 9:49 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Scripts folder security and permissions

Is there any reason I should avoid giving my admin user account write permissions to /Library/Perceptive Automation/Scripts ? Every time I try to save a script there currently, I get a lot of excess permission wrangling.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Sep 01, 2022 3:01 pm
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Scripts folder security and permissions

There is a wiki page that briefly describes what the folder should be used for:

Wiki wrote:
/Library/Application Support/Perceptive Automation/Scripts – any linked scripts you use for Indigo Schedules and Actions using the “Execute Script (Script and File Actions” command should be stored in this folder.

While a bit inconvenient, it's not terribly hard to use the folder.

Code: Select all
Last login: Thu Sep  1 15:45:27 on ttys003
Dave@my-mac Scripts % touch test.txt
touch: test.txt: Permission denied
Dave@my-mac Scripts % sudo touch test.txt
Password:
Dave@my-mac Scripts % ls
test.txt
Dave@my-mac Scripts %
Keeping the permissions where they are is a good security measure. (I don't know this for certain, but I suspect that the Indigo installer would revert any changes as well.)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Sep 01, 2022 5:01 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Scripts folder security and permissions

Thanks. I suspected the same about new versions rolling back any changes.

Don’t see anything about permissions for that folder in the linked doc.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sat Sep 03, 2022 10:14 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Scripts folder security and permissions

I think that's an installer bug, but we'll get back to you.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Sep 05, 2022 2:16 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Scripts folder security and permissions

This was indeed an installer bug. The next installer version will correct the permissions (and owner) for that folder, or you can do it now manually if you want.

Image

Posted on
Mon Sep 05, 2022 3:37 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Scripts folder security and permissions

Thanks guys!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests