home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / admin / 4810 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.3 KB  |  38 lines

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