LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-01-2005, 02:11 PM   #1
dirtybird04
LQ Newbie
 
Registered: Aug 2004
Distribution: Centos, Ubuntu
Posts: 16

Rep: Reputation: 0
changing groups


a real noob question

im a member of multiple groups. When i log in, my gid is set to a particular group. Here's the question: how do I change my effective gid to another group im part of?

thanks
 
Old 06-01-2005, 03:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Edit /etc/passwd ... the fourth field.


Cheers,
Tink
 
Old 06-01-2005, 10:17 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
If you want to change your effective group ID on-the-fly, use the newgrp command. You can read about it with man newgrp.
 
Old 06-02-2005, 08:49 AM   #4
dirtybird04
LQ Newbie
 
Registered: Aug 2004
Distribution: Centos, Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 0
ahh..newgrp is exactly what i was looking for. it was right under my eyes and i totally missed it *sigh*

thanks a bunch for your help, i really appreciate it
 
  


Reply


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
groups (system default groups) Xavius Linux - General 2 07-18-2012 03:50 AM
Map Windows NT Groups to UNIX Groups - why? kenji1903 Linux - Networking 4 10-16-2007 12:52 PM
limit to nesting groups within groups? geekgrl Linux - General 3 10-16-2007 12:50 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 03:58 AM
Groups members of other groups bentz Linux - Security 6 06-23-2003 12:23 AM


All times are GMT -5. The time now is 02:45 PM.

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