home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bcrka451!norm
- From: norm@bnr.ca (Norm MacNeil)
- Subject: Re: changing all accounts on a file system
- Message-ID: <1992Sep1.132207.19703@bcrka451.bnr.ca>
- Originator: norm@bcrks122
- Sender: 5E00 Corkstown News Server
- Reply-To: norm@bnr.ca
- Organization: Bell-Northern Research Ltd.
- References: <9208311550.AA17695@louvre.wbst147.xerox.com>
- Date: Tue, 1 Sep 1992 13:22:07 GMT
- Lines: 24
-
-
- In article <9208311550.AA17695@louvre.wbst147.xerox.com>, leisner@eso.mc.xerox.com (Marty Leisner 311/? x?) writes:
- >
- > What's a good program/script to go from one password database to another password database?
- >
- > I.e., all files owned by an old user will be changed to ownership by a new user...
- >
-
- If the old user ID (uid) is, say, 47, and the new user name is, say, joe:
-
- find / -user 47 -exec chown joe {}\;
-
- or if you want to avoid chowning NFS-mounted stuff:
-
- find / -xdev -user 47 -exec chown joe {}\;
-
-
- Norm.
- --
- +-----------------------------------------------------------------------+
- Norm MacNeil Phone: (613) 763-7497
- CAD Operation Fax: (613) 763-3317
- Bell-Northern Research Ltd. EMail: norm@bnr.ca (INTERNET)
- #include <disclaimer.std> "Roller bladers do it in-line!"
-