How to create Group Aliases

Robbo ml at
Sun Jul 17 16:55:19 UTC 2005

On Sun, 2005-07-17 at 12:19 -0400, Matthew S-H wrote:
> Is there any way to create a group that is an alias to another group?
> For example:
> lets say I created the group "wheel2" as an alias to "wheel".
> and lets also say that the file /foo/bar exists and that i change its
> group to "wheel2"
> so, when I run "ls -l /foo/bar", I want to see the following:
> -rwxrw-r--   1 some_user  wheel2  140 Jan 1  3000 foo
> on the other hand, if a progam (other than ls and find) is accessing
> this file, I want it to think it has the group "wheel".  In other
> words, I want to be able to tag files and directories using group
> names.

I haven't tested this so not sure it will work, but if you
edit /etc/group and give the second 'alias' group the same gid number it
will think it's the same group.

If your after multiple groups for the same directory, install ACL.

More information about the ubuntu-users mailing list