samba digest, Vol 1 #105 - 15 msgs

Pam Wales pwales at cdpr.ca.gov
Tue Oct 10 05:24:19 GMT 2000


This is one of those nifty auto-responses from Pam Wales's computer to yours:

     =     +     =     +     =     +     =     +     =     +     =     +     =     +     = 

Hi!
I am out of the office for a vacation until October 16, 2000.  
I will respond to your e-mail when I return.

Cheers!
Pam  :-)


>>> samba 10/09/00 21:23 >>>

Send samba mailing list submissions to
	samba at lists.samba.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.samba.org/mailman/listinfo/samba
or, via email, send a message with subject or body 'help' to
	samba-request at lists.samba.org

You can reach the person managing the list at
	samba-admin at lists.samba.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of samba digest..."


Today's Topics:

  1. Rubbish on digest list (Kerry Koppert)
  2. smbd (596348N at knotes.kodak.com)
  3. Re: Samba Dropping Mounts - "Broken Pipe" msgs (auto852 at hushmail.com)
  4. Re: Samba Dropping Mounts - "Broken Pipe" msgs (Urban Widmark)
  5. Problem using masquerading and samba (Frank Dzaebel)
  6. Re: Digest format again (Manuel Bessler)
  7. Re: Problem using masquerading and samba (Eduardo Diaz Uriarte)
  8. Re: Undelete for Samba (Mike Fedyk)
  9. Re: Undelete for Samba (Mike Fedyk)
  10. Help: Samba printing from w2k. Works fine but no paper from
 printer! (Bradley C. Goldsmith)
  11. Win Millennium support (monsted at tux.nerdheaven.dk)
  12. compile error (Jim_Park at acl.com.au)
  13. Problem (and fix) with HP-UX PAM (bryan quigley)
  14. Continued problem w/ smbmount & dir permissions (Brian Poole)

--__--__--

Message: 1
From: "Kerry Koppert" <K.KOPPERT at taranaki.ac.nz>
Organization: Taranaki Polytechnic, NZ
To: samba at us4.samba.org
Date: Tue, 10 Oct 2000 08:20:16 GMT+1200
Subject: Rubbish on digest list
Reply-To: k.koppert at taranaki.ac.nz

Darn it, I'm getting really annoyed (well midly irritated) with this 
list. I can stand the duplicate messages I'm getting now I know they 
happen every know and then, I simply delete the duplicates. I am 
however getting annoyed with the html attachments. Couldn't someone 
write a script to parse incoming messages and remove these. I am also 
really annoyed everytime someone goes on acation an bounces the 
previous message back to the list with the complete previous digest 
as attached.

>   4. Re: samba digest, Vol 1 #97 - 12 msgs (Pam Wales)

Kerry Koppert
k.koppert at taranaki.ac.nz


--__--__--

Message: 2
From: 596348N at knotes.kodak.com
To: samba at us4.samba.org
Date: Mon, 9 Oct 2000 15:52:03 -0400
Subject: smbd



From: Andrew Imes

Is there someone who has seen this and maybe could offer a solution?
When I run Top on a Sun system using Solaris 2.51 and Samba is running.
Some of the time but
Not all of the time I will see the smbd using around 94% of the CPU.




--__--__--

Message: 3
From: auto852 at hushmail.com
Date: Mon, 9 Oct 2000 13:35:20 -0800 (PDT)
Cc: samba at us4.samba.org
To: Urban Widmark <urban at svenskatest.se>
Subject: Re: Samba Dropping Mounts - "Broken Pipe" msgs

--Hushpart_boundary_WPotPprAJkvVxNtyIpmWdqKIXPvaWxHR
Content-type: text/plain


At Mon, 9 Oct 2000 14:11:45 +0200 (CEST), Urban Widmark <urban at svenskatest.se> 
wrote:

>
>On Sun, 8 Oct 2000 auto852 at hushmail.com wrote:
>
>> Thanks again Urb, :) ok well in alan's 2.2.18 kernel ftp dir there 
>was/is
>> a readme that says the patch is for 2.2.17.20 but anyways...we applied 
>the
>> patches 2.2.17-pre20 and then 2.2.18pre10 and recompiled the kernel 
>but....
>>
>> 1) the patches were looking for directories that didn't exist on Redhat
>> 6.2 kernel 2.2.16-3 so we skipped passed them and recompiled the kernel
>> the kernel anway. It looked like it patched quite a bit but after 
>recompiling
>> the kernel version hadn't changed.
>
>If the kernel version doesn't change, then you are not running the new
>kernel.
>
>The patch is not for a RedHat kernel. It is vs Linux kernel 2.2.17, 
>not
>RedHat kernel 2.2.16-3, there is a difference. You probably (hopefully)
>got a few errors compiling so it never actually built anything.

