HOW DO I GRANT ACCESS TO EXECUTABLES FROM APT TO THE WWW-DATA USER!?!?!?!? I'm DYING trying to figure this out!!!!!!

All I want to do is run `rolldice` from a @nextcloud Talk command so I can have a nice little die roller and it can't run external commands and I'm losing my goddamn mind!

Follow

Ok! For anyone keeping score, I figured out how to get my custom script working! I found and modified a PHP script instead, and the Snap was able to access and run PHP on the script!

The trick was finding a place that the snap's `nextcloud.occ` command could access the shell script, then making finding a place that the sandboxed NextCloud snap itself could access, and finally making sure the scripts were owned by `www-data` and in the `www-data` group!
So I created the command shell script in `/var/snap/nextcloud/common/commands/roll.sh` and pointed the shell script that gets run by the sandboxed NextCloud snap to where I have my data storage accessible via `:removable-storage` in `/media/nextcloud/scripts/evaldiceroll.php`!!!

HA!!!

I'm INVINCIBLE!!!

I HAVE DEFEATED THE SNAP!!!!

I'll write a post about this eventually, but I actually have some time sensitive things I /really/ need to finish first...

Β· Web Β· 0 Β· 0 Β· 3
Sign in to participate in the conversation
Cybrespace

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!