I'm asking how to manage the permissions of /opt folder and files/folders under it. At the moment, the /opt folder has the default configuration
drwxr-xr-x root root
However, I changed the permission of all the folders under it with
chown -R my_user_name:my_user_group /opt
and this is the output of
$>ls -Al /opt
total 44
drwxr-xr-x 3 tigerjack89 tigerjack89 4096 set 11 17:47 Adobe
drwxr-xr-x 3 tigerjack89 tigerjack89 4096 set 11 17:47 Adobe AIR
drwxr-xr-x 13 tigerjack89 tigerjack89 4096 ott 5 20:48 android-sdk-linux
drwxrwxrwx 8 tigerjack89 tigerjack89 4096 set 27 16:40 axis2-1.6.2
drwxr-xr-x 4 tigerjack89 tigerjack89 4096 set 11 17:47 Balsamiq Mockups
drwxrwxrwx 3 tigerjack89 tigerjack89 4096 lug 6 2013 _--_BRAND_--_
drwxrwxrwx 9 tigerjack89 tigerjack89 4096 ott 5 21:05 eclipse
drwxr-xr-x 3 tigerjack89 tigerjack89 4096 apr 25 16:11 google
drwxr-xr-x 16 tigerjack89 tigerjack89 4096 lug 17 19:50 jd2
drwxr-xr-x 3 tigerjack89 tigerjack89 4096 mag 28 2013 MATLAB
drwxr-xr-x 11 tigerjack89 tigerjack89 4096 set 30 12:50 Modelio 3.1
The main reason for this change is that I don't want these applications to run with superuser privileges. However, I don't know if this is the right thing to do.
For example, to correctly run Google Chrome, I have to switch back chrome-sandbox to root:root; also, if I try to run the Android SDK Manager via /opt/android-sdk-linux/tools/android
it fails to fetch some links and I have to run the previous command as superuser.
So, do I have to switch all the things back to prevent other issues?
-rwxr-xr-x
? And why Google Chrome says to me that I need to change the owner of chrome-sandbox to root:root? – tigerjack Oct 07 '14 at 08:16find /opt -perm -4000 -o -perm -2000 -print
to find them all; or the programs that just ask them to do it (like the sandbox over there). – Rmano Oct 07 '14 at 08:31find /opt -perm 4000 -print
returns/opt/google/chrome/chrome-sandbox
; I don't know exactly what this means, but I think it's the only program I need to change. – tigerjack Oct 07 '14 at 08:36