nope amazingly enough there were no errors on the actual compile...it was 
just during patching that we had to skip past things the patches were looking 
for but didn't exist.

>If I wasn't clear enough, I'm suggesting you build and boot a non-RedHat
>kernel. Put the new kernel on a floppy or use a separate machine to 
>avoid
>messing up your existing system.

ok thanks for being clearer. :) I am still new to this stuff tho, so how 
exactly do I build a non-redhat kernel? I have someone with a few years 
of linux experience who has been helping out but he couldn't figure it out 
and samba is driving him nuts so he just wants us to build another system 
that recognizes larger drives instead (which we cannot afford at this time 
and either way I would like to get samba fully functional even if and when 
we build another box in the future) so could you do me/us a HUGE favor and 
point us in the right direction? please. :) 

>> 3) I also have a problem with the permissions changing after remounting.
>> Half of the mounts permissions change for no reason while the other 
>half
>> of the mounts are what they are supposed to be. (and all the shares 
>on the
>> NT side have the same identical permissions).
>
>Please give an example of what the permissions were before and what 
>they
>are after.

before: drwxr-xr-x   after:  dr-xr-xr-x
but this only happens with aproximately half of the mounted directories 
(out of aproximately 15 dirs)
I have tried chmodding 777 all the dirs (after unmounting) and then remounting 
but same effect.
The only difference between the mapped/mounted folders/dirs with the changed 
permissions and those that are not are all the folders with the changed/messed 
up permissions all begin with underscores.
I hope that makes no difference. :)

>/Urban
>
--Hushpart_boundary_WPotPprAJkvVxNtyIpmWdqKIXPvaWxHR--


IMPORTANT NOTICE:  If you are not using HushMail, this message could have been read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.





--__--__--

Message: 4
Date: Mon, 9 Oct 2000 23:47:57 +0200 (CEST)
From: Urban Widmark <urban at svenskatest.se>
To: auto852 at hushmail.com
Cc: samba at us4.samba.org
Subject: Re: Samba Dropping Mounts - "Broken Pipe" msgs

On Mon, 9 Oct 2000 auto852 at hushmail.com wrote:

> ok thanks for being clearer. :) I am still new to this stuff tho, so how 
> exactly do I build a non-redhat kernel? I have someone with a few years 
> of linux experience who has been helping out but he couldn't figure it out 
> and samba is driving him nuts so he just wants us to build another system 
> that recognizes larger drives instead (which we cannot afford at this time 
> and either way I would like to get samba fully functional even if and when 
> we build another box in the future) so could you do me/us a HUGE favor and 
> point us in the right direction? please. :) 

I believe I included something in my last mail, and this pointer. Did you
read all of my mail?

http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html

Read it carefully. Understand what you need to do.

Download linux-2.2.17.tar.gz from here:
  ftp://ftp.xx.kernel.org/pub/linux/kernel/v2.2/
And pre-patch-2.2.18-15.gz from here:
  ftp://ftp.xx.kernel.org/pub/linux/kernel/people/alan/2.2.18pre/

Where xx is your country code (like us or something).

After unpacking the kernel source there is a README inside that explains
everything. Read that one too. It even describes how to apply the
pre-patch (except that the patch-kernel script doesn't understand
pre-patches).

Configuring the kernel is an important step, it requires you to pick
drivers for your hardware, filesystems and so. Almost all options have a
help section attached, go through everything and read the help on all
options you are uncertain what they do.

Don't experiment on production systems. Don't panic.

/Urban



--__--__--

Message: 5
Reply-To: <frank_mailinglist at dzaebel.de>
From: "Frank Dzaebel" <frank_mailinglist at dzaebel.de>
To: <samba at lists.samba.org>
Subject: Problem using masquerading and samba
Date: Tue, 10 Oct 2000 00:55:24 +0200
boundary="----=_NextPart_000_0004_01C03254.C5B7C290"

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C03254.C5B7C290
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi there...

