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
|