LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-21-2004, 12:55 AM   #1
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Exclamation /etc/group File Query


I have noticed that everytime I create a new group it increments taking into account what the last GID was e.g. If my last GID was 600 and I added a new group, it would be assigned the GID 601. My question relates to how can I have the group take over the GID of a deleted group rather than increment to a new number. e.g. I deleted a group with GID 511 and would want any new group I created to take over this number.

1) Is this advisable?
2) What are the implications?
3) Any other suggestions?

Thank You.
 
Old 07-21-2004, 01:02 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
groupadd -g gid_number group_name

If that deleted group is not in /etc/group then no problem
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 02:30 PM
adding an entry to /etc/fstab file and another query Tinku Linux - General 3 08-11-2004 09:35 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 05:01 PM
C++ reading from text file query lrt2003 Programming 5 05-15-2004 05:25 AM
mySQL redirecting query result to a .txt file! buttersoft Linux - Software 8 12-12-2003 04:05 AM


All times are GMT -5. The time now is 05:25 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration