Re: how to automatically put files on all /home/user directories

2002-09-03 Thread smoke
hey mark, i was attempting to setup mail quotas. i couldnt make quota turn on with /var. since the mail is stored there, i wanted mail to be "diverted" into /home. i found a thread saying that i should put "mail.txt" file on the home directory so pine would pull it out /var/spool/mail when the

Re: how to automatically put files on all /home/user directories

2002-09-03 Thread Todd A. Jacobs
On Mon, 2 Sep 2002, Mike Burger wrote: > Actually, you could "touch /home/*/filename". Actually, you can't. This will only work if the file already exists, because of the way shell expansion works. You'll get a "no such file or directory" error if you try this on a file that doesn't exist. --

Re: how to automatically put files on all /home/user directories

2002-09-03 Thread Mark
Y'know, this is a little bit late, and I certainly haven't followed the whole thread, but as an experienced sysadmin, my first question is why do you *need* to put the file in every user's home directory? Is it something that's going to be run at login, or is it something that everyone will be

Re: how to automatically put files on all /home/user directories

2002-09-03 Thread Javier Gostling
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 effecti

Re: how to automatically put files on all /home/user directories

2002-09-03 Thread Wojtek Pilorz
On Mon, 2 Sep 2002, Mike Burger wrote: > Date: Mon, 2 Sep 2002 21:21:59 -0500 (EST) > From: Mike Burger <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: how to automatically put files on all /home/user directories > > Actua

Re: how to automatically put files on all /home/user directories

2002-09-03 Thread Wojtek Pilorz
On Mon, 2 Sep 2002, Mike Burger wrote: > Date: Mon, 2 Sep 2002 21:21:32 -0500 (EST) > From: Mike Burger <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: how to automatically put files on all /home/user directories > > Assuming

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Al Sparks
If you like the style of bash scripting, you should also check out perl, which is very (ba|k|c)sh like, and more. It also works across platforms including the Windows environment. It'll also help you with your boss's demands. === Al --- smoke <[EMAIL PROTECTED]> wrote: > hi! > > im a newbi

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Edward Dekkers
> > Try the Advanced Bash Scripting Guide at www.tldp.org > > Monte That'll do it. Thanks Monte Ed. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread smoke
hi! im a newbie linux user struggling to keep up with my bosses orders!lol! this list has been a great help! thanks so much for your responses regarding the home folders... ps i was quite overwhelmed by the line with "for in ( ls %usr) lol! wow! this one impressed me too! > > Actually, you

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Monte Milanuk
On Tue, 3 Sep 2002 10:34:37 +0800 "Edward Dekkers" <[EMAIL PROTECTED]> wrote: > > Something like: > > > > for user in $(ls /home); do touch /home/$user/newfilename; done > > > > Should work > > > > Bret > > Whoops - OK, so you can do it in one line. > > P.S. Bret - you know a quick beginners gu

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Bret Hughes
On Mon, 2002-09-02 at 21:21, Mike Burger wrote: > Actually, you could "touch /home/*/filename". > Very nice. Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Edward Dekkers
> Something like: > > for user in $(ls /home); do touch /home/$user/newfilename; done > > Should work > > Bret Whoops - OK, so you can do it in one line. P.S. Bret - you know a quick beginners guide to this sort of thing somewhere? I'd like to know a bit more about shell commands myself. No 100

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Mike Burger
Actually, you could "touch /home/*/filename". On Mon, 2 Sep 2002, smoke wrote: > thanks, > > i can use that too! but i have another 500+ existing > users, and it may take a bit of time to use "touch" > for every /home/user directory... is there a way to do > that? thank you! :) > > > --- Chri

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Mike Burger
Assuming you want to do this for all existing users, the best bet is going to be to: cp filename.extension /home/* On Mon, 2 Sep 2002, smoke wrote: > hi, > > how do i put the same file on all the user's home > directories. > > > > thanks > > ___

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Edward Dekkers
> On Mon, 2002-09-02 at 20:11, smoke wrote: > > hi, > > > > how do i put the same file on all the user's home > > directories. You'd have to create a script I think. something with 'find /home -maxdepth 1' to give you a list of user directories then piping it. I'm no good with these things but

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Anthony Abby
skel On Mon, 2002-09-02 at 20:11, smoke wrote: > hi, > > how do i put the same file on all the user's home > directories. > > > > thanks > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Bret Hughes
On Mon, 2002-09-02 at 19:53, smoke wrote: > thanks, > > i can use that too! but i have another 500+ existing > users, and it may take a bit of time to use "touch" > for every /home/user directory... is there a way to do > that? thank you! :) > Something like: for user in $(ls /home); do touch /

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread smoke
thanks, i can use that too! but i have another 500+ existing users, and it may take a bit of time to use "touch" for every /home/user directory... is there a way to do that? thank you! :) --- Chris Mason <[EMAIL PROTECTED]> wrote: > put it in /etc/skel - I think > Only works when you crreate th

Re: how to automatically put files on all /home/user directories

2002-09-02 Thread Chris Mason
put it in /etc/skel - I think Only works when you crreate the user. On Mon, 2002-09-02 at 20:11, smoke wrote: > hi, > > how do i put the same file on all the user's home > directories. > > > > thanks > > __ > Do You Yahoo!? > Yahoo! Finance - G

how to automatically put files on all /home/user directories

2002-09-02 Thread smoke
hi, how do i put the same file on all the user's home directories. thanks __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubsc