[sf-lug] mass copy of one file to multiple user accounts

Tom Haddon tom at greenleaftech.net
Tue Sep 2 11:07:55 PDT 2008

On Tue, 2008-09-02 at 10:53 -0700, Justin Ryan wrote:
> 2008/9/2 Christian Einfeldt <einfeldt at gmail.com>:
> > hi
> >
> > On Tue, Sep 2, 2008 at 9:35 AM, Tom Haddon <tom at greenleaftech.net> wrote:
> >>
> >> Might be easier to just serve the file from a location they can all
> >> access (an internal web server, for instance)?
> >
> > Is there an easy way of doing that?  Thanks for your help, Tom!
> >
> I'd say it's a bit overkill to run a webserver on the loopback
> interface for a globally accessible file. 

I'm not suggesting running a web server of a loopback interface. By
internal, I simply meant "internal to the organization".

>  If this file is crucial to
> all users, mention its' location in your motd / network.issue, and
> just put it somewhere like:
>   * /usr/local/share
>   * /opt/important.things
>   * whatever makes you happy
> Make sure the directory and file are either:
>   * group readable and owned by a group all the users belong to
>   * world readable
> Make sure they aren't writable by said group, world, etc..
> If you *really* want to make it available in users' home directories,
> you can use hard links, so long as you don't cross any filesystem
> boundaries, e.g. linking to a file on "/" volume when home directories
> are on a separate volume for "/home".  This is easy enough with the
> 'ln' command:
>   cd /home
>   for i in *; do ln $important_file $(pwd)/important.file; done
> This will just be painful to manage as you add people, if you put a
> copy of the hard link in your skel, it'll be replicated via copy.
> Come to think of it, you could use a symlink for this, not sure why I
> thought it needed a hard link.  Just add "-s" flag to the "ln" command
> above.

You don't cover how to copy it to 200 machines. This is what serving it
from an internally accessible web server is trying to avoid. 

Cheers, Tom

> Best!
> J
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://linuxmafia.com/pipermail/sf-lug/attachments/20080902/ab0c7590/attachment.pgp>

More information about the sf-lug mailing list