changing gid and uids

Douglas W O'neal doug at jhunix.HCF.JHU.EDU
Thu May 3 01:49:17 AEST 1990


In article <1397 at ns-mx.uiowa.edu> emcguire at cadfx.ccad.uiowa.edu (Ed McGuire) writes:
>    find $homedir -user $olduid -group $oldgid -print\
>     -exec chown $newuid.$newgid '{}' ';'

You should also remember to change /var/spool/mail/username to be owned
by the new uid.gid.

-- 
Doug O'Neal, Distributed Systems Programmer, Johns Hopkins University
doug at jhuvms.bitnet, doug at jhuvms.hcf.jhu.edu, mimsy!aplcen!jhunix!doug 
Like many of the features of UNIX, UUCP appears theoretically 
unworkable... - DEC Professional, April 1990



More information about the Comp.unix.questions mailing list