Re: Script to copy files to all users?

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

 



On Mon, 2002-11-11 at 15:22, Jesse Keating wrote:
> On Mon, 11 Nov 2002 19:57:27 +0000
> "Brian Johnson" <bjohnson@jecinc.on.ca> wrote:
> 
> # 
> # I'm looking for a script that would allow me to copy a file (or
> # bunch of files) to all of the user's home directories - it would be
> # handy for upgrading .wine configuration files and also openoffice
> # .sversionrc files (probably other files on occasion too).  Anyone
> # have a link to one?
> 
> no, but I can come up with one real quick:
> 
> for user in `ls /home/` ; do cp $file $user/ done;
> 
> replace $file with the file you want to copy.

Don't forget to chown the copied files to $user. 

-- 
**********************************************************************
Chris Kloiber, RHCE                                  Red Hat,Inc.
Hardware Certification            aka                1801 Varsity Dr.
Enterprise Support             "WireHead"            Raleigh, NC 27606
**********************************************************************



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux