LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   changing permissions for entire directory (https://www.linuxquestions.org/questions/linux-networking-3/changing-permissions-for-entire-directory-59551/)

jmarsh 05-13-2003 07:59 AM

changing permissions for entire directory
 
i have a directory that has about 32,000 files and folders in it. it was moved from a windows machine to a linux machine. i am using samba. when the directory was moved it gave it a group permission of the owner id of the owner who moved the files. the problem is that group doesnt exist, it only exists for that owner. the file owner and group look like this:

file owner: username
file group: 501

i need to change the group for the entire directory. how do i do that without having to go through the entire directory one file or folder at a time to change the group? it is very important i change the permissions as people need to move the files around but cant because of permission problems. thanks for your help

acid_kewpie 05-13-2003 08:04 AM

chown -R user:group dirname

man chown for more information

jmarsh 05-13-2003 08:12 AM

got it thanks for the help.


All times are GMT -5. The time now is 03:56 AM.