Linux-Misc Digest #28, Volume #25                 Mon, 3 Jul 00 00:13:02 EDT

Contents:
  Re: mind hours in development Linux vs. Windows (Charlie Ebert)
  [Q] ps command? ("Andrew Park")
  Re: newsreader for Linux? (Grant Edwards)
  Re: linux programming doubt (Grant Edwards)
  Re: Wrong major/minor number ("Andrew E. Schulman")
  Re: Start boot service as different user? ([EMAIL PROTECTED])
  plink in SuSE (Palm connectivity) (Chris Hegan)
  Re: Host your own site (or email) at home (John Hasler)
  Re: floppy in DOS format (Grant Edwards)
  Re: floppy in DOS format (Grant Edwards)
  Re: dial up ("Dr. Darren M. Crotchett")
  Re: [Q] ps command? ("David ..")
  Re: [Q] ps command? (Matthew Haley)
  Copying one file to many directories, How? (David)
  Re: floppy in DOS format (Mary P)
  Re: Printer driver (Jim Jerzycke)
  Re: Anyone know these programs/utilities...?? (Matt Sturing)
  Re: Linux & Windows Coexist? ([EMAIL PROTECTED])
  Re: floppy in DOS format ([EMAIL PROTECTED])
  Re: floppy in DOS format ([EMAIL PROTECTED])
  Re: newsreader for Linux? ([EMAIL PROTECTED])
  Re: Copying one file to many directories, How? (Akira Yamanita)
  Setting the Password Length (Robert Love)
  FTP as root, how to? (Robert Love)

----------------------------------------------------------------------------

From: Charlie Ebert <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: mind hours in development Linux vs. Windows
Date: Mon, 03 Jul 2000 02:06:07 GMT

Steve Mading wrote:

> In comp.os.linux.advocacy Charlie Ebert <[EMAIL PROTECTED]> wrote:
>
> : Yes, Linux wins as it's a world wide effort.
> : They have in-excess of 100,000 people working on Linux world wide.
>
> I'm curious, what does this figure count?  Kernel-only developers,
> or does it include anyone who's worked on the GPL'ed apps that come
> with Linux?  (100,000 seems a big high for just the kernel hackers,
> but a bit low for all people who've ever been on a GPL project.)
>

You are correct sir.

The 100,000 people are working on everything you see in a typical
distribution,
not just the kernel.



>
> --
> -- ------------------------------------------------------------------
>  Steven L. Mading  at  BioMagResBank   (BMRB). UW-Madison
>  Programmer/Analyst/(acting SysAdmin)  mailto:[EMAIL PROTECTED]
>  B1108C, Biochem Addition / 433 Babcock Dr / Madison, WI 53706-1544




------------------------------

From: "Andrew Park" <[EMAIL PROTECTED]>
Subject: [Q] ps command?
Date: Mon, 3 Jul 2000 11:09:13 +0900

In the output result of ps command, for example, ps -aux,
the "COMMAND" section is truncated because the screen width is limited to 80
columns.
Is there any way to see the full command with ps command?
Thanks in advance.
Any comment will be deeply appreciated.





------------------------------

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: newsreader for Linux?
Date: Mon, 03 Jul 2000 02:16:14 GMT

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:

>Is there a newsreader available for Linux? I get the news files via UUCP
>would like to read them in Linux instead of DOS. Thanks.

slrn is the best newsreader for Linux: 

  http://www.slrn.org/

Don't let anybody tell you any differently, and remember to configure it to
use the jed editor in mail-mode as the text editor for composing posts.

  http://space.mit.edu/~davis/jed/

Oh, and mutt is the definitive MUA.  

  http://www.mutt.org/

You should also use jed in mail-mode to compose e-mails.
  
While some might claim the above is just my opinion, they're wrong. It's a
provable result of the basic structure of space-time.  String theory and all
that.  

Yea, that's it.

-- 
Grant Edwards                   grante             Yow!  I'm thinking about
                                  at               DIGITAL READ-OUT systems
                               visi.com            and computer-generated
                                                   IMAGE FORMATIONS...

------------------------------

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: linux programming doubt
Date: Mon, 03 Jul 2000 02:19:05 GMT

In article <[EMAIL PROTECTED]>, Bjoern Frantzen wrote:

>>I need to know how i can find the name of a file if all i have is the
>>inode of that file... Im trying to do a lseek, but i dont have the file
>>descriptor, only the inode...
>
>As far as I know, there is no way to do what you want without traversing the
>whole filesystem. And if it was possible, which of the many filenames should
>be returned to you in the case of hardlinks?

And in addition to multiple names, a file may also have zero names.

-- 
Grant Edwards                   grante             Yow!  Vote for ME
                                  at               -- I'm well-tapered,
                               visi.com            half-cocked, ill-conceived
                                                   and TAX-DEFERRED!

------------------------------

From: "Andrew E. Schulman" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Wrong major/minor number
Date: Sun, 02 Jul 2000 22:23:58 -0400

> Just tried it and am still getting the major/minor number error.
> 
> If you have any trouble shooting suggestions, I'd appreciate hearing.
> 
> Thanks
> 
> "Andrew E. Schulman" wrote:
> 
> > > when I execute
> > >
> > > mount /dev/fd0 /mnt/floppy
> > >
> > > i received the error
> > >
> > > mount:  /dev/fd0 has wrong major or minor number.
> > >
> > > I'm assuming I've munged the floppy device and have to use MAKEDEV to
> > > reconstruct it.  The question is how do I go about doing just that?
> >
> > rm /dev/fd0
> > MAKEDEV fd0

Hm, so maybe the problem isn't really the major/minor device numbers. 
On my system /dev/fd0 is major 2, minor 0.  Check this by 'ls -l
/dev/fd0'.  You should get something like

brw-rw----  root      root     2,    0  /dev/fd0

So if that's correct, then try Equinox' suggestion for making sure the
modules are loaded.

If that fails, then there are probably other things to try, but what's
worked for me in the past is to rebuild the kernel.  I had a floppy
drive that worked fine under Windows but never did work under Linux
(drive light came on, but I never could mount anything).  Finally I
rebuilt my kernel and the problem disappeared.

Good luck,
Andrew.

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: Start boot service as different user?
Date: Mon, 3 Jul 2000 02:30:59 +0100

[EMAIL PROTECTED] did eloquently scribble:
>> man su
>>
>> However, I have not figured out how to get su to inherit the user's
>> environment AND run a program.  

It's simple... I didn't even have to read the man page.
:)

