Simple enough. I have user foo. foo belongs to groups foo (main), audio, A, B and common.
Normally files are created with ownership foo.foo.
For a while I would like foo to create files with group common. Basically I see it this way:
Cache present group Change group to *common* Touch alpha Touch beta ... Change group back.
alpha beta ( and anything after ) should be created with owner foo.common. How can I accomplish this?
PS: Oops. Forgot to say that I want to do this in both bash and zsh.