Linux-Misc Digest #422, Volume #24               Wed, 10 May 00 06:13:01 EDT

Contents:
  Samba (Rafael)
  Re: Samba writing problem! (Andrew Williams)
  Re: Can't export PATH from shell script (Koos Pol)
  Re: Need solid facts: Why Linux over NT (Koos Pol)
  Re: SCSI devices and SMP kernels (Eric)
  Re: Can't export PATH from shell script (Rafael)
  Damaged tar.gz file (Hoosain Madhi)
  Re: Can't export PATH from shell script (Rafael)
  NYC LOCAL: 10 May 2000 GNU/Linux/FreeOS Beginners' Meeting: Alex Khalil will answer 
questions ([EMAIL PROTECTED])
  Re: ftp and scp (John McKown)
  size of xterms (Christian Wenz)
  a reccuren XFS problem (G. Asch)
  Re: Damaged tar.gz file (Eric)
  Re: file splitting for cdr backup ("Conor Daly")
  Re: Can't export PATH from shell script (rob)

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

From: Rafael <[EMAIL PROTECTED]>
Subject: Samba
Date: Wed, 10 May 2000 10:13:02 +0200
Reply-To: [EMAIL PROTECTED]

When I trying to change password as a user I getinng:
getsmbfilepwent:Malformed Lanman password entry (non hex chars)

Whats that

Rafael


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

From: Andrew Williams <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: Samba writing problem!
Date: Wed, 10 May 2000 10:13:51 +0200
Reply-To: [EMAIL PROTECTED]

This is probably outside Samba altogether.  Try:
chmod 766 /home  (or better still 1766)
with 766, anyone can overwrite or delete anything
with 1766 they can only rape their own stuff (I believe)




Mark wrote:
> 
> Hi,
> I set below lines in the share part of smb.conf:
> 
> [myshare]
> available = yes
> path = /home
> public = yes
> guest only = no
> create mode = 755
> read only = no
> writeable = yes
> write ok = yes
> browseable = yes
> only user = no
> 
> I can browse the /home in Win98, but I can't write on it, why?
> Thanks for any helps!
> 
> Mark.

-- 
Mielipiteet omiani - Opinions personal, facts suspect, especially on my
        http://home.germany.net/101-69082/samba.html
Simple Samba Solutions web page.                            ICQ 1722461

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

From: [EMAIL PROTECTED] (Koos Pol)
Subject: Re: Can't export PATH from shell script
Date: 10 May 2000 07:57:24 GMT
Reply-To: [EMAIL PROTECTED]

On Wed, 10 May 2000 09:18:58 +0200, Rafael
<[EMAIL PROTECTED]> wrote:
| Please help
| Why I can't set PATH from the shell script:
| 
| #!/bin/bash
| PATH=$PATH:/home/bafi
| export PATH
| echo $PATH
| 
| Script work because echo was executed and PATH was done, but after
| script execution PATH is old, like before execution.  Whats the problem?

A new shell (child) will run the script, set the variables and exit.
So when the script is done, the child shell will have died and the variables
will be gone.
You need to run the script in the *current* shell:
. script.sh  # note the leading . (dot)

Koos Pol
======================================================================
S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]

Check my email address when you hit "Reply".

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

From: [EMAIL PROTECTED] (Koos Pol)
Subject: Re: Need solid facts: Why Linux over NT
Date: 10 May 2000 08:01:21 GMT
Reply-To: [EMAIL PROTECTED]

On Wed, 10 May 2000 02:10:48 GMT, Jim Morrissey <[EMAIL PROTECTED]> wrote:
| I need to put together a presentation to convince management to use
| Linux rather than NT. To do this properly and succeed, I need solid
| facts and figures on why Linux is the better OS. Any help or pointers to
| URL's that cover this topic would be well appreciated! 
| 
|       -Jim

It really depends. I can think of dozens of reasons why -in a particular
situation- I would choose NT over Linux.
So you should define your needs first, before we could help you think
objectively.

Koos Pol
======================================================================
S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]

Check my email address when you hit "Reply".

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

Crossposted-To: comp.os.linux.setup
From: Eric <[EMAIL PROTECTED]>
Subject: Re: SCSI devices and SMP kernels
Date: Wed, 10 May 2000 07:58:20 GMT
Reply-To: [EMAIL PROTECTED]

