Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change GroupID

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello I am running Solaris 5.6. How\where do I change the ID number of a group?

I can see a /etc/group file that lists my groups but I am not sure if this is the ideal place to change it.

Thanks for your time. Michael

MCSE NT\2000, UNIX, Novell
Java, JSP, ASP, VB
 
Yeah.. you can change the group id in the /etc/group file..

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
if you're adding a new group, you can always use the 'groupadd' command
 
Great, thanks for the confirmation guys! Michael
 
Michael,

I'm not sure if this is an issue with Solaris, but my experience with other operating systems has sometimes been that if you change the uid/gid, you need also to change the attributes of any file which relies on them, as the gid is used rather than the group name in this context. It may be (and I hope so) that this isn't the case here, but I'd be wary. Cheers.
 
Ken:

I hav tried this on Solaris and works good. No issues.

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top