Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-25-2006, 03:20 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 8

Rep: Reputation: 0
swet gid

Is it possible to set my default group id in BASH? I'm not root on the computer. the thing is that the genious who wrote the distro made it sot that my default group is my user name too, so there is no point in having a group at all. I have files that I want to share with a group that is already setup... It's just getting it there. Anything would be better than umask 000 in my book

edited to include: DARN IT! title should be "set group id"

Last edited by kampow; 07-25-2006 at 03:25 PM.
Old 07-25-2006, 05:44 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Are you a member of this group? Assuming so, you can use 'newgrp GROUPNAME' to change your current groupid. If you wish to make it persistent, then you can place that in your .bash_profile.
Old 07-25-2006, 07:35 PM   #3
LQ Newbie
Registered: Jul 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Wow, that should do it. Problem: it's solaris and even though the documentation claims that group passwords are antiquated, and also claims that I only need it if I'm not a member (a call to groups says that I am) I still need to enter a password that I don't have. Oh well, thanks for the tip.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
set gid linuxtesting2 Solaris / OpenSolaris 2 06-18-2006 03:18 PM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
Changing GID in X dxdad Linux - Software 2 03-22-2004 09:45 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration