LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   changeing permissions for a folder + subfolders and files ? (https://www.linuxquestions.org/questions/slackware-14/changeing-permissions-for-a-folder-subfolders-and-files-213963/)

YBA^[x] 08-05-2004 04:52 PM

changeing permissions for a folder + subfolders and files ?
 
Hey.

I thought I'd be doing something clever, turns out I might not have after all. I chose to install and configurate quite a few apps as root in /home/apps/, thinking that all users would have access to these apps with the settings I made. This is not so. Users do have access to the apps but settings are default. Is there an easy way to change the permissions for /home that will affect all files and subfolders in /home ? I'm hoping that this way users will be able to run the apps with the settings I made as root, because I really do not want to go through the bore of configurating all the apps again for every single user.

Regards.

born4linux 08-05-2004 05:31 PM

man chown
man chmod

they both have the -R option - means do someting recursively.

YBA^[x] 08-06-2004 02:36 AM

Thanks. What permissions should be set ? 777 ?

rgiggs 08-06-2004 02:46 AM

i think no. 777 includes write permission. read and execute should do. go with 555.

barisdemiray 08-06-2004 02:47 AM

Quote:

Originally posted by YBA^[x]
Thanks. What permissions should be set ? 777 ?
You should not grant write permission to executables owned by root. One user can do nasty things on the file that can be executed by other users ``including root''.

YBA^[x] 08-06-2004 02:49 AM

So doing this:

chown -R 555 /home

or

chmod -R 555 /home

should do the trick ?

rgiggs 08-06-2004 03:17 AM

you mean chmod -R 555 /home/apps? that will work.
chown changes the owning user and/or group of the files. so, you might want to do: chown -R root:root /home/apps. that would make /home/apps and its files and dirs belong to the user root and the group root. that, and the chmod command, will prevent other users from modifying /home/apps.

YBA^[x] 08-06-2004 04:07 AM

I'll try again. From my first post in this thread:

I'm hoping that this way users will be able to run the apps with the settings I made as root, because I really do not want to go through the bore of configurating all the apps again for every single user.

How can I solve this?


All times are GMT -5. The time now is 10:04 PM.