system access rights

Assignement of a user to multiple groups in /etc/groups seems to have no
effect ?

Jiri Kristek

"J Kristek <jkristek@retia.cz> wrote:

Assignement of a user to multiple groups in /etc/groups seems to have
no effect ?

Do you have a specific example? Seems to work for me …

  • as root I create a file “/tmp/supgrp” and give it rw-rw---- perms
  • as a normal user if I try “ls >/tmp/supgrp” I get “Permission denied”
  • as root I add myself (last field) to the root group in “/etc/group”
  • login again as the normal user and now I can “ls >/tmp/supgrp”
  • “id” lists my supplementary group