Linux group question

Richard England rlengland at verizon.net
Tue Mar 25 02:21:02 UTC 2008


kevin kempter wrote:
> Hi List;
>
> I have 2 users which both have need to access various database related 
> files.I've created a new group called 'dba'. Most of the time I want 
> the users to create files with their default user:group perms, however 
> when I'm working on these sql / db files I want the files to be 
> created with the default user as the owner but dba as the group.
>
> Is there a Linux command that will switch my primary group only until 
> I log out of a terminal or session ?
>
>
> Thanks in advance...
>
>
>
Don't hijack the thread.  If you have a new issue it is best to send 
original email directly to fedora-list at redhat.com rather than respond to 
another email message and change the subject.

 From the command line you can use  "newgrp gba". This will change the 
primary group for the user in that session to "gba".
Take a look at "man newgrp" for more explanation.

I don't know if there is a way to do this from the GUI or not.  I did 
not find one in the short search I did.

~~R





More information about the fedora-list mailing list