I have some files with some specific permissions
-r--r----- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_1-r-x---r-- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_10-r--r----- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_11-rwxr----- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_12-r-x---r-- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_13-rw---x--- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_14-r-xrw---x 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_15
-For exemple in the file fichier_10
i have the permission read in the others : -r-x---r--
i have to add the same permission in the group to be : -r-xr--r--
-Also for exemple for file fichier_15
i have the permission execute in the others : -r-xrw---x
i have to add the same permission in the group to be : -r-xrwx--x
-And for exemple the file fichier_12
i don't have any permission in the **others : -rwxr-----
i ll not change anything in group : -rwxr-----
I tried this command line but it s not working :
find . \( -perm -o+r -o -perm -o+w -o -perm -o+x \) -type f -exec chmod g+r,g+w,g+x {} \;