su -c <program> - <username>

-- 
=============================================================================
|   [EMAIL PROTECTED]   |   Windows95 (noun): 32 bit extensions and a    |
|                          | graphical shell for a 16 bit patch to an 8 bit |
|Andrew Halliwell BSc(hons)| operating system originally  coded for a 4 bit |
|            in            |microprocessor, written by a 2 bit company, that|
|     Computer Science     |        can't stand 1 bit of competition.       |
=============================================================================

------------------------------

From: Chris Hegan <[EMAIL PROTECTED]>
Subject: plink in SuSE (Palm connectivity)
Date: Mon, 03 Jul 2000 02:45:57 GMT

Trying to make jpilot work in SuSE, I have installed the 'plink'
package, which is extravagantly described as a really cool package to
synchronise with your Palm pilot. Well, it isn't.
However I do prefer SuSE over Red Hat, although on RH making
 pilot-link
work is a no-brainer.
When I try to sync my palm device via jpilot, I get an error message:
=20
pi_bind Input/output error
Check your serial port and settings.
I have searched the files in the plink package but cannot find any
reference to pi-bind.
I have placed a symlink in /dev linking /dev/pilot to /dev/ttys0.=20
No dice.
Any suggestions?

------------------------------

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: Host your own site (or email) at home
Date: Mon, 3 Jul 2000 01:41:38 GMT

David Steuber writes:
> Before I noticed fetchmail bouncing the occasional message,...

Make sure these lines are in your .fetchmailrc:

set no bouncemail
antispam -1

-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin

------------------------------

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: floppy in DOS format
Date: Mon, 03 Jul 2000 02:54:52 GMT

In article <yXR75.20802$[EMAIL PROTECTED]>, Bryan Kelly wrote:

