Can't chmod +g on a directory
Colin Law
clanlaw at gmail.com
Tue Oct 15 15:30:07 UTC 2024
On Tue, 15 Oct 2024 at 16:21, Steve Matzura <sm at noisynotes.com> wrote:
>
> "jim" and "bob" are two directories in /home owned by root and in the root group. They both have subdirectories called uploads. /home/jim/uploads is owned by jim in the jim group and has protection mask 755 (drwx-rx-rx). /home/bob/uploads is owned by bob but in another group entirely, and its protection mask is 774 (rwxrwxr--). I want to change /home/jim/uploads to the same permissions as /home/bob/uploads, but whenever I "sudo chmod +g /home/jim/uploads", nothing happens.
chmod is just for setting the permissions for the group that owns the
file. If you want to change the group you have to use chown.
Colin L.
More information about the ubuntu-users
mailing list