As expected, I have recieved a wealth of replies. They all fall into 2
catagories... Ahm, actually, they all fall into 3 catagories... 4 CATAGORIES,
thats it, they all fall into 4 catagories:
1. Use a tar pipe a'la "cd dir1; tar cf - . | (cd dir2; tar xvfBp - )", by far
the most popular.
2. Write a new account script and don't worry about trying to copy a link.
3. What you doing this yourself for! Use the /etc/skel mechanism... but watch
out, Greg Polanski points out that admintool uses 'cp -r' which we already know
DOES NOT preserve symbolic links :-(
4. rdist, that's the ticket...
Oh, any chance of avoiding those cc:Mail attachments... my CDE 1.0.1 dtmail
reads them about 50% of the time, though its a pain to wait for it to open a
seperate window just to read more text?
No one remembers a command to copy a link so that must be one of those false
memories, manufactured by my need to find something simple to do this.
My original question is attached...
My thanks to:
smcgee@helios.r07lab.epa.gov (Shaun)
Fedor Gnuchev <qwe@ht.eimb.rssi.ru>
shane.bouslough@peri.com (Shane Bouslough)
bern@penthesilea.uni-trier.de (Jochen Bern)
poffen@San-Jose.ate.slb.com (Russ Poffenberger)
Laurent Duperval <laurent@Grafnetix.COM>
karen@ecomon1.FMR.Com (Karen Barrett)
Milt Webb <milt@iqsc.com>
Wis Macomson <wis@sequent.com>
mattias@txc.com (Mattias Zhabinskiy)
gmp@adc.com (Gregory M Polanski)
"Win Htin" <winhtin@csfb.co.jp>
Marina.Daniels@ccd.tas.gov.au (Marina Daniels)
trond.isaksen@nopow.abb.no
crossmd@heu534.ha.uk.sbphrd.com
Claus Assmann <ca@informatik.uni-kiel.de>
stevee@sbei.com (Steve Ehrhardt)
hatcher@sbcm.com (Paul Hatcher)
Richard Aures <richard.aures@erlangen.netsurf.de>
Charles Best <charles@calfp.co.uk>
A.Chan@CdnAir.CA (Alan Chan)
Marc S. Gibian
Telos Consulting Services phone: (617) 377-6350
PRISM/TFS email: gibian@stars1.hanscom.af.mil
attached mail follows:
I have been searching various archives for far too long for this question, so I
tried to avoid sending this (and wanted to avoid RTFM replies):
I am setting up a prototype of our standard home directory tree. As a means of
saving space, and to allow automatic updating of those files users can not
modify on their own, I am linking some files to the prototype home directory
rather than copying them. Additionally, some items in the prototype are symbolic
links to other locations. For this latter catagory, I would like to simply copy
the link from the prototype directory into each new user's home directory. I am
pretty sure there was a very simple way to do this many years ago, but now that
I need to do it again, I can't come up with it. The "best" I can do right now is
to setup a pipe to echo the filename to cpio, and that is not very satisfying.
TIA,
Marc S. Gibian
Telos Consulting Services phone: (617) 377-6350
PRISM/TFS email: gibian@stars1.hanscom.af.mil
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:08 CDT