Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94752

Summary: Incomplete group renaming in sys-apps/slocate-2.7-r8
Product: Gentoo Linux Reporter: Yuri Vasilevski (RETIRED) <yvasilev>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch

Description Yuri Vasilevski (RETIRED) gentoo-dev 2005-06-01 10:34:34 UTC
The group renaming form 'slocate' to 'locate' should be done with:

# groupmod -n locate slocate

instead of:

# sed -i s/^slocate:/locate:/ /etc/group

As groupmod modifies both /etc/group and /etc/gshadow which should have
consistent information.

Yuri.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
# sed -i s/^slocate:/locate:/ /etc/group
# grep locate /etc/group  
locate:x:245:
# grep locate /etc/gshadow
slocate:::

Expected Results:  
# groupmod -n locate slocate
# grep locate /etc/group
locate:x:245:
# grep locate /etc/gshadow
locate:::
Comment 1 Yuri Vasilevski (RETIRED) gentoo-dev 2005-06-01 10:54:39 UTC
Created attachment 60385 [details, diff]
ebuild patch
Comment 2 SpanKY gentoo-dev 2005-06-01 15:24:16 UTC
thanks, that is a much better way to rename

added to portage