>mount: wrong fs type, bad option, bad superblock on dev/fd0, or too many
>mounted file systems.
>
>Ok, so which is it.  The floppy is ok as I just wrote this file to it.  (A
>Win 98 formated floppy.

The vague error result from a "mount" system call sucks.  Everybody admits
it sucks, and it's sucked for as long as I've used Unix (15 years) but it's
sort of too late to fix it, and now we're stuck with it.  Of course, as a
Microsoft customer, being stuck with misfeatures because of historical goofs
is pretty much par for the course.  Unix users have higher expectations, so 
the "mount error message" is still a burr under my saddle after all these
years.  But you didn't really want to hear about that...

>Will someone please correct this list of commands:
>
>  # mount a floppy in the drive many systems call a:
>mount /dev/fdo

On all of my systems, I've created an empty directory named /a where I mount
DOS floppies.  To mount a foppy with a DOS filesystem on it:

$ mount -t msdos /dev/fd0 /a

That's fd0 (zero) not fdo (oh).

Sometimes you can leave off the -t msdos part and the kernel will figure out
what the file system is automatically -- it depends on how your system is
set up:

$ mount /dev/fd0 /a

I don't know what "Win 98 formatted" is, but if "-t msdos" doesn't work, try

$ mount -t vfat /dev/fd0 /a

If you put the following line in /etc/fstab, then a simple "mount /a" will
work, even as a normal user.  I find this quite handy:

/dev/fd0     /a           msdos   noauto,user     0 0


>  # copy a file to the floppy
>cp   /home/bryan/text.txt   /dev/fdo

$ cp /home/bryan/text.txt /a

You can also use the "mtools" commands to manipulate an MS-DOS floppy
_without_ mounting it:  Mtools is pretty populer with ex DOS-users, but us
old time Unix users find it hard to shift gears mentally, so we just use
the normal Unix mount, cp, umount semantics.

$ mcopy /home/bryan/text.txt a:

>  # unmount the floppy
>umount   /dev/fro

$ umount /a
 or
$ umount /dev/fd0

>  # format a floppy so that Win 98 will like it

One would think that the following would work, but on my system it doesn't:

$ mkfs -t msdos /dev/fd0   # deosn't work
$ mkfs -t vfat /dev/fd0    # doesn't work either

However, the mtools package has another way to do it:

$ mformat a:

>  # format a floppy for this and other unix systems

Usually when Unix geeks hand floppies around, they don't put filesystems on
them.  They copy the files to/from the floppy using "tar" (which treats the
floppy like a sequential-access device like a tape drive).  If you're a
hard-core AT&T guy you might use cpio instead of tar, but most Linux users
would probably use tar.

To put files onto a floppy:

$ tar czvf /dev/fd0 file1.txt file2.txt   # puts two files on floppy

Tar will recusively descend any directoy name you give it, so you can copy
everything in and under the current directory to the floppy with:

$ tar czvf /dev/fd0 .                     # puts whole directory tree

To see what files are on a tar floppy:

$ tar tzvf /dev/fd0

To extract them

$ tar xzvf /dev/fd0 [filenames optional]

In all of the above examples the 'z' means to do on-the-fly compression and
decompression. If you don't want that, leave the 'z' out, the 'v' means to
be verbose about it and list what's going on as it happens, the 'f' means
we're specifing what file to use "/dev/fd0" instead of teh defualt tape
device (which on most Unix systems defaults to something useless).  'c'
means create, 't' means list a table of contents, and 'x' means extract.

$ man tar



If you really want to format a floppy with a filesystem:

$ mkfs -t <fstype> /dev/fd0

where fstype is ext2, minix, whatever.  

I put a filesystem on a floppy once in order to make a LILO boot floppy that
didn't need to read anything from a hard drive to work, but that's the only
time in 6 years of Linux use I rememeber putting a filesystem on a floppy.

I'm sure that was way more than you wanted to hear...

-- 
Grant Edwards                   grante             Yow!  I'm also against
                                  at               BODY-SURFING!!
                               visi.com            

------------------------------

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: floppy in DOS format
Date: Mon, 03 Jul 2000 02:56:59 GMT

In article <1wS75.21249$[EMAIL PROTECTED]>, Bryan Kelly wrote:
>When I posted the original I could not read the news group. (Something from
>my IPS about error 441 and server problem).  Since then I tried again and
>found an earlier message about copying to floppies.
>
>In there Cliff Pennock wrote to use:
>   mount /dev/fdo /floppy
>and
>   mount -t vfat /dev/fdo /floppy
>
>I tried both and on the second got the message that only root can do that.
>I su'ed to root and got the message
>   /floppy does not exist
>What should I try now?

Does the directory /floppy exist?  If not, do a 

# mkdir /floppy

and then try again:

# mount -t vfat /dev/fd0 /floppy
                       ^
                        And that's a zero, not an oh.                  

-- 
Grant Edwards                   grante             Yow!  Look! A ladder! Maybe
                                  at               it leads to heaven, or
                               visi.com            a sandwich!

------------------------------

From: "Dr. Darren M. Crotchett" <[EMAIL PROTECTED]>
Subject: Re: dial up
Date: Sun, 2 Jul 2000 05:33:48 -0500

The DNS IP numbers are in resolve.conf, aren't they?  Example:

nameserver 208.137.128.8

Darren


<[EMAIL PROTECTED]> wrote in message news:395fac43$[EMAIL PROTECTED]...
> Dr. Darren M. Crotchett <[EMAIL PROTECTED]> wrote:
> > I'm using Mandrake 7.1.  I'm having trouble communicating outside of my
home
> > network.  Using kppp, I can connect to my ISP without a problem.  I stay
> > connected until my ISP finally disconnects me (about 20 min).  My
problem
> > comes when I try to view web pages.  My browser can't find them.  I
tried
> > telnet and ping.  Neither one works.
>
> It sounds like you haven't got the DNS IP addresses set correctly. Check
> with your ISP for what they are.



------------------------------

From: "David .." <[EMAIL PROTECTED]>
Subject: Re: [Q] ps command?
Date: Sun, 02 Jul 2000 21:51:01 -0500

Andrew Park wrote:
> 
> In the output result of ps command, for example, ps -aux,
> the "COMMAND" section is truncated because the screen width is limited to 80
> columns.
> Is there any way to see the full command with ps command?
> Thanks in advance.
> Any comment will be deeply appreciated.

ps aux | less
ps aux | more

-- 
Registered with the Linux Counter.  http://counter.li.org
ID # 123538

------------------------------

From: [EMAIL PROTECTED] (Matthew Haley)
Subject: Re: [Q] ps command?
Date: Mon, 03 Jul 2000 05:16:46 GMT

On Mon, 3 Jul 2000 11:09:13 +0900,
 Andrew Park <[EMAIL PROTECTED]> wrote:
> In the output result of ps command, for example, ps -aux,
> the "COMMAND" section is truncated because the screen width is limited to 80
> columns.
> Is there any way to see the full command with ps command?

$ ps -auxw


-- 
Matt Haley <[EMAIL PROTECTED]>
Now showing... Linux-Mandrake 7.02

------------------------------

From: [EMAIL PROTECTED] (David)
Subject: Copying one file to many directories, How?
Date: Mon, 03 Jul 2000 03:26:17 GMT

Hi,

How do I copy one file to multiple directories? I have several hundred
diectories so I would like to use wild cards or something similar.

Thanks.

David.

------------------------------

From: [EMAIL PROTECTED] (Mary P)
Subject: Re: floppy in DOS format
Date: 3 Jul 2000 03:29:38 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 2 Jul 2000 21:42:46 -0400, Bryan Kelly
 <[EMAIL PROTECTED]> wrote:

>   mount /dev/fdo /floppy
>and
>   mount -t vfat /dev/fdo /floppy
>
>I tried both and on the second got the message
 that only root can do that.
>I su'ed to root and got the message
>   /floppy does not exist
>What should I try now?

Don't know why this would make any difference, but
in Running Linux (O'Reilly) they want you to use

mount -t vfat /dev/fd0 /mnt

(instead of /floppy)

In my OTHER reference (Linux4Dummies 2nd Ed) it
has you use

mount /dev/fd0 /mnt/floppy


O'Reilly cautions you: "be sure the mount point 
you're trying to use (such as /mnt) exists. If not,
you can simply create it with the mkdir command."

Yet another reference of mine (Debian GNU/Linux
Guide to Installation and Usage) (you can tell I've
been experimenting here) has you go

more /etc/fstab

to see what your filesystem table looks like. It
should have in its first column the device the file
system is on (fd0) and then the mount point for that
file system (whether it's /floppy, /mnt/floppy, or 
whatever). 

So if you don't want to create a new mount point,
you could that to find out what your system already has
configured.

Hope some of that helps you sort it out.

MP


-- 
    _
   . .
    V
  // \\
 //   \\
  (W W)

------------------------------

From: Jim Jerzycke <[EMAIL PROTECTED]>
Subject: Re: Printer driver
Date: Mon, 03 Jul 2000 03:31:59 +0000

Epson has their head where the sun don't shine when it comes to Linux.
You'll have your best luck using the uniprint driver and GhostScript. It
works fine with my STC600.
Regards, Jim


------------------------------

From: Matt Sturing <[EMAIL PROTECTED]>
Subject: Re: Anyone know these programs/utilities...??
Date: Sun, 02 Jul 2000 22:38:20 -0600

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> From: Hendrix <[EMAIL PROTECTED]>
> 
> Hi guys,
> 
> I'm looking for copies of the following files...  If anyone can tell
>  me
> where to get them, please email...  It would save me a lot of
>  trouble,
> and I would greatly appreciate it...  Thanks...
> 
> 1. file   
> 2. flex
> 
> I'd like to have the site of the group/individual who maintains these
> programs...
> 
> Sincerely,


You should be able to find flex at www.gnu.org.  Try here:

http://www.gnu.org/software/flex/flex.html

I don't know where to find file except on the debian homepage.



------------------------------

From: [EMAIL PROTECTED]
Subject: Re: Linux & Windows Coexist?
Date: Mon, 3 Jul 2000 04:06:35 +0100

Brian <[EMAIL PROTECTED]> did eloquently scribble:
> Can I duel boot Linux on the same physical drive as Win 98......Or even
> better can I boot to Linux on a seperate physical drive using a boot disk?

Yes. You can do either and more. Such as booting from the hard disk with
linux on one hard disk and windows on the other.

All these wondrous features are a part of the standard linux bootloader
called LILO.

> What Linux OS should I use? What's the diff. from Red Hat to Mandrake?

Mandrake's based on Red Hat, but is... well... MORE and BETTER.
Personally, I like SuSE though.

-- 
=============================================================================
|   [EMAIL PROTECTED]   |   Windows95 (noun): 32 bit extensions and a    |
|                          | graphical shell for a 16 bit patch to an 8 bit |
|Andrew Halliwell BSc(hons)| operating system originally  coded for a 4 bit |
|            in            |microprocessor, written by a 2 bit company, that|
|     Computer Science     |        can't stand 1 bit of competition.       |
=============================================================================

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: floppy in DOS format
Date: Mon, 3 Jul 2000 04:01:12 +0100

Bryan Kelly <[EMAIL PROTECTED]> did eloquently scribble:
> mount a floppy
> I am a Windows user and am learning how to use Linux.  I now need to copy
> files between my Win 98 machine and Linux machine.  My only transport
> mechanism is floppy, but I cannot seem to get the mount command right.  When
> I attempt to mount a floppy I get:
> mount: wrong fs type, bad option, bad superblock on dev/fd0, or too many
> mounted file systems.

> Ok, so which is it.  The floppy is ok as I just wrote this file to it.  (A
> Win 98 formated floppy.  Will someone please correct this list of commands:

>   # mount a floppy in the drive many systems call a:
> mount /dev/fdo

mount -t auto /dev/fd0 /mountpoint

Where the mountpoint is a directory created for the task, such as /floppy or
/mnt/floppy

Alternatively, you could install and use mtools...
You don't need to worry about mounting then.

Just use

mcp /home/bryan/text.txt a:

>   # copy a file to the floppy
> cp   /home/bryan/text.txt   /dev/fdo

No, cp /home/bryan/text/txt /mountpoint

>   # unmount the floppy
> umount   /dev/fro

umount /mountpoint or umount /dev/fd0

>   # format a floppy so that Win 98 will like it
> ?

mkdosfs /dev/fd0

or using mtools

mformat a:
mbadblocks a:

>   # format a floppy for this and other unix systems
> ?

DOS is the best filesystem for a floppy. It tends to be readable on just
about any disk based system in existence. e2fs is an efficient storage
mechanism for high volume devices like hard disks, but would take up more
room on a floppy than a simple DOSfs.


-- 
=============================================================================
|   [EMAIL PROTECTED]   |   Windows95 (noun): 32 bit extensions and a    |
|                          | graphical shell for a 16 bit patch to an 8 bit |
|Andrew Halliwell BSc(hons)| operating system originally  coded for a 4 bit |
|            in            |microprocessor, written by a 2 bit company, that|
|     Computer Science     |        can't stand 1 bit of competition.       |
=============================================================================

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: floppy in DOS format
Date: Mon, 3 Jul 2000 04:03:01 +0100

Bryan Kelly <[EMAIL PROTECTED]> did eloquently scribble:
> I just attempted to post a reply to my own message indicating that I found a
> post that said to do exactly that.  The first response was to click the
> floppy drive then tell me only root can do that.  I su'ed to root and tried
> again.  Then is said
>     /floppy does not exist.

> Well, yes it does.  My machine won't boot directly off the hard drive and
> boots off the floppy every time.  (then automagically switches over to the
> hard drive and finishes the boot)

No. It said /floppy: no such file or directory, most likely.
This means the mount point /floppy doesn't exist.

mkdir /floppy

Then it should work.


-- 
=============================================================================
|   [EMAIL PROTECTED]   |   Windows95 (noun): 32 bit extensions and a    |
|                          | graphical shell for a 16 bit patch to an 8 bit |
|Andrew Halliwell BSc(hons)| operating system originally  coded for a 4 bit |
|            in            |microprocessor, written by a 2 bit company, that|
|     Computer Science     |        can't stand 1 bit of competition.       |
=============================================================================

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: newsreader for Linux?
Date: Mon, 3 Jul 2000 03:50:58 +0100

Grant Edwards <[EMAIL PROTECTED]> did eloquently scribble:
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:

>>Is there a newsreader available for Linux? I get the news files via UUCP
>>would like to read them in Linux instead of DOS. Thanks.

> slrn is the best newsreader for Linux: 

>   http://www.slrn.org/

> Don't let anybody tell you any differently, and remember to configure it to
> use the jed editor in mail-mode as the text editor for composing posts.

It's all a subjective thing. There is no *BEST* anything in linux.
It's the best for you, but not the best for me. I like tin.
As for jed, again, use whatever editor suits YOU, but don't try to impose
your preference on someone else. I'd recommend joe, personally.

>   http://space.mit.edu/~davis/jed/

> Oh, and mutt is the definitive MUA.  

Again... define definitive.
Elm for me.

> While some might claim the above is just my opinion, they're wrong. 

Rubbish. Of course it's JUST you're opinion. If anything else were the case,
why do all the other news/e-mail/editors EXIST?

Answer: Because other people think THEY are the best.

> It's a provable result of the basic structure of space-time.  String
> theory and all that.

You must be from a different quantum reality from me... I wonder at which
point in time our two timelines diverged?
:)


-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   | "Are you pondering what I'm pondering Pinky?"   |
|Andrew Halliwell BSc(hons)|                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |
==============================================================================

------------------------------

From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: Copying one file to many directories, How?
Date: Mon, 03 Jul 2000 03:44:47 GMT

David wrote:
> 
> Hi,
> 
> How do I copy one file to multiple directories? I have several hundred
> diectories so I would like to use wild cards or something similar.
> 
> Thanks.
> 
> David.

You may be better served by letting us know why you would want
to do something like that. There may be alternate means rather
than copying a file to numerous directories. But anyway, to
fully answer your question...

I'm not sure what directories you're planning to copy the file to
but the script below will copy the files to all the directories
beneath the one you're currently at.

#!/bin/sh
for i in $(find . -type d)
do
        cp $1 $i
done

Call it with "/path/scriptname file_to_copy"

Or on one line at a shell prompt:
for i in $(find . -type d); do cp $1 $i; done

A quick modification will let you copy it to the directories
under the one you specify. Call it with
"/path/scriptname file_to_copy /destination/directory"

#!/bin/sh
for i in $(find $2 -type d)
do
        cp $1 $i
done

------------------------------

From: Robert Love <[EMAIL PROTECTED]>
Subject: Setting the Password Length
Date: 01 Jul 2000 19:07:09 -0500

Have RH 6.2 and formerly used Linuxconf to be able to set the 
length of the password.  This doesn't work anymore.  When I 
to set my customary 5 char password it is rejected as too
short.  Don't tell me to use a longer password.  That machine
is not on the network.

What is the new RH way to configure password policies?

-- 
=============================================================
| Support Signature Minimalism                              |
=============================================================

------------------------------

From: Robert Love <[EMAIL PROTECTED]>
Subject: FTP as root, how to?
Date: 01 Jul 2000 19:12:40 -0500

I'm setting up the new machine and want to move stuff off the 
old machine.  I have them networked.  I can FTP to and from 
in my personal accounts.  I can't move things from one root 
account to the other.  I agree this makes security sense but 
what can I do to enable this for a day or so until I get the
new machine set up?  

I have both machines at home, networked together but no outside
connection without some work on my part so I don't see it as
a security risk.

Thanx for all advice.

-- 
Bob

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to