Just to make sure: you didn't make the partition where the kernel
resides (possibly in /boot) too large so it crosses the 1024th cylinder?

Eric

Pierre Vigneras wrote:
> 
> Johan Kullstam wrote:
> >
> > Eric <[EMAIL PROTECTED]> writes:
> >
> > > Henrique Seganfredo wrote:
> > > >
> > > > Anybody here knows about the behaviour of SMP kernels with SCSI drivers?
> > > >
> > > > I am trying to set up a right out of the box RPM package with a SMP
> > > > kernel (the same version non SMP is already running)...when I boot, I
> > > > get "kernel panic" cause the root fs (on sda1) could not be mounted due
> > > > a problem loading the aic7xxx.o module....no, its not a version issue or
> > > > something like that....
> > > >
> > > > ...some dudes told me that I can't use some SCSI drivers with SMP
> > > > kernels...is that a fact?
> > > >
> > > you can't have scsi support as a module if you want to boot from a scsi
> > > disc
> > > it must be compiled into your kernel
> >
> > this is not quite true.  you can put the scsi module on an initial
> > ramdisk (initrd).  this is what most distributions do because
> > compiling every possible scsi driver into their kernel would be a bit
> > much.
> >
> > however, i agree that it is a damned good recommendation.  if you can
> > compile yourself a kernel, by all means build the scsi driver into it.
> 
> That's what i did, but i got a
> "kernel panic" too : "unable to mount on /dev/sda2".
> 
> I did compile the scsi drive into the kernel.
> And moreover, i have :
> 
> [root@moucheron /boot]# rdev vmlinuz-2.2.14smp
> Root device /dev/sda2
> [root@moucheron /boot]#
> 
> which is the current root device :
> 
> [root@moucheron /boot]# rdev
> /dev/sda2 /
> [root@moucheron /boot]#
> 
> Running lilo show :
> 
> [root@moucheron /boot]# lilo -v
> LILO version 21, Copyright 1992-1998 Werner Almesberger
> 
> Reading boot sector from /dev/sda
> Merging with /boot/boot.b
> Boot image: /boot/vmlinuz-2.2.12-20smp
> Mapping RAM disk /boot/initrd-2.2.12-20smp.img
> Added linux *
> Boot image: /boot/vmlinuz-2.2.12-20
> Mapping RAM disk /boot/initrd-2.2.12-20.img
> Added linux-up
> Boot image: /boot/vmlinuz-2.2.14smp
> Added new
> /boot/boot.0800 exists - no backup copy made.
> Writing boot sector.
> [root@moucheron /boot]#
> 
> But booting my new kernel is always a kernel panic !
> i don't understand why !
> I suppose the redhat ramdisk as set a strange /boot/map:
> 
> [root@moucheron /boot]# ls -al
> total 10781
> drwxr-xr-x   2 root     root         1024 May 10 09:33 .
> drwxr-xr-x  24 root     root         1024 Mar  2 15:19 ..
> lrwxrwxrwx   1 root     root           20 Feb 11 18:19 System.map ->
> System.map 2.2.12-20
> -rw-r--r--   1 root     root       191102 Sep 27  1999
> System.map-2.2.12-20
> -rw-r--r--   1 root     root       182834 Sep 27  1999
> System.map-2.2.12-20BOOT
> -rw-r--r--   1 root     root       202226 Sep 27  1999
> System.map-2.2.12-20smp
> -rw-r--r--   1 root     root          512 Jul  9  1999 boot.0800
> -rw-r--r--   1 root     root         4568 May  5 11:47 boot.b
> -rw-r--r--   1 root     root          612 Sep 22  1999 chain.b
> -rw-r--r--   1 root     root       313673 Feb 11 18:26
> initrd-2.2.12-20.img
> -rw-r--r--   1 root     root       314036 Feb 11 18:26
> initrd-2.2.12-20smp.img
> -rw-r--r--   1 root     root       308009 Jul  9  1999
> initrd-2.2.5-15.img
> -rw-r--r--   1 root     root       308488 Jul  9  1999
> initrd-2.2.5-15smp.img
> lrwxrwxrwx   1 root     root           22 Jul 31  1999
> initrd-2.2.5-22smp.img -  initrd-2.2.5-15smp.img
> -rw-r--r--   1 root     root       695162 Jul 31  1999
> kernel-2.2.5-22smp.my
> -rw-r--r--   1 root     root          237 May  5 12:18 kernel.h
> -rw-------   1 root     root        30720 May 10 09:33 map
> lrwxrwxrwx   1 root     root           21 Feb 11 18:19 module-info ->
> module-in o-2.2.12-20
> -rw-r--r--   1 root     root        11773 Sep 27  1999
> module-info-2.2.12-20
> -rw-r--r--   1 root     root        11773 Sep 27  1999
> module-info-2.2.12-20smp
> -rw-r--r--   1 root     root          620 Sep 22  1999 os2_d.b
> -rwxr-xr-x   1 root     root      1544394 Sep 27  1999 vmlinux-2.2.12-20
> -rwxr-xr-x   1 root     root      1469971 Sep 27  1999
> vmlinux-2.2.12-20BOOT
> -rwxr-xr-x   1 root     root      1647660 Sep 27  1999
> vmlinux-2.2.12-20smp
> lrwxrwxrwx   1 root     root           17 Feb 11 18:19 vmlinuz ->
> vmlinuz-2.2.1 -20
> -rw-r--r--   1 root     root       622784 Sep 27  1999 vmlinuz-2.2.12-20
> -rw-r--r--   1 root     root       592397 Sep 27  1999
> vmlinuz-2.2.12-20BOOT
> -rw-r--r--   1 root     root       647807 Sep 27  1999
> vmlinuz-2.2.12-20smp
> -rw-r--r--   1 root     root       453234 May  5 09:29 vmlinuz-2.2.14smp
> -rw-r--r--   1 root     root       709302 Jul 23  1999
> vmlinuz-2.2.5-15smp.new
> -rw-r--r--   1 root     root       695161 Aug  6  1999
> vmlinuz-2.2.5-22smp.new
> [root@moucheron /boot]#
> 
> Can i remove some of this files (System.map*) ?? What are their use (i
> know ps use it, for its WCHAN field, but is there another use ??) ? What
> are module-info* files ? Can i remove some of this files ?
> 
> Here my /etc/lilo.conf :
> 
> [root@moucheron /boot]# cat /etc/lilo.conf
> boot=/dev/sda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> default=linux
> 
> image=/boot/vmlinuz-2.2.12-20smp
>         label=linux
>         initrd=/boot/initrd-2.2.12-20smp.img
>         read-only
>         root=/dev/sda2
> 
> image=/boot/vmlinuz-2.2.12-20
>         label=linux-up
>         initrd=/boot/initrd-2.2.12-20.img
>         read-only
>         root=/dev/sda2
> 
> image=/boot/vmlinuz-2.2.14smp
>         label=new
>         read-only
>         root=/dev/sda2
>         vga=ask
> 
> [root@moucheron /boot]#
> 
> My new kernel is /boot/vmlinuz-2.2.14smp (which i can't boot like
> describe above).
> 
> --
> Pierre Vign�ras
> http://dept-info.labri.u-bordeaux.fr/~vigneras/
> 
> Equipe syst�mes et objets distribu�s
> http://jccf.labri.u-bordeaux.fr/jodo/
> 
> LaBRI
> http://dept-info.labri.u-bordeaux.fr/
> 
>   ------------------------------------------------------------------------
> 
>                          Name: vigneras.vcf
>    vigneras.vcf          Type: VCard (text/x-vcard)
>                      Encoding: 7bit
>                   Description: Card for Pierre Vigneras

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

