How to change default group?

Hi frnds,

I would like to change my default group.
I tried using newgrp, but it will change the group in that xterm only.
If i open a new xterm that setting is gone.
Also i tried by putting newgrp <my_grp> into the file .cshrc which will be run during startup. Eventhough its working, it is giving a lot of errors while a new xterm is opened. Also i am not able to exit, the windoe remains open even if i give exit command.

Thanks in advance,
Alex :slight_smile:

Only alternative is if you are not root, to ask your admin... (change GID in /etc/passwd file...)

1 Like

I have access to passwrd file. bUt not able to findout GID inside that

Thanks
Appu

forth (4) field :separated ...
The next after after your UID

1 Like

Always use "usermod" (or whatever command is applicable to your O/S) rather than editing /etc/passwd.

1 Like

If you don't have root, you can try to newgrp in your .profile or .login or .whatever

1 Like