I have got a problem using samba and masquerading at the same time. My
private LAN looks as follows:

                                                                   |
 Computer A -------------------------- Computer B ------------------INTERNET
 (Win2000)     LAN (100Mbit/s)    Linux kernel 2.2.14,       ISDN  |
                                  samba 2.0.7, masquerading,
                                  64MB RAM, AMD K62-350

Everything works fine, except when using samba (e.g. by copying files from A
to B). Then all connections from A to the internet are VERY slow.
Connections from A to B (using FTP or HTML) are not affected at all.

I don't know why, because B's CPU load is about 40% and the LAN's bandwidth
should be large enough.

Does anybody has an idea?


Thank you!

Frank. (frank at dzaebel.de)

------=_NextPart_000_0004_01C03254.C5B7C290
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi there...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have got a problem using samba and =
masquerading=20
at the same time. My private LAN looks as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
|<BR>&nbsp;Computer A -------------------------- Computer B=20
------------------INTERNET<BR>&nbsp;(Win2000)&nbsp;&nbsp;&nbsp;&nbsp; =
LAN=20
(100Mbit/s)&nbsp;&nbsp;&nbsp; Linux kernel=20
2.2.14,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ISDN&nbsp;=20
|<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
samba 2.0.7,=20
masquerading,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
64MB RAM, AMD K62-350</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Everything works fine, except when =
using samba=20
(e.g. by copying files from A to B). Then all<SPAN =
class=3D773025322-09102000>=20
</SPAN><SPAN class=3D773025322-09102000>c</SPAN>onnections from A to the =

internet<SPAN class=3D773025322-09102000> </SPAN>are VERY slow. =
Connections from A=20
to B (using FTP or HTML) are not affected at all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I don't know why, because B's CPU load =
is about 40%=20
and the LAN's bandwidth should be large enough.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anybody has an idea?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=3DArial size=3D2>Thank you!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Frank.<SPAN =
class=3D773025322-09102000> (<A=20
href=3D"mailto:frank at dzaebel.de">frank at dzaebel.de</A>)</SPAN></FONT></FON=
T></DIV></BODY></HTML>

------=_NextPart_000_0004_01C03254.C5B7C290--



--__--__--

Message: 6
From: Manuel Bessler <manuel at varxec.de>
Date: Tue, 10 Oct 2000 00:53:46 +0200
To: jpff at maths.bath.ac.uk
Cc: samba at us4.samba.org
Subject: Re: Digest format again

On Mon, Oct 09, 2000 at 10:43:11AM +0100, jpff at maths.bath.ac.uk wrote:
> How do you read the digest?  It is not in the digest format I know
> (RFC 934) and reading it as a long single message is very difficult.
> Is there an undigester which works with this format?
> ==John ffitch

i use procmail/formail, but this digest format really has some problems
sometimes parts of the headers of some mails go into the mail-body,
sometimes one mail get split up in two.

I hope that this can be resolved soon, its not funny reading
the samba list with the current digest format.

Manuel
-- 
     .-.                        | Manuel Bessler
     /v\    L   I   N   U   X   | <manuel at varxec.de>, <m.bessler at gmx.net>
    // \\  >Phear the Penguin<  | 
   /(   )\                      | Debian/GNU Linux user
    ^^-^^
GPG Fingerprint: 278D 2DC2 8A3E 9AEE 98F1  71D2 B224 68D1 1240 28BC


--__--__--

Message: 7
From: Eduardo Diaz Uriarte <ediazuri at wanadoo.es>
To: <frank_mailinglist at dzaebel.de>
Subject: Re: Problem using masquerading and samba
Date: Tue, 10 Oct 2000 01:04:52 +0200
Cc: Lista Samba <samba at us4.samba.org>

I fuond a similar problem using the 'firewals' package os suse. The problem was that the firewall
(masquearade) was not allowing some conections from the intranet except for some ports. Ie, there were only
some ports allowed. When I changed it allowing every port from the intranet (I use Samba at home so, at this
moment, I still believe in my parents) it started working.

Hope it wokrs for you :-)

On Tue, 10 Oct 2000, you wrote:
> 
> Hi there...
> 
> I have got a problem using samba and masquerading at the same time. My
> private LAN looks as follows:
> 
>                                                                    |
>  Computer A -------------------------- Computer B ------------------INTERNET
>  (Win2000)     LAN (100Mbit/s)    Linux kernel 2.2.14,       ISDN  |
>                                   samba 2.0.7, masquerading,
>                                   64MB RAM, AMD K62-350
> 
> Everything works fine, except when using samba (e.g. by copying files from A
> to B). Then all connections from A to the internet are VERY slow.
> Connections from A to B (using FTP or HTML) are not affected at all.
> 
> I don't know why, because B's CPU load is about 40% and the LAN's bandwidth
> should be large enough.
> 
> Does anybody has an idea?
> 
> 
> Thank you!
> 
> Frank. (frank at dzaebel.de)
> 

