Groupmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--bX/mw5riLlTkt+Gv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jun 25, 2002 at 01:10:47PM -0700, Jefferson Cowart wrote:
> I have realized that my /etc/passwd and /etc/group files are a little
> bit of a mess in terms of uids and gids. As a result I'm trying to
> change uids and gids for many of the accounts. I am being careful to
> check config files and such to make sure that I don't break something as
> I do this. My major problem that I have run into is that groupmod
> doesn't change group ownership privileges on files/folders when I change
> the GID of a group. Usermod does change the ownership so I am able to
> adjust them without much worry. Is there any way to make it so group mod
> will change the ownership when I change a group gid? Failing that is
> there a way I can search for all files on my system owned by a certain
> group. If I can get that I can just pipe that back into something to
> chmod them all. TIA

# find / -gid <oldgidnumber> -exec chgrp <newgidnumber> {} \;

This is the only reliable way to make sure the gid is changed for all
files, and in fact runs the same way as any utilities you might have
that change uids or gids for you.

Steve Langasek
postmodern programmer

--bX/mw5riLlTkt+Gv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9GNAPKN6ufymYLloRAqriAJ4uC9VgoveNX5hcRtbMbVKTir8fmwCeIHaw
IHvUNavX1QJjSPgPjQjtMRY=
=uDaE
-----END PGP SIGNATURE-----

--bX/mw5riLlTkt+Gv--





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux