Article View: comp.unix.large
Article #3Re: Network wide UID/GID Finder Changer
From: Thomas Gehringer US/ESS2
Date: Mon, 02 Nov 1992 14:28
Date: Mon, 02 Nov 1992 14:28
49 lines
2409 bytes
2409 bytes
In article <1992Oct31.164410.25984@colorado.edu>, Tom Christiansen <tchrist@convex.COM> writes:
|> From the keyboard of acker@se01.wg2.waii.com:
|> :We are trying to consolidate about 8 different password files into one
|> :master password file. I would like to know if someone has a script that
|> :will go out and change the UID/GID from the old to the new all over the
|> :network.
...
|> but if you have a simpler mapping, it will work fine. I've seen
|> versions that go down to the inodes and munge, and thus run much
|> faster, but I don't have a copy of these. You can get mvids from
I have an improved copy of a program handling this for SunOS
which was recently posted in alt.sources by
| Mike J. Fuller | Internet: mikef@sarah.lerc.nasa.gov | "I hate |
|----------------| mikef@zippysun.math.uakron.edu | quotations." |
|/\/\/\/\/\/\/\/\| Bitnet: r2mjf@akronvm | -- R.W. Emerson |
It takes a list of the form:
{g|u} olduid newuid
on standard input and remaps all of the given UIDs/GIDs on a raw filesystem.
For example, to change UID 42 to 69, 69 to 42, and GID 52 to 105 on a UFS floppy
disk, you would do something like:
% uidchange /dev/rfd0c /var/tmp/checkpoint
u 42 69
u 69 42
g 52 105
^D
It scans through the inode-table of a raw (unmounted) partition and changes
user and/or group ids as configured in the standard input. Cycles are handled.
And it is *very* fast!
Email me and i'll send you a copy.
Disclaimer: I've not written the program, all i did was adding the simultanous
handling UIDs _and_ GIDs.
Thomas
--
Thomas Gehringer Teamleader Network Services
Alcatel SEL, US/ESS +47-711-821-71472 (tel)
Lorenzstr. 10 +47-711-821-7045 (fax)
D-W7000 Stuttgart 40 gehringe@us-es.sel.de
--
God is real, unless declared integer.
Technical Details
Message-ID:
<1992Nov2.142826.12345@us-es.sel.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!slsvaat!us-es.sel.de!gehringeReferences:
<1992Oct23.141308@se05.wg2.waii.com> <1992Oct31.164410.25984@colorado.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.large Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!slsvaat!us-es.sel.de!gehringe From: gehringe@us-es.sel.de (Thomas Gehringer US/ESS2) Subject: Re: Network wide UID/GID Finder Changer Message-ID: <1992Nov2.142826.12345@us-es.sel.de> Sender: news@us-es.sel.de Organization: SEL-Alcatel Line Transmission Systems Dept. US/ES References: <1992Oct23.141308@se05.wg2.waii.com> <1992Oct31.164410.25984@colorado.edu> Date: Mon, 2 Nov 92 14:28:26 GMT Lines: 49