I'm working with some apps (the best example i can give is Firefox Developer Edition) that i put in the /opt folder. These apps work perfectly until they need to apply and update, and that's because /opt is owned by root, and to write those apps in the /opt folder i use the sudo command when i unpack the apps. To fix this, my best solution was to chmod, chown and chgrp the apps (each app folder, no de /opt folder) to my user, and give permissions to users to write inside the apps folders:[user@localhost /opt] $ ls -lahtotal 76Kdrwxr-xr-x. 19 root        root        4,0K dic 28 22:32 .dr-xr-xr-x. 20 root        root        4,0K nov 13 02:00 ..drwxrwxr-x   7 MyUser      MyGroup     4,0K nov 24 21:46 android-studiodrwxr-xr-x  10 MyUser      MyGroup     4,0K dic 17 21:45 firefox-devdrwxrwxr-x   2 MyUser      MyGroup     4,0K dic 28 22:34 linux-wbfs-managerdrwxr-xr-x.  5 MyUser      MyGroup     4,0K mar 25  2015 sublime_text_2drwx------.  3 MyUser      MyGroup     4,0K dic  2 14:53 tor-browser_en-USdrwxrwxr-x   4 MyUser      MyGroup     4,0K dic 17 19:28 WordPress.comNow, i'm wondering if this a good practice or is insecure. Until now, i didn't have any problem, but i'm using browsers and other apps with network access.
Is insecure to give users permissions to apps in /opt?
linux;permissions;security