On Mon, Sep 02, 2002 at 09:21:32PM -0500, Mike Burger wrote:

> Assuming you want to do this for all existing users, the best bet is going 
> to be to:
> 
> cp filename.extension /home/*

Bad idea. The shell will expand this into

cp filename.extension /home/dir1 /home/dir2 ...

which will effectively put the file in the last directory entry, as well as
all other home directories.

The solution using for in an earlier post is much cleaner. Also beware if
your /home is on a separate filesystem. You will have a lost+found directory
in /home.

Cheers,
-- 
Javier Gostling
Ingeniero de Sistemas
Virtualia S.A.
[EMAIL PROTECTED]
Fono: +56 (2) 202-6264 x 130
Fax: +56 (2) 342-8763

Av. Kennedy 5757, of 1502
Las Condes
Santiago
Chile

Attachment: msg87229/pgp00000.pgp
Description: PGP signature

Reply via email to