Creating files/directories a different group inherits it, how to change
Working with CentOS 7.
Whenever I create a file/directory as a standard user, that file/directory is inherited by the group Wheel, not the use that creates it. That user though it part of the Wheel group and also has their own group under /etc/group. Is there a way to change this, so that when a user creates a file/directory, the owner is their group, not the Wheel group? thanks |
What is this user's primary group (the one listed in /etc/passwd and shown by the "id" command as "gid=nnn(name)"?
Is that behavior happening all over the system, or just in one particular directory? The only time a newly created file should inherit the GID of the directory is when that directory has the "set GID" bit set in its permissions (e.g., "drwxrwsr-x"). |
Here is the output of two commands: id and grep of /etc/passwd
Code:
id cmmiller ; cat /etc/passwd | grep cmmiller |
All times are GMT -5. The time now is 05:30 AM. |