----------------------------------------
Content-Type: text/html; name="unnamed"
Content-Transfer-Encoding: quoted-printable
Content-Description: 
----------------------------------------


--__--__--

Message: 8
Date: Mon, 09 Oct 2000 16:29:56 -0700
From: Mike Fedyk <mfedyk at matchmail.com>
To: Mike Brodbelt <m.brodbelt at acu.ac.uk>
Cc: Cass Surek <cass at master.com.br>, samba at us4.samba.org
Subject: Re: Undelete for Samba

Mike Brodbelt wrote:
> 
> Cass Surek wrote:
> >
> > Hello guys,
> >
> > We*ve used Novell here and there was a cool thing about it that wouldn*t
> > really delete a file when a user deleted that file. It*d be stored in a
> > spool directory and then we*d be able to recover it in case it was deleted
> > by mistake by the user.
> 
> Samba doesn't actually do the deletion, it just uses the system unlink()
> call. Unix, unlike Netware, takes the attitude that if you ask it to
> delete a file, that's because you don't want the file. It ain't coming
> back...... The filesystems on most Unices are such that your chances of
> recovering data from deleted files are virtually nil. Use a tape
> backup....
> 
> HTH
> 
> Mike.

That being said, the best place to implement this feature is in the underlying
OS.  That way it'll work with netatalk, nfs, coda, etc.

Although, what would it take to make a network trash folder (ala netatalk or
netware) with samba storing the original path to the file?

I've been reading samba traffic, and it seems we are a bunch of synchronized
dogs chasing their tails.  To put it one way. ;p
-- 

Mike Fedyk                   "They that can give up essential liberty
Information Systems           to obtain a little temporary safety
Match Mail Productions Inc.   deserve neither liberty nor safety."
mfedyk at matchmail.com                                   Ben Franklin


--__--__--

Message: 9
Date: Mon, 09 Oct 2000 16:44:31 -0700
From: Mike Fedyk <mfedyk at matchmail.com>
To: samba at us4.samba.org
Subject: Re: Undelete for Samba

Ries van Twisk wrote:
> 
> > Samba doesn't actually do the deletion, it just uses the system
> > unlink() call. Unix, unlike Netware, takes the attitude that if you
> > ask it to delete a file, that's because you don't want the file. It
> > ain't coming back...... The filesystems on most Unices are such that
> > your chances of recovering data from deleted files are virtually nil.
> > Use a tape backup....
> >
> Also I understand from the samba development team that in theory it
> is posible to do such a function but it will create a lot of overhead
> meantaining the 'recycle bin' It just takes a lot of processor time and
> HD space.
> 
> Also think of this..
> When M$ word opens a file, it copys a file to the same dir with a
> different name (~$ thing) when you are finnished working on that file
> a renaming and a deleting sequency takes place. Which in turn
> create a backup and that's not what you want.
> Also I don't think de recicle bin on NT is working 'networked'. (I only
> use samba at my net)
> 
> Ries

You are correct.  You'd need norton or some such to keep network deleted files. 
Norton forgets to delete the old deleted files, and your drive fills up..... but
I digress
-- 

Mike Fedyk                   "They that can give up essential liberty
Information Systems           to obtain a little temporary safety
Match Mail Productions Inc.   deserve neither liberty nor safety."
mfedyk at matchmail.com                                   Ben Franklin


--__--__--

Message: 10
Date: Tue, 10 Oct 2000 11:33:42 +1000
To: samba at us4.samba.org
From: "Bradley C. Goldsmith" <bcg at mitmania.net.au>
Subject: Help: Samba printing from w2k. Works fine but no paper from
printer!

Hello All,

    I have samba 2.0.6 running on RH6.2 serving a small workgroup with a
few machines, a few shares and one printer. The file shares are working
perfectly. All of the other machines on the network are win2000 boxes.

    The problem I have is that the printing is not working. A file can
