Is a Unix group without an entry in /etc/group valid? A user had the group as his primary group and that entry was deleted from the /etc/group file.
Asked
Active
Viewed 105 times
1 Answers
1
The system will be unable to resolve the group and when you list files that are owned by the group, you will only see its (old) numerical ID. In that sense it is valid. However, you can't set ownership to that group on any files.
Basically, your system won't crash and burn horribly, but some files might be inaccessible by some users until you fix their ownership.
Lars Kotthoff
- 646
chgrp +1234 foosets the group ownership ofFOOto the numeric gid1234. Other versions of thechgrpcommand might not support this, but thechownsystem call takes a numericgid_targument. Group names are mainly for convenience. – Keith Thompson May 18 '12 at 22:53