From: Rafael <[EMAIL PROTECTED]>
Subject: Re: Can't export PATH from shell script
Date: Wed, 10 May 2000 10:36:44 +0200
Reply-To: [EMAIL PROTECTED]



Koos Pol wrote:

> On Wed, 10 May 2000 09:18:58 +0200, Rafael
> <[EMAIL PROTECTED]> wrote:
> | Please help
> | Why I can't set PATH from the shell script:
> |
> | #!/bin/bash
> | PATH=$PATH:/home/bafi
> | export PATH
> | echo $PATH
> |
> | Script work because echo was executed and PATH was done, but after
> | script execution PATH is old, like before execution.  Whats the problem?
>
> A new shell (child) will run the script, set the variables and exit.
> So when the script is done, the child shell will have died and the variables
> will be gone.
> You need to run the script in the *current* shell:
> . script.sh  # note the leading . (dot)
>
> Koos Pol
> ----------------------------------------------------------------------
> S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
> T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]
>
> Check my email address when you hit "Reply".


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

Date: Wed, 10 May 2000 10:34:46 +0200
From: Hoosain Madhi <[EMAIL PROTECTED]>
Subject: Damaged tar.gz file

I have a damaged tar.gz file and was wondering if there is a utility to
fix it.

I get the following error

madhih:~$ tar xzvf home.tar.gz