be printed from lpr on the linux box fine. When I print a doco from a
windows box it says that the printing has completed successfully, the
printed file also appears in the /var/spool/lpd/lp directory (which then
prints out perfectly if I run an lpr command on it). But the printer
does not get sent the file to be printed.

    So all is fine, but still I have no paper comming out of the
printer!

    Any help would be appreciated, my smb.conf file appears below.

Cheers,
Brad Goldsmith.






[global]

 workgroup = blacksheep
 server string = Blacksheep software's file and printer server

 security = user

 log file = /var/log/samba-log.%m
 lock directory = /var/lock/samba
 share modes = yes

 # cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd
 # ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S91smb

 encrypt passwords = yes
 smb passwd file = /etc/smbpasswd

 print command = /usr/bin/lpr -s -P%p -r %s
 printcap name = /etc/printcap
 load printers = yes

[printers]

 path = /var/spool/lpd/lp
 writeable = no
 public = yes
 printable = yes
 browseable = no
 create mode = 0700

[PrintPartner10V]

 path = /var/spool/lpd/lp
 printable = yes
 read only = yes
 guest ok = yes

[public]
    path = /home/public
    public = yes
    writable = yes
    printable = no

[admin]
 path = /blacksheep/admin
 public = yes
 writable = yes
 printable = no

[cdserver]
 path = /blacksheep/cdserver
 public = yes
 writable = yes
 printable = no

[cdimages]
 path = /blacksheep/cdimages
 public = yes
 writable = yes
 printable = no

[source]
 path = /blacksheep/source
 public = yes
 writable = yes
 printable = no

[etc]
 path = /etc
 public = no
 writable = yes
 printable = no
 users = brad
 browseable = yes

-----------------------------------------------------------------------
Bradley C. Goldsmith                            Telephone: 02 48 724260
Black Sheep Software Pty Ltd                       Mobile: 0414  514077
Suite 1 Level 1 71 Main Street,                     bcg at mitmania.net.au
MITTAGONG, NSW, 2575               http://www.blacksheepsoftware.com.au
PO Box 342 MITTAGONG NSW 2575 Australia               Fax: 02 48 724360
-----------------------------------------------------------------------
"We apologise for any inconvenience caused due to a fault in our human"
-----------------------------------------------------------------------
Stop Internet censorship! I disapprove of what you say, but will defend    
 http://www.efa.org.au/   to the death your right to say it. --Voltaire
-----------------------------------------------------------------------    


--__--__--

Message: 11
Date: Tue, 10 Oct 2000 02:47:08 +0200
From: monsted at tux.nerdheaven.dk
To: samba at samba.org
Subject: Win Millennium support


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

There seems to be a lack of a Win millennium plain text registry thingie, so here goes :)

It is included with WinMe, on the CD, in \tools\pssutil\ptxt_on.inf.


You're doing a great job, i have turned a few companies to the light side of the force using samba :)

Best Regards
Jesper Monsted
Nerd - BOFH in training 
 

--LZvS9be/3tNcYl/X
Content-Type: application/x-gunzip
Content-Disposition: attachment; filename="ptxt_on.inf.gz"
Content-Transfer-Encoding: base64

H4sICPC0PzkAA3B0eHRfb24uaW5mAF2NTYvCMBRF94X+hyAuFDKiiAsRF5LqWPwq1nEznUWm
fdZAJikvr2r/vbHuBi6Py+Nw7oxFkGNT0SDer8JgxoStGlTllVgv77PRdDr+8GfC2U7laJ29
kEewsihJWRMGYfB9A3S+/4SBU6WRVCPMO12xjsXi89DttEwEF1lrio0jqbVHF0VxhHK+NPJX
wyDRUhmCB7Xw/6fH15vtjqeNI/jLRI0IhoQ1hFanQFkKeFM5uOz8iLLzfnlKvxL+trSSk5ck
0rm7xYKP+NBn+M5r7wlpRGoqBAEAAA==

--LZvS9be/3tNcYl/X--


--__--__--

Message: 12
Subject: compile error
To: samba at samba.org
From: Jim_Park at acl.com.au
Date: Tue, 10 Oct 2000 12:26:37 +1000

I am not an experienced system administrator, in fact I am self taught, and
having tried several alterations I still get the same error message trying
to compile. Can some one offer any advise!

The end of the compile messages on the screen look like this.

