change group name and gid for all files of given old group name or old gid

change group name and gid for all files of given old group name or old gid

Post by Mario Desideri » Sat, 21 Mar 1998 04:00:00



Hello,

I need to reorganize group names and gid in a server.

If possible could you send me the command line or korn shell to change
to a new group id number and new group name for all the files of a given
old group name or old gid in all the file systems.

Off course, new group name and new gid have already being defined in
/etc/group and also user have being updated to new gid in /etc/passwd.

Thank you very much,

Mario Desiderio

 
 
 

change group name and gid for all files of given old group name or old gid

Post by Lo?c Torta » Sat, 21 Mar 1998 04:00:00


It seems the easiest way to do it is to use 'find'.
Try a command like this (as root):

 find / -group <old group name> -print | xargs chgrp <new group name>

The previous command assumes the old group name to be '/etc/group', if
it's not, replace '<old group name>' with '<old gid>'.

Loic Tortay,
System Administrator
KADE-TECH
France


> Hello,

> I need to reorganize group names and gid in a server.

> If possible could you send me the command line or korn shell to change
> to a new group id number and new group name for all the files of a given
> old group name or old gid in all the file systems.

> Off course, new group name and new gid have already being defined in
> /etc/group and also user have being updated to new gid in /etc/passwd.

> Thank you very much,

> Mario Desiderio


 
 
 

1. change to new gid or new group name all files of given group name or gid

Hello,

I need to reorganize group names and gid in a server.

If possible could you send me the command line or korn shell to change
to a new group id number and new group name for all the files of a given
old group name or old gid in all the file systems.

Off course, new group name and new gid have already being defined in
/etc/group and also user have being updated to new gid in /etc/passwd.

Thank you very much,

Mario Desiderio

2. Thread creation/switch times on Linux and NT (was Re: Linux users working at Microsoft!)

3. change group id for all files of a given group name ?

4. Wisecom modem: no dial tone

5. Change a particular group's GID on files system-wide

6. Is term any faster than SLIP?

7. Changed host name - why does old name linger in sendmail?

8. grsphics problem

9. no subscribed groups in 'group.name'

10. X Windows and my old old old old video card

11. ls -l displays numeric group id-not group name

12. change a group of file names?