gzip: stdin: invalid compressed data--format violated
tar : Unexpected EOF on archive
tar : Child returned status 1
tar : Error exit delayed from previous errors



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

From: Rafael <[EMAIL PROTECTED]>
Subject: Re: Can't export PATH from shell script
Date: Wed, 10 May 2000 10:38:54 +0200
Reply-To: [EMAIL PROTECTED]

Thank you, your help was great it working. But what to do if I want run such
script automaticaly for example from at.

Robert O'Brien wrote:

> I presume you're running the script like
> $ ./my_set_path.sh
> Try
> $ . ./my_set_path.sh
> or
> $ source ./my_set_path.sh
>
> The first method causes a new process to be started.  This will die and as a
> result, the environment including PATH will cease to be.
> The other methods run the scripts as part of this process.
> HTH
> -rob-
>
> Rafael wrote:
>
> > Please help
> > Why I can't set PATH from the shell script:
> >
> > #!/bin/bash
> > PATH=$PATH:/home/bafi
> > export PATH
> > echo $PATH
> >
> > Script work because echo was executed and PATH was done, but after
> > script execution PATH is old, like before execution.  Whats the problem?
> >
> > I can do this only directly from command prompt. And its working.
> > Script have all needed rights, done by chmod 755 (chmod 777)
> > <file_name>, I am logged as a root.
> >
> > Rafael


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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.advocacy,comp.unix.bsd.freebsd.misc
Subject: NYC LOCAL: 10 May 2000 GNU/Linux/FreeOS Beginners' Meeting: Alex Khalil will 
answer questions
Date: 10 May 2000 04:37:03 -0400

The next GNU/Linux/FreeOS Beginners' Meeting will be on Wednesday,
May 10. 

The previously scheduled presentation for this date has been postponed.  
Since many have wanted questions answered on a variety of subjects that
might well be of interest to the group as a whole and yet probably
wouldn't otherwise be covered in regular presentations for quite a while
we are setting aside this meeting to give you an opportunity to have more
time for questions and answers.  The details of the meeting are as
follows:

Wednesday, May 10
    6:30-8:30 Alex Khalil
    Full Q&A Session - bring your questions
    at CALC/Canterbury, 780 Third Ave. C-1

As usual, the most up-to-date information will be on our web page
http://www.eskimo.com/~lo/linux

A few of the topics likely to be discussed at this meeting are
ppp-setup, minicom, editors, etc.

(A mailto for questions you will want to ask at this meeting may be
added to the webpage section announcing this meeting to allow for
submission of questions in advance.)

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>


Distributed poC TINC:

Jay Sulzberger <[EMAIL PROTECTED]>
Corresponding Secretary LXNY
LXNY is New York's Free Computing Organization.
http://www.lxny.org

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

From: [EMAIL PROTECTED] (John McKown)
Subject: Re: ftp and scp
Date: Wed, 10 May 2000 03:22:35 -0500

On Wed, 10 May 2000 01:40:39 -0230, Neil Zanella <[EMAIL PROTECTED]> wrote:
]>
]>Hello,
]>
]>Is there a better way than scp to ftp files using
]>the scure shell protocol. That is, it would be nice
]>if there were a program that worked just like ftp
]>but used the scp protocol. The problem with scp is
]>that it's not interactive. I like to be able to
]>see the directories at the other site when transfering
]>files. Does anyone know of such a nifty ssh-based application?

Try "Secure ftp" from http://www.xbill.org/sftp

Note that I haven't tried this, but found it via freshmeat. If you ever want
to try to find stuff, I've found this site (http://freshmeat.net) to be
quite useful.

John

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

From: Christian Wenz <[EMAIL PROTECTED]>
Subject: size of xterms
Date: Wed, 10 May 2000 11:07:46 +0200

i like to know how to force the size of the xterm at the comand-line.
i mean not the geometry of the window, the size of the fonts.

-- 
I LOVE I LOVE YOU WORMS

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

Subject: a reccuren XFS problem
Reply-To: G. Asch <[EMAIL PROTECTED]>
From: G. Asch <[EMAIL PROTECTED]>
Date: 10 May 2000 03:03:59 -0400