checking whether to support utmp accounting... no
checking whether to install Using Samba book... ${prefix}/swat/using_samba
checking how to get filesystem space usage
checking statvfs64 function (SVR4)... no
checking statvfs function (SVR4)... yes
checking if large file support can be enabled
no
checking configure summary
ERROR: No locking available. Running Samba would be unsafe
configure: error: summary failure. Aborting config


I have had a look at the config.log, which is 168K long and wasn't able to
work out what was wrong from that.

Operating system HP-UX 10.2

Thanks jim park

***********************************
Mr. Jim Park
ACL BEARING Co.
PO Box 1088
Launceston TAS. 7250
Ph. 03 6324 4592
Fax. 03 6324 4621
Mobile: 0417 368 188
E-mail: jim_park at acl.com.au
************************************



--__--__--

Message: 13
Date: Tue, 10 Oct 2000 16:31:26 +1300
From: bryan quigley <bryan.quigley at newzealand.sun.com>
Organization: Sun Microsystems
To: samba at samba.org
Subject: Problem (and fix) with HP-UX PAM

Hi there,

I just hit a problem when implementing Samba for a client.  On their
Solaris servers all went as planned.  On their HP servers I found that
with PAM support compiled in and share-level security the users could
only connect to shares marked as "guest ok".  When we changed to
user-level security the users could access all the shares, but guest
access (by WinInstall service) didn't work.  When recompiled without PAM
support both user and guest access was possible with share-level
security (which is what we want, but with PAM).  A bit of creative
debugging showed that within authorise_login in smbd/password.c the code
is supposed to iterate over a number of possible usernames in the string
user_list.  However the loop always ended after the first iteration when
PAM support was compiled in.

The diff below shows how I fixed the problem.  It appears that somewhere
in the HP-UX PAM code there is a strtok call which is overwriting the
static buffer belonging to the strtok call used to control the loop
within authorise_login.  Replacing strtok with strtok_r made everyone
happy.

Regards,
Bryan Q.


Samba: 2.0.7
Server: HP-UX 11.0
Clients: NT4/SP6


bash$ diff -c smbd/password.c- smbd/password.c
*** smbd/password.c-    Tue Oct 10 15:51:53 2000
--- smbd/password.c     Tue Oct 10 15:53:08 2000
***************
*** 729,741 ****
        /* now check the list of session users */
      if (!ok)
      {
        char *auser;
        char *user_list = strdup(session_users);
        if (!user_list) return(False);
  
!       for (auser=strtok(user_list,LIST_SEP); 
             !ok && auser; 
!            auser = strtok(NULL,LIST_SEP))
        {
          fstring user2;
          fstrcpy(user2,auser);
--- 729,742 ----
        /* now check the list of session users */
      if (!ok)
      {
+       char *strtok_ptr;
        char *auser;
        char *user_list = strdup(session_users);
        if (!user_list) return(False);
  
!       for (auser=strtok_r(user_list,LIST_SEP,&strtok_ptr); 
             !ok && auser; 
!            auser = strtok_r(NULL,LIST_SEP,&strtok_ptr))
        {
          fstring user2;
          fstrcpy(user2,auser);



-- 
Bryan Quigley                bryan.quigley at newzealand.sun.com
Systems Engineer                             DDI (4) 462 0729
SolNet Ltd.                               mobile (21) 475 176


--__--__--

Message: 14
Date: Mon, 9 Oct 2000 23:47:46 -0500 (EST)
From: Brian Poole <rajak at purdue.edu>
Reply-To: rajak at cerias.purdue.edu
To: samba at lists.samba.org
Subject: Continued problem w/ smbmount & dir permissions

Hello,

Been trying to solve this problem for a while, posted to the mailing list
a few months back to no avail.

The short description is this, Linux 2.2.18pre15 mounting a share with
full RW permissions from a Win2k Professional machine. Can write fine, as
long as I'm not attempting to write to the root of the directory it was
mounted at. Doesn't matter what fmask & dmask I specify with smbmount when
it mounts it applies the masks to the subdirs, but not to the root dir it
is mounted at. This is samba 2.0.7 and the share is shared correctly, I
can write to the root of the share with smbclient or other tools. The
problem is simply that when it mounts it the root dir has the wrong
permissions for what i would like.

If you'd like more details I would be happy to provide them. Please CC: me
with any replies, I am not currently on the list due to high traffic.

Thank you,

-b





--__--__--

_______________________________________________
samba mailing list
samba at lists.samba.org
http://lists.samba.org/mailman/listinfo/samba


End of samba Digest





More information about the samba mailing list