every now and then ( 3 time  on 3 machines) the god of random recurrence
decided to mess with my mandrake/redhat installation and cause the X server
to refuse to load.

It was easy to diagnose the problem as xfs failure to gain a resource. And I 
could solve the problem by starting the daemon as root in /etc/rc.d/init.d/xfs.

However, I couldn't find the problematic resource. /tmp was my suspicion but 
I checked its permissions and they were OK. 


What causes the problem to develop and what is the naughty resource ? any one knows ?


Thanks for reading.

GA
-- 
_________________________________________________________

Gabriel Asch
Email: [EMAIL PROTECTED]

!!! Note: to foil spammers,
if you reply by email, your message must either contain a
proper Reference header or you must quote !this line!

    "in a sense, you are already dead"
                                   J. L. Borges
                           
________________________________________________________


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

From: Eric <[EMAIL PROTECTED]>
Subject: Re: Damaged tar.gz file
Date: Wed, 10 May 2000 08:48:37 GMT
Reply-To: [EMAIL PROTECTED]

Hoosain Madhi wrote:
> 
> I have a damaged tar.gz file and was wondering if there is a utility to
> fix it.
> 
> I get the following error
> 
> madhih:~$ tar xzvf home.tar.gz
> 
> gzip: stdin: invalid compressed data--format violated
> tar : Unexpected EOF on archive
> tar : Child returned status 1
> tar : Error exit delayed from previous errors
Are you sure it's a gzipped file, just having the extensions doesn't
mean it's gzipped, try viewing the file with a hex/text viewer or try
tar -tf home.tar.gz to see if it's just tarred and not zipped.

Eric

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

From: "Conor Daly" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,linux.samba
Subject: Re: file splitting for cdr backup
Date: Wed, 10 May 2000 10:30:49 +0100

You could look at "dump" which will allow you to specify the size of a
backup medium and will ask for the next volume when required.  I don't
remember the syntax of the command

You could try something like

dump -0 -B 640 -b 1024 -f dump.out /

when prompted for the next volume, first do a

mv dump.out dump_00.out

Then answer "yes" to dump
Repeat this until the dump is complete, incrementing the dump_xx.out index
each time.

How you would automate this is left as an exercise for the reader!!
--
Conor Daly
===============================
[EMAIL PROTECTED]
===============================

ChemSoft GmbH wrote in message <8fb2pq$d98$[EMAIL PROTECTED]>...
>hi all,
>
>i try to backup an 10GB harddisk to cdr. now i�m looking for a way to make
>first a backup with tar to get a big tar-file. then i want to split this
big
>file into several 650MB parts to make isos and burn it onto cdrs.
>is this possible? i think i only need an file-splitter?
>or is there a better way to make backup on cdr.
>i want to use this way cause of letting do all except the burn process
>automatically.
>
>thanks for all help
>
>Tobias
>
>



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

From: rob <[EMAIL PROTECTED]>
Subject: Re: Can't export PATH from shell script
Date: Wed, 10 May 2000 11:07:27 +0100

Try something like:

## at_script.sh
. $SCRIPT_DIR/set_path.sh
# end at_script.sh

##set_path.sh
PATH=$PATH:/home/bafi
export PATH
#end set_path.sh

-rob-

> Thank you, your help was great it working. But what to do if I want run such
> script automaticaly for example from at.
>
> Robert O'Brien wrote:
>
> > I presume you're running the script like
> > $ ./my_set_path.sh
> > Try
> > $ . ./my_set_path.sh
> > or
> > $ source ./my_set_path.sh
> >
> > The first method causes a new process to be started.  This will die and as a
> > result, the environment including PATH will cease to be.
> > The other methods run the scripts as part of this process.
> > HTH
> > -rob-
> >
> > Rafael wrote:
> >
> > > Please help
> > > Why I can't set PATH from the shell script:
> > >
> > > #!/bin/bash
> > > PATH=$PATH:/home/bafi
> > > export PATH
> > > echo $PATH
> > >
> > > Script work because echo was executed and PATH was done, but after
> > > script execution PATH is old, like before execution.  Whats the problem?
> > >
> > > I can do this only directly from command prompt. And its working.
> > > Script have all needed rights, done by chmod 755 (chmod 777)
> > > <file_name>, I am logged as a root.
> > >
> > > Rafael


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


** 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