[Samba] Getting Database from Nt server

2002-04-24 Thread ketan A PAREKH

Hello Sir,
I want to shift my pdc from nt machine to samba server but the 
problem is old password database, can i use same database in 
samba, if possible them please mail me the procedure,
thanks you
bye
Er. Ketan Parekh

_
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba 2.2.2 gives problem

2002-04-24 Thread Hemant Kumar Choudhary

Hello Samba team

I have installed Samba 2.2.2 on HP-UX 10.20 machine. when I try to open one
text file and read it through a C program, it is unable to get the file
pointer and the log file stores the following message

=
[2002/04/24 12:24:34, 5] smbd/posix_acls.c:(432)
  unpack_nt_owners: validating owner_sids.
[2002/04/24 12:24:34, 3] smbd/posix_acls.c:(442)
  unpack_nt_owners: unable to validate owner sid.
[2002/04/24 12:24:34, 2] smbd/close.c:(206)
  choudhhe closed file hemant.src (numopen=0)
[2002/04/24 12:24:34, 5] smbd/files.c:(305)
  freed files structure 10772 (0 used)
[2002/04/24 12:24:34, 3] smbd/error.c:(99)
  error string = No such file or directory
[2002/04/24 12:24:34, 3] smbd/error.c:(111)
  error packet at smbd/nttrans.c(1405) cmd=160 (SMBnttrans) eclass=1 ecode=5
=


Please help.

Regards,

Hemant Kumar Choudhary
Software Engineer
Patni Computer System  Ltd
Mumbai (India)


BEGIN:VCARD
VERSION:2.1
N:Choudhary;Hemant;Kumar
FN:Hemant Kumar Choudhary
NICKNAME:hkc
ORG:Patni Computer Systems Limited;Calma
TITLE:Software Engineer
TEL;WORK;VOICE:8291454 Extn 5858
TEL;HOME;VOICE:91 22 7459876
TEL;CELL;VOICE:9820222686
TEL;HOME;FAX:91 22 7459876
ADR;WORK:;;Unit 20, SDF 7, SEEPZ, Andheri (East);Mumbai;Maharashtra;400096;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Unit 20, SDF 7, SEEPZ, Andheri (East)=0D=0AMumbai, Maharashtra 400096=0D=0AI=
ndia
ADR;HOME:;;Flat no 02, Ragamalika Residential Complex, Plot No 15  16, Sector 5, New Panvel;Navi Mumbai;Maharashtra;410206;India
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Flat no 02, Ragamalika Residential Complex, Plot No 15  16, Sector 5, New P=
anvel=0D=0ANavi Mumbai, Maharashtra 410206=0D=0AIndia
X-WAB-GENDER:2
BDAY:20011227
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010726T044833Z
END:VCARD



[Samba] File systems

2002-04-24 Thread Kristyan Osborne

Hi,

I know this is a little of topic, but I want people ideas and opinions.

I currently have a samba server with approx 1300 users. During the summer I am going 
to upgrade this server as its been up for about 5 years. At the moment it has an ext2 
file system for the drives containing peoples work, etc. I was wondering if people can 
suggest a better file system to use than ext2 as I believe this is getting dated (but 
stable).

Cheers

-
Kristyan Osborne IT Assistant Manager
Longhill High School

--
Computers are like airconditioners: They stop working properly if you open windows.
Win95:   A 32-bit patch for a 16-bit GUI shell running on top of an
 8-bit operating system written for a 4-bit processor by a
 2-bit company who cannot stand 1 bit of competition.


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] File systems

2002-04-24 Thread dj

On Wed, 24 Apr 2002, Kristyan Osborne wrote:

 I know this is a little of topic, but I want people ideas and opinions.

 I currently have a samba server with approx 1300 users. During the summer I am going 
to upgrade this server as its been up for about 5 years. At the moment it has an ext2 
file system for the drives containing peoples work, etc. I was wondering if people 
can suggest a better file system to use than ext2 as I believe this is getting dated 
(but stable).

It is probably wiser to switch over to a journalled filesystem. These are
now a standard part in most distros and of production quality. Which one
to choose is another matter.

If you need, would like ACL to have a more fine grained control then the
only options are XFS and ext3 with the ACL patch.
If you don't need ACL's then you can choose between them all (ext3,
reiserfs, xfs and jfs).

The best way to choose is to setup a test system and run tests, with a
tool like netbench or switching over a couple of users/shares, to test
each filessystem and choose the one that works best
for you.

Regards,
Tim

-- 
===
Tim Verhoeven
Linux  Open Source Specialist
GSM : 0496 / 693 453  + e-business solutions
Email : [EMAIL PROTECTED]   + consulting
URL : www.sin.khk.be/~dj/ + Server consolidation
===


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Wins server replication.

2002-04-24 Thread Stian B. Barmen








Can I use Samba as my primary WINS server and make it
replicate with Windows WINS servers? Or maybe as a last resort, can Samba NMBD
replicate between multiple NMBD servers? 







Best regards



Stian B. Barmen










Re: [Samba] Internet goes down. Samba dies

2002-04-24 Thread Buchan Milne

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If you are going to use hosts allow or hosts deny, reverse DNS
lookups must work on the server for any client connecting. You may want
to run a caching and local DNS server.

Otherwise, you might prefer to not use hosts allow and hosts deny, but
set up a firewall instead.

Regards,
Buchan

| Message: 17
| Date: Tue, 23 Apr 2002 17:01:18 -0500
| From: John Schmerold [EMAIL PROTECTED]
| To: [EMAIL PROTECTED]
| Subject: [Samba] Internet goes down.  Samba dies
|
| Had a client's internet connection go down.
|
| No one could log into Samba 2.2.3a running on top of RH 7.2
|
| I have following hosts lines in smb.conf:
| hosts allow = 192.168.1. katyfax nick ap kh vp bg katy john-nt john-98
| hosts deny = all
|
| In /etc/hosts, I define:
| katyfax, nick, ap, kh, vp, bg, katy, john-nt, john-98
|
|
| Ideas anybody?
|
| TIA
|
|
|


- --
|Registered Linux User #182071-|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE8xmqYrJK6UGDSBKcRAqzUAJ49n+cV2ojakp8SePhOzYIyYIUWgACbBH+E
AxQi+eusBYfnoJmGXdoHCyI=
=xWW1
-END PGP SIGNATURE-


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Kernel-question 2.2

2002-04-24 Thread Stian B. Barmen

Samba is not depended on kernel version. The 2.2 kernel is stable and
excellent for Samba!


Best regards

Stian B. Barmen


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of [EMAIL PROTECTED]
Sent: 24. april 2002 10:32
To: [EMAIL PROTECTED]
Subject: [Samba] Kernel-question 2.2

Hey,
i have a small question.
I want to install samba 2.2.3a on a RedHat 6.2 with a 2.2 Kernel.
Is the Kernel-Release OKAY ??

Thanks

Markus

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Windows XP guest problem

2002-04-24 Thread Stian B. Barmen

Tjenare! :)

I think one way to fix this is to use the Map Network Drive.. which
you find when you right click My Computer. Here you can specify the
UNC path to you're samba server and then specify a valid
username/password. 

This problem is a Windows XP feature and has nothing to do with Samba.


Another way to solve this is to add you're Windows XP machine to a
domain and log on with a user that has the appropriate security
credentials. 

Med vennlig hilsen

Stian B. Barmen


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Olle Hansson
Sent: 24. april 2002 10:39
To: [EMAIL PROTECTED]
Subject: [Samba] Windows XP guest problem

Hi
I have a problem conniecting a Windows XP client to my Samba 2.2.3a
FreeBSD 
server.

The problem is that Windows XP forcing me to use a Guest user on my none

nuest share.

WIndows NT/2000 is working prerfect. I can use another username on my
none 
nuest shares.

My Configuration file looks like this:
[global]
workgroup = IT
server string = Distribution-Server
security = SHARE
encrypt passwords = Yes

[windows]
comment = windows distributions
path = /opt/distributions/windows
read only = No
guest ok = false
[macintosh]
comment = Macintosh distributions
path = /opt/distributions/macintosh
read only = No
guest ok = false
[unixlinux]
comment = Unix and Linux distributions
path = /opt/distributions/unix_linux
read only = No
guest ok = false
[lp5r]
path = /tmp
printable = Yes

[annex07color]
guest ok = true
printable = Yes
path = /tmp



/regars Olle Hansson

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] [PATCH] Display of quoted parameters in Swat

2002-04-24 Thread dj

Hello,

There is a problem with Swat and it's handling of quoted strings. I've
tested this on the latest released version of Samba (2.2.3a).

Problem description:

When you put quoted strings into the smb.conf file they are not displayed
in swat. For example : valid users = @DOM+Domain Users in smb.conf will
result in @ in swat.

The reason for this is that the in the html form created by swat the value
of the form item (textfield) is also quoted using . So the result, for
example value=@DOM+Domain Users is wrongly parsed by the browsers.

Fix:

I replaced the  quotes in the swat code with ' quotes, the resulting html
now is value='@DOM+Domain Users' and is correctly parsed by the
browsers.
I've tested this on Linux with Mozilla 0.9.9, Netscape 4.7 and KDE4s 2.2
Konquerer. And on Windows 2K Prof with Mozilla 0.9.9 and IE (5.5 I think).
They all worked fine in displaying and editing quoted and non-quoted
parameter values.

Remarks:

When ' is used to quote parameters values this fix won't work ofcourse. So
either we add to the smb.conf documentation that  is the only legal
character to quote and test this. Or we add extra code to swat that parses
quote characters from smb.conf to html coded chars (quote;) and back, but
i haven't had a change to test if this would work.

As stated, the diff included is against the 2.2.3a sourcecode, and is for
the source/web/swat.c file. Or the fix could be done manually by changing
the  character to '.

Regards,
Tim


-- 
===
Tim Verhoeven
Linux  Open Source Specialist
GSM : 0496 / 693 453  + e-business solutions
Email : [EMAIL PROTECTED]   + consulting
URL : www.sin.khk.be/~dj/ + Server consolidation
===


185c185
   printf(input type=text size=40 name=\parm_%s\ value=\%s\,
---
   printf(input type=text size=40 name=\parm_%s\ value=\'%s\',



[Samba] Printer question

2002-04-24 Thread Olle Hansson

Hi

I have a little printer question.

Windows XP says on annex07color (our printer) Access denied, unable to 
connect.

The printer entry look like this
[annex07color]
guest ok = true
printable = Yes
path = /tmp

And /etc/printcap

annex07color|raw5|130.237.102.176raw:\
:lf=/var/log/lpd-errs:\
:lp=:mx#0:\
:rm=130.237.102.176:
:rp=raw:\
:sd=/var/spool/output/lpd/color:

I have set permission 777 on boath /var/log/lpd-errs and 
/var/spool/output/lpd/color

So username nobody can write to these directorys. 

It working fine to print out things. So my question is how can I fix so it 
isnt Access denied, unable to connect problem? 

/Regards Olle Hansson

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Re: Internet goes down. Samba dies

2002-04-24 Thread Andrew Judge

What is your smb domain?  Does testparm spit out errors?  I went to a place
once where this happened and it was because the admin had mydomain.com as
a windows domain as well as a host of  other mistakes.

Best regards,

Andrew Judge


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Configure failure: solaris 8 --with-ldapsam

2002-04-24 Thread Mark Taylor

On Tue, 2002-04-23 at 19:02, Caleb Clark wrote:
 Hi, ive been working on this for a while now.
 
 Samba-2.2.2, samba-2.2.3a both do the same thing, fail with configure
 --with-ldapsam on solaris 8.
 
 Ive got openldap 2.0.18 compiled from source and installed in /usr/local
Hi Caleb,

I had exactly the same problem myself. What solved it for me was using
openldap 2.0.23. It's now working beautifully on an production E420
server with several hundred Windoze workstations!
If you need any more help feel free to ask - I'm just putting the
finishing touches on a HOWTO detailing how to use LDAP as the
authentication back-end for a mixed Solaris, Linux, FreeBSD  Windows
environment.

best regards,

Mark

--
Just another farmer working on source code at night...



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] File systems

2002-04-24 Thread Joel Hammer

Are you sure you want to do this? If it ain't broke, don't fix it.
Upgrading for the sake of upgrading is usually not worth it.  If you are
a member of this list, or other linux type lists, you will see numerous
problems after upgrading this or that piece of software. Often, things
just stop working! Better to spend the effort solving real problems or
providing new and better services (IMHO).

Joel

On Wed, Apr 24, 2002 at 08:36:19AM +0100, Kristyan Osborne wrote:
 Hi,
 
 I know this is a little of topic, but I want people ideas and opinions.
 
 I currently have a samba server with approx 1300 users. During the summer I am going 
to upgrade this server as its been up for about 5 years. At the moment it has an ext2 
file system for the drives containing peoples work, etc. I was wondering if people 
can suggest a better file system to use than ext2 as I believe this is getting dated 
(but stable).
 
 Cheers
 
 -
 Kristyan Osborne IT Assistant Manager
 Longhill High School
 
 --
 Computers are like airconditioners: They stop working properly if you open windows.
 Win95:   A 32-bit patch for a 16-bit GUI shell running on top of an
  8-bit operating system written for a 4-bit processor by a
  2-bit company who cannot stand 1 bit of competition.
 
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba PDC W2k sp1/sp2

2002-04-24 Thread baiocco . f



I set up Samba (2.2.3a) as a PDC Server and a Profiles Server for my 80 clients
running Windows W2k Sp1 and W2k Sp2.

If the profile for example is created with a Sp2 client and changes are made,
after disconnecting and reconnecting with another Sp2 client the changes are
correctly displayed.

But if I modify with a Sp1 client a profile created with a Sp2 client, the
profile will be damaged (i.e. further changes made with a Sp2 client will be
ignored such as mail accounts or desktop wallpaper) and only changes made by sp1
 client will be correcty applyed both for sp1 and sp2 clients!

I use also smbuser file to map different users between Windows and Linux.

Here is my smb.conf file (I think it is ok):

[global]
   add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
   workgroup = BCCFILOTTRANO
   netbios name = FI0X07
   server string = Linux PDC Server (%v)
   hosts allow = 10.113. 127. 10.112.1.182
   printcap name = /etc/printcap
   load printers = no
   log file = /var/log/samba/log.%m
   max log size = 0
   security = user
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   username map = /etc/samba/smbusers
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   interfaces = eth0 eth1
   local master = yes
   os level = 64
   domain master = yes
   preferred master = yes
   domain logons = yes
   logon path = \\%L\profiles\%U
   logon drive = Z:
   logon home = \\%L\%U
   name resolve order = wins lmhosts bcast
   wins support = yes
   dns proxy = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   path = %H/NetDrive
   create mode = 0600
   directory mode = 0700

 [netlogon]
   comment = Network Logon Service
   path = /var/samba/netlogon
   guest ok = no
   browseable = no
   writable = no
   share modes = no

[profiles]
comment = NT Profiles
path = /var/samba/ntprofiles
create mode = 0600
directory mode = 0700
writable = yes
browseable = no
guest ok = no
nt acl support = no # I tried yes/no but no difference



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Permissions

2002-04-24 Thread martin



Heeelllp,

I am strugling with permisions for Samba. I must have missed
something.

I have chmod the parent folder.
I have set up a group and made all users part of the group.
I have set file permissions for everybody to access all files.

The problem I have is that each time someone opens a file the group write
permissions are reset and nobody else can edit that file. If you go to the samba
server and change the permissions anybody can open and editthe file and
save but then noone else can write to it until the permissions are
altered.

When you create a file it is created under the group but without group
write access.

Have I missed a setting in smb.conf. How is one supposed the share files if
other members of the group cannot access it.

Thanks

Martin

Re: [Samba] File systems

2002-04-24 Thread Lennard Bakker


If you really want to upgrade to a journaling file system, i would
recomment that you should use ext3. ext3 is een extension of ext2. In
case of problems/erros, you still can mount as an ext2 file system.

But i must say that Joel as a good point; If it ain't broke, don't fix
it.

Lennard



On Wed, 2002-04-24 at 12:34, Joel Hammer wrote:
 Are you sure you want to do this? If it ain't broke, don't fix it.
 Upgrading for the sake of upgrading is usually not worth it.  If you are
 a member of this list, or other linux type lists, you will see numerous
 problems after upgrading this or that piece of software. Often, things
 just stop working! Better to spend the effort solving real problems or
 providing new and better services (IMHO).
 
 Joel
 
 On Wed, Apr 24, 2002 at 08:36:19AM +0100, Kristyan Osborne wrote:
  Hi,
  
  I know this is a little of topic, but I want people ideas and opinions.
  
  I currently have a samba server with approx 1300 users. During the summer I am 
going to upgrade this server as its been up for about 5 years. At the moment it has 
an ext2 file system for the drives containing peoples work, etc. I was wondering if 
people can suggest a better file system to use than ext2 as I believe this is getting 
dated (but stable).
  
  Cheers
  
  -
  Kristyan Osborne IT Assistant Manager
  Longhill High School
  
  --
  Computers are like airconditioners: They stop working properly if you open windows.
  Win95:   A 32-bit patch for a 16-bit GUI shell running on top of an
   8-bit operating system written for a 4-bit processor by a
   2-bit company who cannot stand 1 bit of competition.
  
  
  -- 
  To unsubscribe from this list go to the following URL and read the
  instructions:  http://lists.samba.org/mailman/listinfo/samba
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] What I must configure to use LPRng with Samba

2002-04-24 Thread Fernando Giorgetti

But my printers is not physically connected to my server.
I want that my samba share the printers thats's physically connected to the windows 
box (clients) and that the LPRng manage the spool.

Fernando.

On Tue, 23 Apr 2002 20:13:43 -0400
Joel Hammer [EMAIL PROTECTED] wrote:

 Do you know what this printcap entry is saying?
 Is says to send the print job to samba. You don't want to do this on your
 server. Your server is going to talk to the printer attached to itself
 and it won't use samba for that.
 
  epson:cm=Dummy Printcap Entry:
:lp=/dev/null
:sd=/var/spool/lpd/%P
:sh:if=/usr/bin/smbprint
 
 The following is the sort of print cap entry you need:
 
 ps|z53:\
 sh:sd=/var/spool/lpd/z53:mx#0:\
 :lp=/dev/lp0:\
 :if=/usr/local/lexmark/z53/z53.sh
 :sh:  
 
 This uses the filter pointed to by the if parameter to convert print jobs to
 a format usable by my z53 printer. Note lp points to the device which has
 the printer physically attached to the server.
 
 Joel

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] logon script does not get executed

2002-04-24 Thread sebastien


Hi, 

I just migrated my samba PDC from Samba 2.2.1a on HP-UX to Samba 2.2.3a on 
RH7.2 (using the rawhide rpms). My clients are Win2kSP2, and there are no 
BDC's on the network. The server should do PDC, homes, profiles and logon 
script. 

The idea was initially just to move the the Samba service to the linux box, 
but i ended up upgrading it because of profile problems (needed the 'nt acl 
support = no' share option, even though the server is a PDC). Note that i 
used to have these on HP-UX too but just stumbled on a solution to it 
(README.Win2kSP2) while installing samba on the linux box. 

However, i now have a new problem. My clients can login to the domain (login 
accepted, profile loaded and saved correctly on logout), but my 'logon 
script' does not get executed (automatically) anymore. 

I copied the configuration script from my initial server and made some minor 
changes to it (mostly the paths). I still have my [netlogon] share, the path 
exists, the logon script exists and is readable by any unix user, etc... 

After a login i can access the [netlogon] share from the client just fine. 
Actually, i can just do a Start-Run-\\circus\netlogon\cdlogon.bat and 
everything works fine. 

So i assume there must be something going wrong when the client tries to 
figure out if there is a logon script to run. I'm not a samba expert, but i 
can see in the log files that the [netlogon] share is never mapped, file 
'cdlogon.bat' never accessed, whereas this used to happen on the HP-UX samba 
server. It looks like the client is asking the server to resolve 
\\MAILSLOT\NET\NETLOGON, the server finds out this ' logon svr' should be 
\\CIRCUS, but then the client starts all over again. (see log excerpt 
below). I've been playing with WINS to see what is registered and though i 
don't know the exact meaning of each Type, it looks like the linux server 
registers the same (local and domain) names/types as the HP-UX one. 

Also, i still have my HP-UX server on the side. If i stop the linux one, 
startup the old HP-UX one again, and reboot the clients, they still work 
fine -- with login script. 

Of course, there might be some non-smb.conf issues, things i forgot to 
transfer from the old server to the new one. I copied the smbpasswd, passwd 
and group entries, MACHINE.SID etc... but maybe i forgot something else? 

Or is this a problem related to 2.2.3a nmbd? 

One more remark: the clients i tested are on the same subnet as the new 
linux server, and the HP-UX box is on another subnet. Might this make a 
difference... 

Any advice would be greatly appreciated,
tia,
 -seb. 

=== 


Some output: 

a) my smb.conf file:
# Global parameters
[global]
   workgroup = CIRQUEDIGITAL
   netbios name = CIRCUS
   encrypt passwords = Yes
   smb passwd file = /etc/smbpasswd
   log file = /var/log/samba/%m.log
   max log size = 50
   log level = 7
   domain admin group = adm
;   add user script = /usr/sbin/useradd -g 1003 -s /usr/bin/false -c
;   delete user script = /usr/sbin/userdel -r %u
   logon script = cdlogon.bat
   logon path = \\%N\profiles\%u
   logon drive = H:
   domain logons = Yes
   os level = 65
   preferred master = Yes
   domain master = Yes
   wins support = Yes
   guest account = nobody
   lock dir = /var/lock/samba 

[netlogon]
   comment = Network Logon Service
   path = /volume1/cd/settings/win-ix86/netlogon
   guest ok = yes
   writable = no
   share modes = no
   browseable = no
   blocking locks = No 

[homes]
   path = /volume1/cd/homes/%u
   read only = No
   blocking locks = No 

[allhomes]
   path = /volume1/cd/homes
   read only = No
   blocking locks = No 

[tmp]
   path = /volume1/cd/tmp
   read only = No
   blocking locks = No 

[data]
   path = /volume1/cd
   read only = No 

   blocking locks = No 

[profiles]
   path = /volume1/cd/homes/profiles
   read only = No
   blocking locks = No
   oplocks = No
   nt acl support = No 


b) some nmbd.log output: 

 process_dgram: datagram from CDWW-200 to CIRQUEDIGITAL1c IP 
10.231.101.102 for \MAILSLOT\NET\NETLOGON of type 18 l
en=100
[2002/04/24 11:34:55, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
 process_logon_packet: Logon from 10.231.101.102: code = 0x12
[2002/04/24 11:34:55, 3] nmbd/nmbd_processlogon.c:process_logon_packet(210)
 process_logon_packet: SAMLOGON sidsize 24, len = 100
[2002/04/24 11:34:55, 3] nmbd/nmbd_processlogon.c:process_logon_packet(217)
 process_logon_packet: len = 100 PTR_DIFF(q, buf) = 92
[2002/04/24 11:34:55, 3] nmbd/nmbd_processlogon.c:process_logon_packet(237)
 process_logon_packet: SAMLOGON sidsize 24 ntv 11
[2002/04/24 11:34:55, 3] nmbd/nmbd_processlogon.c:process_logon_packet(246)
 process_logon_packet: SAMLOGON user CDWW-2$
[2002/04/24 11:34:55, 3] nmbd/nmbd_processlogon.c:process_logon_packet(251)
 process_logon_packet: SAMLOGON 

[Samba] Problem with Samba2.2.3a

2002-04-24 Thread Hemant Kumar Choudhary

Hello John

I have downloaded samba-latest.tar from the website. I just want to know
can I install it on my HP-UX 11i machine or not ? Can it be installed on
this machine.

Also, please let me know if I can install samba-2.0.7 on my HP-UX 11i
machine or not. When I do ./configure, I am getting the following error


checking configure summary
WARNING: No automated network interface determination
ERROR: no seteuid method available
configure: error: summary failure. Aborting config


Can you please help me in this regard ?


Thanks and regards,

Hemant Kumar Choudhary
Software Engineer
Patni Computer Systems Limited
Phone: 6930205/06/09
Extn: 2105



BEGIN:VCARD
VERSION:2.1
N:Choudhary;Hemant;Kumar
FN:Hemant Kumar Choudhary
NICKNAME:hkc
ORG:Patni Computer Systems Limited;Calma
TITLE:Software Engineer
TEL;WORK;VOICE:8291454 Extn 5858
TEL;HOME;VOICE:91 22 7459876
TEL;CELL;VOICE:9820222686
TEL;HOME;FAX:91 22 7459876
ADR;WORK:;;Unit 20, SDF 7, SEEPZ, Andheri (East);Mumbai;Maharashtra;400096;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Unit 20, SDF 7, SEEPZ, Andheri (East)=0D=0AMumbai, Maharashtra 400096=0D=0AI=
ndia
ADR;HOME:;;Flat no 02, Ragamalika Residential Complex, Plot No 15  16, Sector 5, New Panvel;Navi Mumbai;Maharashtra;410206;India
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Flat no 02, Ragamalika Residential Complex, Plot No 15  16, Sector 5, New P=
anvel=0D=0ANavi Mumbai, Maharashtra 410206=0D=0AIndia
X-WAB-GENDER:2
BDAY:20011227
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010726T044833Z
END:VCARD



Re: [Samba] Printer question

2002-04-24 Thread Dirk Allaert

It is a known bug in 2.2.3a. Should be solved in cvs already. If you 
want to get rid of it, checkout 2.2.4-pre from cvs or wait a little for 
2.2.4 (2.2.4 should be released soon).

Gonzalo Servat wrote:
 Hi Olle
 
 I've had this same issue too. I'll be interested to see if anyone can
 help both of us out by telling us why! :)
 
 Sorry I can't help
 
 
 On Wed, 2002-04-24 at 19:27, Olle Hansson wrote:
 
Hi

I have a little printer question.

Windows XP says on annex07color (our printer) Access denied, unable to 
connect.

The printer entry look like this
[annex07color]
guest ok = true
printable = Yes
path = /tmp

And /etc/printcap

annex07color|raw5|130.237.102.176raw:\
:lf=/var/log/lpd-errs:\
:lp=:mx#0:\
:rm=130.237.102.176:
:rp=raw:\
:sd=/var/spool/output/lpd/color:

I have set permission 777 on boath /var/log/lpd-errs and 
/var/spool/output/lpd/color

So username nobody can write to these directorys. 

It working fine to print out things. So my question is how can I fix so it 
isnt Access denied, unable to connect problem? 

/Regards Olle Hansson

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

 
 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] TCP UDP port 445: microsoft-ds

2002-04-24 Thread werner maes

Hello,

Does Samba support connecting to a server using port 445 if you have 
Netbios over TCP/IP disabled on your client system?
In Windows 2000/XP you have the possibility to disable Netbios over TCP/IP 
and use port 445 to make an SMB connection.

I've done some tests and apparently samba (version 2.2.3a) does not support 
connections on port 445.

Am I correct?
If so, will this be possible in future releases of samba?

Werner Maes


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Internet goes down. Samba dies

2002-04-24 Thread John Schmerold

If we specify ip addresses, instead of host names will this remove DNS
server requirements?

We're running a firewall on this machine, however, I like to keep all SAMBA
security in one place.

BTW, I know we didn't have this issue with older installs as we've been
using this technique for some time, however I believe this is first time we
used hostnames  depended on the hosts file.


- Original Message -
From: Buchan Milne [EMAIL PROTECTED]
To: John Schmerold [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 3:19 AM
Subject: Re: [Samba] Internet goes down. Samba dies


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 If you are going to use hosts allow or hosts deny, reverse DNS
 lookups must work on the server for any client connecting. You may want
 to run a caching and local DNS server.

 Otherwise, you might prefer to not use hosts allow and hosts deny, but
 set up a firewall instead.

 Regards,
 Buchan

 | Message: 17
 | Date: Tue, 23 Apr 2002 17:01:18 -0500
 | From: John Schmerold [EMAIL PROTECTED]
 | To: [EMAIL PROTECTED]
 | Subject: [Samba] Internet goes down.  Samba dies
 |
 | Had a client's internet connection go down.
 |
 | No one could log into Samba 2.2.3a running on top of RH 7.2
 |
 | I have following hosts lines in smb.conf:
 | hosts allow = 192.168.1. katyfax nick ap kh vp bg katy john-nt john-98
 | hosts deny = all
 |
 | In /etc/hosts, I define:
 | katyfax, nick, ap, kh, vp, bg, katy, john-nt, john-98
 |
 |
 | Ideas anybody?
 |
 | TIA
 |
 |
 |


 - --
 |Registered Linux User #182071-|
 Buchan MilneMechanical Engineer, Network Manager
 Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
 Stellenbosch Automotive Engineering http://www.cae.co.za
 GPG Key   http://ranger.dnsalias.com/bgmilne.asc
 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQE8xmqYrJK6UGDSBKcRAqzUAJ49n+cV2ojakp8SePhOzYIyYIUWgACbBH+E
 AxQi+eusBYfnoJmGXdoHCyI=
 =xWW1
 -END PGP SIGNATURE-


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] help with basics

2002-04-24 Thread Rodger Haynes

Start by setting security = share until you can log on to the server, 
then worry about authentication.
Make sure that you either have no firewall running on the server, or 
that ports 137 to 139 are open from your local network to the server.

David McBride wrote:

I am new to linux and Samba.  I have a box with Slackware 8.0 (no xwindows)
and Samba (that came on the CD) installed.  I am useing the
/etc/samba/smb.config-sample remaned to smb.conf file for my configuration
file for Samba to learn on.  I have read many how-to's and article on the
net to the point that I am only getting more frustrated and confussed.  I
would like to start out with a few basic questions that I just dont seem to
fully understand from what I have read.  I am useing a Win2K box to test
Samba with.  I can browse through network neighborhood to the slacknet
workgroup, but get the errors for account autorization errors or access
denied.  I can even do find computer and see the system netbios name of the
slackware box, but still no access.
1. how does the line guest account = pcguest affect things if left
commented out or uncommented.
2. can someone tell me what option for the line security =  I need to use
if I want Samba to ask for a user name and password when I try to access it
from my win2k box.  I have created a local user with adduser and added it
to the samba user list with smbpasswd, but it never asks for login info
when I try to connect to samba.  the user account I created was 'guest01.
3. I have a section that reads
[public]
  path=/usr/somewhere/else/public
  public=yes
  only guest=yes
  writable=yes
  printable=no
Is this good enough or does anything need to be changed?

Thanks so much for your patience with a newbie,
David





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] help with basics

2002-04-24 Thread Rashkae

Samba comes with lots of great documentation. In the Slackware install,
you will find it in /usr/doc/samba-2.2.0a/docs/
The documents are split between htmldocs and textdocs directories.

For Win2k, you will have to either modify a registry key that will allow
Windows to use plain text passwords, or you will have to configure samba
to use NetBIOS encrypted passwords.  Procedures for either case can be
found in the docs. The only other things you should need to change from
the sample smb.conf file to get going is the workgroup parameters.  At
that point, you should at least be able to connect to your
Samba Share.


On Wed, 24 Apr 2002, Rodger Haynes wrote:

Start by setting security = share until you can log on to the server,
then worry about authentication.
Make sure that you either have no firewall running on the server, or
that ports 137 to 139 are open from your local network to the server.

David McBride wrote:

I am new to linux and Samba.  I have a box with Slackware 8.0 (no xwindows)
and Samba (that came on the CD) installed.  I am useing the
/etc/samba/smb.config-sample remaned to smb.conf file for my configuration
file for Samba to learn on.  I have read many how-to's and article on the
net to the point that I am only getting more frustrated and confussed.  I
would like to start out with a few basic questions that I just dont seem to
fully understand from what I have read.  I am useing a Win2K box to test
Samba with.  I can browse through network neighborhood to the slacknet
workgroup, but get the errors for account autorization errors or access
denied.  I can even do find computer and see the system netbios name of the
slackware box, but still no access.
1. how does the line guest account = pcguest affect things if left
commented out or uncommented.
2. can someone tell me what option for the line security =  I need to use
if I want Samba to ask for a user name and password when I try to access it
from my win2k box.  I have created a local user with adduser and added it
to the samba user list with smbpasswd, but it never asks for login info
when I try to connect to samba.  the user account I created was 'guest01.
3. I have a section that reads
[public]
  path=/usr/somewhere/else/public
  public=yes
  only guest=yes
  writable=yes
  printable=no
Is this good enough or does anything need to be changed?

Thanks so much for your patience with a newbie,
David







-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] winbind logins

2002-04-24 Thread Stephen M. Przepiora

Hello,
We are looking to replace our Source Safe server with cvs, the only
problem is I am required to use our windows NT logins for CVS. I am
hoping that using winbind will solve that problem.

Is it correct that if windbind is setup properly in the nsswitch.conf
than any app that uses the standard login getpwent functions will try to
authenticate via winbind?

Steve





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Using Samba as a primary domain controller -- tutorial

2002-04-24 Thread Frank Carlos

IBM has a new Samba tutorial that shows how to integrate your Microsoft client machines with a Linux or Unix server. The following tutorial teaches you  how to configure Samba as a primary domain controller on an xSeries server.

Samba Tutorial Overview
http://www-1.ibm.com/servers/esdd/tutorials/samba.html?t=gr,psl=SambaTutorialOverview

--- Frank



RE: [Samba] Problem with Samba2.2.3a

2002-04-24 Thread MCCALL,DON (HP-USA,ex1)

Hello Hemant,
You will need either the HP ANSI C compiler (NOT the one that ships with
HPUX for free) or the 
gcc C complier to compile SAMBA on HPUX.  That is the reason you are getting
the configure errors
you are getting.
If you do not wish to compile for 11.i,  You can get the binaries for 2.2.3a
from HP software web site for free:  http://www.software.hp.com  under the
'network and system management' section.
It is called cifs/9000 server 2.2a.  It is a software depot that is
installable via HP's swinstall.  If you have a support contract with HP, you
can also get support for this version directly from HP, just like you do
with the HP-UX operating system.
You can also get these binaries from the samba.org web site:

http://us1.samba.org/samba/ftp/bin-pkgs/hp/samba2.2.3a/

Hope this helps!
Don

-Original Message-
From: Hemant Kumar Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 8:01 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Samba] Problem with Samba2.2.3a
Importance: High


Hello John

I have downloaded samba-latest.tar from the website. I just want to
know
can I install it on my HP-UX 11i machine or not ? Can it be installed on
this machine.

Also, please let me know if I can install samba-2.0.7 on my HP-UX
11i
machine or not. When I do ./configure, I am getting the following error


checking configure summary
WARNING: No automated network interface determination
ERROR: no seteuid method available
configure: error: summary failure. Aborting config


Can you please help me in this regard ?


Thanks and regards,

Hemant Kumar Choudhary
Software Engineer
Patni Computer Systems Limited
Phone: 6930205/06/09
Extn: 2105


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Re: [PATCH] Display of quoted parameters in Swat

2002-04-24 Thread Steve Langasek

Hello Tim,

On Wed, Apr 24, 2002 at 10:34:00AM +0200, [EMAIL PROTECTED] wrote:

 There is a problem with Swat and it's handling of quoted strings. I've
 tested this on the latest released version of Samba (2.2.3a).

The patch you're actually looking for is attached.

Cheers,
Steve Langasek
postmodern programmer


--- samba-2.2.2.cvs20020120.orig/source/web/swat.c
+++ samba-2.2.2.cvs20020120/source/web/swat.c
@@ -49,6 +49,19 @@
 #define ENABLE_USER_FLAG enable_user_flag
 #define RHOST remote_host
 
+typedef struct html_conversion {
+   char src;
+   char *dest;
+} html_conversion;
+
+static const html_conversion entities[] = {
+   { '', quot; },
+   { '', amp;  },
+   { '', lt;   },
+   { '', gt;   },
+   { '\0', NULL },
+};
+
 /* we need these because we link to locking*.o */
  void become_root(void) {}
  void unbecome_root(void) {}
@@ -77,6 +90,51 @@
return newstring;
 }
 
+static char *htmlentities(char *str)
+{
+   int i,j, destlen = 0;
+   int length = strlen(str);
+   /* Feel free to use a pstring if appropriate -- I haven't 
+  checked if it's guaranteed to be long enough, and suspect it 
+  isn't. -SRL */
+   char *dststr = NULL;
+   char *p;
+
+   for (i = 0; i  length; i++) {
+   for (j = 0; entities[j].src; j++) {
+   if (str[i] == entities[j].src) {
+   destlen += strlen(entities[j].dest);
+   break;
+   }
+   }
+   if (!entities[j].src) {
+   destlen++;
+   }
+   }
+   if (length == destlen) {
+   return(strdup(str));
+   }
+   p = dststr = malloc(destlen + 1);
+   if (!dststr) {
+   return(NULL);
+   }
+   dststr[destlen] = '\0';
+   for (i = 0; i  length; i++) {
+   for (j = 0; entities[j].src; j++) {
+   if (str[i] == entities[j].src) {
+   strncpy(p, entities[j].dest,
+   strlen(entities[j].dest));
+   p += strlen(entities[j].dest);
+   break;
+   }
+   }
+   if (!entities[j].src) {
+   *p++ = str[i];
+   }
+   }
+   return(dststr);
+}
+
 static char *stripspace(char *str)
 {
 static char newstring[1024];
@@ -182,8 +240,12 @@
 
case P_STRING:
case P_USTRING:
-   printf(input type=text size=40 name=\parm_%s\ value=\%s\,
-  make_parm_name(parm-label), *(char **)ptr);
+   str = htmlentities(*(char **)ptr);
+   printf(input type=\text\ size=\40\ name=\parm_%s\ 
+value=\%s\,
+  make_parm_name(parm-label), str);
+   if (str != NULL) {
+   free(str);
+   }
printf(input type=button value=\Set Default\ 
onClick=\swatform.parm_%s.value=\'%s\'\,
make_parm_name(parm-label),fix_backslash((char 
*)(parm-def.svalue)));
break;



msg01041/pgp0.pgp
Description: PGP signature


[Samba] Does samba need WINS on win2k?

2002-04-24 Thread drenning, bruce

Do I need to have our win2k pro clients pointing to a WINS server in order
for them to use Samba (2.0.10)? It seems I could simply add the samba server
to the DNS and map drives in our login script via FQDN instead of Netbios
name. I want to make sure I'm not overlooking something. TIA


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Problems with samba-ssl

2002-04-24 Thread ismael kane

As all of you, I've problems with samba. Trying to install samba-2.2.3 
with ssl support, I note  that the instalation of samba have been local
and smbd and nmbd have a local behaivor, How I can change it, with one 
script that puts the daemons in initd ? or  ?



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Compiling Samba 2.2.3a with LDAP

2002-04-24 Thread Peter Erickson

I am trying to compile samba 2.2.3a with ldap support and after running configure 
--with-ldapsam, it bombs about 3/4 of the way through with the following error:
checking whether to support ACLs... no
checking whether to build winbind... no, unsupported on freebsd4.4
checking configure summary
configure: error: summary failure. Aborting config

Then if I look at the end of the config.log, i have this error:
configure:12936: checking whether to build winbind
configure:13019: gcc -o conftest -Oconftest.c -lldap -llber -lresolv  -lcrypt 15
/usr/libexec/elf/ld: cannot find -lldap
configure: failed program was:
#line 13015 configure
#include confdefs.h
#include ./tests/summary.c

Can any one give me any idea on how to fix this please? All help is appreciated. 
Thanks in advance.

-- 
Peter Erickson
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Compiling Samba 2.2.3a with LDAP

2002-04-24 Thread Tom Syroid

ACL support must be compiled into your kernel before Samba will recognize 
it.

I'm not sure about the filesystem layout on FreeBSD, but on Linux:

cd /usr/src/linux
make menuconfig
--Filesystems
-- [x] support for POSIX Access Control Lists...

/tom

--On Wednesday, April 24, 2002 10:54:39 -0500 Peter Erickson 
[EMAIL PROTECTED] wrote:

 I am trying to compile samba 2.2.3a with ldap support and after running
 configure --with-ldapsam, it bombs about 3/4 of the way through with the
 following error: checking whether to support ACLs... no
 checking whether to build winbind... no, unsupported on freebsd4.4
 checking configure summary
 configure: error: summary failure. Aborting config

 Then if I look at the end of the config.log, i have this error:
 configure:12936: checking whether to build winbind
 configure:13019: gcc -o conftest -Oconftest.c -lldap -llber -lresolv
 -lcrypt 15 /usr/libexec/elf/ld: cannot find -lldap
 configure: failed program was:
# line 13015 configure
# include confdefs.h
# include ./tests/summary.c

 Can any one give me any idea on how to fix this please? All help is
 appreciated. Thanks in advance.

 --
 Peter Erickson
 [EMAIL PROTECTED]

 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Internet goes down. Samba dies

2002-04-24 Thread Mike Maki

I have the same problem and I only use IP addresses in my Host Allow/Deny.
Strange thing is when Internet access is lost one samba server is still
reachable the other is not. I have not been able to find the difference
between the two. Both have almost identical global configs (Hosts
Allow/Deny). Luckily our connectivity is quite reliable. Hope to hear some
other possible solutions.

Thanks!
 Date: Wed, 24 Apr 2002 07:40:28 -0500
 From: John Schmerold [EMAIL PROTECTED]
 Subject: Re: [Samba] Internet goes down.  Samba dies
 To: [EMAIL PROTECTED]

 If we specify ip addresses, instead of host names will this remove DNS
 server requirements?

 We're running a firewall on this machine, however, I like to keep all
SAMBA
 security in one place.

 BTW, I know we didn't have this issue with older installs as we've been
 using this technique for some time, however I believe this is first time
we
 used hostnames  depended on the hosts file.


 - Original Message -
 From: Buchan Milne [EMAIL PROTECTED]
 To: John Schmerold [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 3:19 AM
 Subject: Re: [Samba] Internet goes down. Samba dies


  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  If you are going to use hosts allow or hosts deny, reverse DNS
  lookups must work on the server for any client connecting. You may want
  to run a caching and local DNS server.
 
  Otherwise, you might prefer to not use hosts allow and hosts deny, but
  set up a firewall instead.
 
  Regards,
  Buchan
 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Weird problems using Samba over a dialup connection

2002-04-24 Thread Richard Hellier

Anyone else seen this?

I dial in using a Win 2K box and can see the shares on a (UNIX) Samba
server (via the net view command).  If I try from a Win 98 machine I
get:


System error 53 has occurred. The network path was not found.

or (sometimes!)

System error 51 has occurred. The remote computer is not available.

Whether I use 2K or 98, if I do the net view against an NT server,
the command works fine.

I should add that the problem machines work fine if connected
directly to the LAN -- the bizarreness only happens when dialled
up.


Cheers,

Richard.



-- 
Richard L. Hellier

LSI Logic Europe plcTel: +44 1344 413183
Greenwood House Fax: +44 1344 413114
London Road
Bracknell
Berkshire RG12 2UB
UK

begin:vcard 
n:Hellier;Richard
tel;pager:[+44] 7693-905798
tel;fax:[+44] 1344-413114
tel;work:[+44] 1344-413183
x-mozilla-html:FALSE
org:LSI Logic;GES UNIX Europe
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Greenwood House=0D=0ALondon Road;Bracknell;BK;RG12 2UB;GB
x-mozilla-cpt:;0
fn:Richard Hellier
end:vcard



Re: [Samba] Samba 2.2.2 Codes

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Hemant Kumar Choudhary wrote:

 Hello
 
   I have downloaded samba-2.2.2-hppa1.1-hp-hpux10.20.tar.gz from your
 website. It contains a precompiled suite of Samba. I wanted to get the
 source codes of Samba 2.2.2. Where can I get it from ?

See the FTP mirrors on the http:/samba.org and look in the old-versions 
subdirectory.






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba as BDC

2002-04-24 Thread Gerald Carter

On Fri, 19 Apr 2002, Kristyan Osborne wrote:

 Hi,
 
 Is it possible to make samba act as a BDC yet??

In a purely Samba controlled domain, yes.
In a Windows domain (interacting with Windows DC's), no.

There's information abotu this in the Samba-HOWTO-Collection.pdf 
file.





jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Problem with null passwords and samba

2002-04-24 Thread dbenwit

Hi all,

I recently installed a file server at a client site using COL Server 3.1.1 and Samba 
2.2.3a. The file server was configured to be a member server in the Windows NT domain 
using the global parameter server = domain in the smb.conf file. I am using winbind 
to allow users to be authenticated by the PDC NT server for the domain.
In general, everything seems to be working as I expected,  except for one issue. The 
client is a computer training site which uses separate user accounts for each computer 
in the classroom. In order to make it easier for the teacher and students, the 
passwords for these accounts are blank or null. The problem is that when you log onto 
one of these computers using an account with no password and then try to browse the 
samba file server using Network Neighborhood, you are asked for a password (entering a 
blank password does not work). In contrast, if you log onto a computer with a user 
account which has a password, you can browse the file server in network neighborhood 
without any problems.
I don't understand why the samba file server is not allowing access to these accounts 
with no password. I would have thought that they would be treated the same as accounts 
with passwords. I have tried using the global parameter null passwords = yes in the 
smb.conf file but this does not appear to make any difference.
Any help with this problem would be greatly appreciated. Below is info on my 
configuration for samba

nsswitch.conf

# /etc/nsswitch.conf
#
# Name Service Switch configuration file.
#

passwd: files winbind
shadow: files winbind
group:  files winbind

hosts:  files nis dns
networks:   nis files dns

ethers: nis files
protocols:  nis files
rpc:nis files
services:   nis files

__
smb.conf

# Global parameters
[global]
 workgroup = DUFF-LAB
 netbios name = LAB-2
 server string = Samba Server on Caldera OpenLinux
 security = domain
 password server = lab-1
 encrypt passwords = Yes
 null passwords = yes
  #winbind configuration
 winbind separator = +
 winbind cache time = 10
 template shell = /bin/bash
 winbind uid = 1-2
 winbind gid = 1-2
 winbind enum users = yes
 winbind enum groups = yes
  #end
 log file = /var/log/samba.d/smb.%m
 max log size = 200
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 dns proxy = No
 wins server = 10.251.8.61
 admin users = dave

__
/etc/pam.d/samba


auth   required   /lib/security/pam_securetty.so
auth   required   /lib/security/pam_nologin.so
auth   sufficient  /lib/security/pam_winbind.so  nullok
auth   required   /lib/security/pam_pwdb.soshadow nullok use_first_pass
accountrequired   /lib/security/pam_winbind.so

Thanks in advance,
Dave

__
Get your FREE personalized e-mail at http://www.canada.com

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Printing troubles

2002-04-24 Thread Damian Gerow

Our print server (linux 2.2.19, Debian unstable, with the 2.2.3a-6 package) 
had a bit of trouble yesterday, and after getting everything back up and 
working, printing is now broken.  I can print from the commandline, but not 
through samba.

 From a 2000 client, I can see the printer shares, but can't ever actually 
print to them (Could not start print job.)  If I open the server in 
Network Neighbourhood, and browse the 'Printers' share, I get errors on the 
samba server (signal 11 in smbd), and can no longer access the server 
without restarting samba -- Remote Procedure call failed.

I can post the logs if need be, as well as the printer config, just 
wondering if anyone has any ideas beforehand.  I did a quick check through 
the archives, but couldn't find anything.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba crashes under SuSE 8.0

2002-04-24 Thread Stefan Onken

Hello,

my first posting in this list. Hope, that everything is ok.. My 
nickname Stonki, I am German and living in SE London.

The Problem:
After updating (complete new installation) of my workstation, Samba 
crashes constantly when I try to mount the share.

Client: SuSE 8
stonki@stonki:~ uname -a
Linux stonki 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
Samba 2.2.3a

Server: Suse 7.2
stonki@linux:~  uname -a
Linux linux 2.4.4-4GB #1 Wed May 16 00:37:55 GMT 2001 i586 unknown
Samba 2.2.0

When I try to mount the share stuff in the /mnt/net Directory on 
my client computer, I get this message and Samba is not responding 
in any way:

Apr 24 17:02:45 stonki kernel: Unable to handle kernel paging 
request at virtual address e000
Apr 24 17:02:45 stonki kernel:  printing eip:
Apr 24 17:02:45 stonki kernel: c767bae9
Apr 24 17:02:45 stonki kernel: *pde = 
Apr 24 17:02:45 stonki kernel: Oops: 
Apr 24 17:02:45 stonki kernel: CPU:0
Apr 24 17:02:45 stonki kernel: EIP:0010:[c767bae9]Tainted: 
P
Apr 24 17:02:45 stonki kernel: EFLAGS: 00013246
Apr 24 17:02:45 stonki kernel: eax:    ebx: 676d5e75   ecx: 
e7f963fd   edx: 37f2ab7f
Apr 24 17:02:45 stonki kernel: esi: e000   edi: cae83e2c   ebp: 
cae83ec4   esp: cae83ddc
Apr 24 17:02:45 stonki kernel: ds: 0018   es: 0018   ss: 0018
Apr 24 17:02:45 stonki kernel: Process xmms (pid: 1159, 
stackpage=cae83000)
Apr 24 17:02:45 stonki kernel: Stack: c0140030 cae83e94 e28ab412 
0001    c7fea800
Apr 24 17:02:45 stonki kernel:c779b520  0005c037 
   cbe85000 0008
Apr 24 17:02:45 stonki kernel:  0001 
000a c767a335 cb8f7b40 cae83fb0 c0140030
Apr 24 17:02:45 stonki kernel: Call Trace: [filldir64+0/276] 
[c767a335] [filldir64+0/276] [filldir64+0/276] [c767a3c2]
Apr 24 17:02:45 stonki kernel:[filldir64+0/276] [c767b30c] 
[filldir64+0/276] [vfs_readdir+97/132] [filldir64+0/276] 
[sys_getdents64+79/179]
Apr 24 17:02:45 stonki kernel:[filldir64+0/276] 
[sys_fcntl64+127/136] [system_call+51/64]
Apr 24 17:02:45 stonki kernel:
Apr 24 17:02:45 stonki kernel: Code: 8a 06 46 89 c2 c1 e2 04 01 da 
c1 e8 04 01 c2 8d 04 92 8d 1c
Apr 24 17:03:16 stonki su: (to root) stonki on /dev/pts/2
Apr 24 17:03:16 stonki su: pam_unix2: session started for user root, 
service su


Any Ideas ?

cu

-- 
Deutsche ProFTPD Dokumentation: http://www.stonki.de
EFNET: #proftpd

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba crashes under SuSE 8.0

2002-04-24 Thread Christian Barth

 Hello,
 
 my first posting in this list. Hope, that everything is ok.. My 
 nickname Stonki, I am German and living in SE London.
 
 The Problem:
 After updating (complete new installation) of my workstation, Samba 
 crashes constantly when I try to mount the share.
 
 Client: SuSE 8
 stonki@stonki:~ uname -a
 Linux stonki 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
 Samba 2.2.3a
 
 Server: Suse 7.2
 stonki@linux:~  uname -a
 Linux linux 2.4.4-4GB #1 Wed May 16 00:37:55 GMT 2001 i586 unknown
 Samba 2.2.0
 
 When I try to mount the share stuff in the /mnt/net Directory on 
 my client computer, I get this message and Samba is not responding 
 in any way:
 
 Apr 24 17:02:45 stonki kernel: Unable to handle kernel paging 

stonki is the client and you use smbmount to access the samba server 
linux? And then?

 Apr 24 17:03:16 stonki su: (to root) stonki on /dev/pts/2
 Apr 24 17:03:16 stonki su: pam_unix2: session started for user root, 

Looks like stonki is still running an feeling happy (more or less). 
And linux? still running? can samba be accessed form a PC? What 
gives smblicent -L . , smbstatus on linux?

Any way?
It looks like a kernel problem on stonki. Look if Suse overs a 
update. Or downgrade to an older version. Or build you on kernel.

Christian

   _(_)_  wWWWw   _
  (_)(_)   vVVVv _   (___) _(_)_
  () wWWWw  (_)\(___)   _(_)_  ()   Y  (_)(_)
 (___) `|/Y(_)(_) \|/   (_)\
/  Y   \|\|//(_)\|  |/  |
 \ | \ |/   | / \ | /  \|/   |/\|  \|/
jgs|//   \\|///  \\\|//\\\|/// \|///  \\\|//  \\|//  \\\|// 
^

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] W2K user needs root rights in Samba, how can I set it up?

2002-04-24 Thread Kevin Bramblett

I have a BackupExec program running on a W2K server which needs to backup
data on my RHL 7.2 machine running Samba 2.2.3a-20020206 and winbind.  How
can I give this BackupExec program (which has its own user) the rights it
needs to copy and change the archive bit of various files in various
user/group directories?  This is the last portion I need to get fixed so I
can change all permissions to their appropriate levels of security.

All help is very much appreciated.

Kevin Bramblett


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing troubles

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Damian Gerow wrote:

 Our print server (linux 2.2.19, Debian unstable, with the 2.2.3a-6
 package)  had a bit of trouble yesterday, and after getting everything
 back up and working, printing is now broken.  I can print from the
 commandline, but not through samba.
 
  From a 2000 client, I can see the printer shares, but can't ever
 actually print to them (Could not start print job.)  If I open the
 server in Network Neighbourhood, and browse the 'Printers' share, I get
 errors on the samba server (signal 11 in smbd), and can no longer access
 the server without restarting samba -- Remote Procedure call failed.

Check the level 10 debug log just before the crash (search for
BUGS) and see if there is a reference to *SMBSERV[ER].  We fixed 
a bug related to this error logging just after the 2.2.3a release.
You might want to try the SAMBA_2_2 cvs code (since you are running debian 
unstable anyways) :-)  There's scripts for creating *.deb in
packaging/debian/






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] W2K user needs root rights in Samba, how can I set itup?

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Kevin Bramblett wrote:

 I have a BackupExec program running on a W2K server which needs to
 backup data on my RHL 7.2 machine running Samba 2.2.3a-20020206 and
 winbind.  How can I give this BackupExec program (which has its own
 user) the rights it needs to copy and change the archive bit of various
 files in various user/group directories?  This is the last portion I
 need to get fixed so I can change all permissions to their appropriate
 levels of security.
 
 All help is very much appreciated.

See admin users in smb.conf(5)






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing troubles

2002-04-24 Thread Damian Gerow

At 03:17 PM 4/24/2002, Gerald Carter wrote:
Check the level 10 debug log just before the crash (search for
BUGS) and see if there is a reference to *SMBSERV[ER].  We fixed
a bug related to this error logging just after the 2.2.3a release.
You might want to try the SAMBA_2_2 cvs code (since you are running debian
unstable anyways) :-)  There's scripts for creating *.deb in
packaging/debian/

On loglevel=10 and debuglevel=10, nothing shows up about SMBSERV(ER).  But 
I'll co the current CVS code, and see if I can get the new version printing 
again.

Thanks.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing troubles

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Damian Gerow wrote:

 At 03:17 PM 4/24/2002, Gerald Carter wrote:
 Check the level 10 debug log just before the crash (search for
 BUGS) and see if there is a reference to *SMBSERV[ER].  We fixed
 a bug related to this error logging just after the 2.2.3a release.
 You might want to try the SAMBA_2_2 cvs code (since you are running debian
 unstable anyways) :-)  There's scripts for creating *.deb in
 packaging/debian/
 
 On loglevel=10 and debuglevel=10, nothing shows up about SMBSERV(ER).  But 
 I'll co the current CVS code, and see if I can get the new version printing 
 again.

If you are still seeing smbd dump core, let me know so we can be sure this 
is fixed before 2.2.4.





cheers, jerry


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] do I need to rejoin machines to the domain?

2002-04-24 Thread Marc Petitmermet

Due to a stupid human mistake we had some UIDs in the passwd and 
smbpasswd which were identical for users and machines, i.e. the user 
peter had the UID 1044 and the machine cyclone had the UID 1044. We 
configured samba as a PDC, therefore, nobody could log in anymore. I 
fixed the UIDs in the passwd by changing the machines' UIDs, then I 
deleted the machine's entries in smbpasswd and added them again to 
the smbpasswd. The problem now is that login to the domain does not 
work any more. My question is: do we need to rejoin the machines to 
the domain due to these changes in the smbpasswd?
Thanks for any hints.

Regards,
Marc

P.S.: samba 2.2.3a on Solaris; Win2k-, WinNT-clients

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba 2.2.3a and Windows XP Pro

2002-04-24 Thread K. Hawkes

We've now got a Windows XP machine we'd like to add to our domain.
Simple enough, I add it to the domain, it says 'Welcome to the TEST Domain'.
I apply the registry patch in the samba 2.2.3a archive and reboot.

When it comes to login, I type in a valid user 'Administrator' in this case
and select the domain of TEST.
It says it can't connect to the server or find the domain or something like
that.

User Administrator works on a Win98SE machine, has an account on the domain
etc.
All IP addresses and Netbios names are setup also.  So I'm wondering what
the problem is.

Should I have put the registry patch FIRST and THEN join to domain?

Any ideas?

Kris

May darkness be your only ally, for in the shadows you can hide - Kris
1998-2002
Happiness is but a dream, an unobtainable dream, quit dreaming. - Kris
2002

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQEVAwUBPHjfdSBHjRAjzresAQHZpgf/ZKpt2Nl+8EmIJwT/rLFtx8yhFFKdqVk6
pQGsgeOGN1ZI5kSOU6FBeWkyVS3YKLV6UHhvHVm1MQuBwPyfnjhQGj+OuI9jQPoc
qTFb0TRQivOQoOeJq1PfIFcl53RrvRUOFAl8+jdKqZo/IFARdllknkCMTZirvp5l
M+7/4a/ua2rx8d46zab1RF5YYNHRjyJRXD913FHty5VXCX31DJ55nAho30lOKOPC
TNT+zzO1UC/J+keWSjxSSV3wPeOiOgtUtI5FiuXJmv1IXzsxjogGCTd0HUJ/04mR
H623bEhl8M8yF/x6seCNKpHDkDQjoL+ddlQGVezdgbg3z7Jd7Y6VKA==
=/whC
-END PGP SIGNATURE-


---
Outgoing mail is certified Virus Free by AVG 6.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/2002


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Permissions

2002-04-24 Thread Joel Hammer

Post your smb.conf file for the share. You may have to use the:
create mask (S)
  A synonym for this parameter is create mode .

  When a file is created, the  necessary  permissions
  are  calculated  according  to the mapping from DOS
  modes to UNIX permissions, and the  resulting  UNIX
  mode  is then bit-wise 'AND'ed with this parameter.
  This parameter may be thought of as a bit-wise MASK
  for  the UNIX modes of a file. Any bit not set here
  will be removed from the modes set on a  file  when
  it is created.

  The  default  value  of  this parameter removes the
  'group' and 'other' write and execute bits from the
  UNIX modes.

Note: The default behavior sounds like what you are seeing.
Joel

On Wed, Apr 24, 2002 at 10:49:45AM +, [EMAIL PROTECTED] wrote:
 Heeelllp,
 
 I am strugling with permisions for Samba. I must have missed something.
 
 I have chmod the parent folder.
 I have set up a group and made all users part of the group.
 I have set file permissions for everybody to access all files.
 
 The problem I have is that each time someone opens a file the group write 
permissions are reset and nobody else can edit that file. If you go to the samba 
server and change the permissions anybody can open and edit the file and save but 
then noone else can write to it until the permissions are altered.
 
 When you create a file it is created under the group but without group write access.
 
 Have I missed a setting in smb.conf. How is one supposed the share files if other 
members of the group cannot access it.
 
 Thanks
 
 Martin

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Wins server replication.

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Stian B. Barmen wrote:

 Can I use Samba as my primary WINS server and make it replicate with
 Windows WINS servers? Or maybe as a last resort, can Samba NMBD
 replicate between multiple NMBD servers?

There's experimental support for this in HEAD.  But no on both 
counts for the 2.2 branch.










cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] winbind logins

2002-04-24 Thread Gerald Carter

On 24 Apr 2002, Stephen M. Przepiora wrote:

 Hello,
   We are looking to replace our Source Safe server with cvs, the
 only problem is I am required to use our windows NT logins for CVS. I am
 hoping that using winbind will solve that problem.
 
 Is it correct that if windbind is setup properly in the nsswitch.conf
 than any app that uses the standard login getpwent functions will try to
 authenticate via winbind?

You'll need to use the pam_winbind.so module to actually authenticate 
users.








cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Project Schedule

2002-04-24 Thread Richard Pyne

Dave,

Now that (I think) I have all of the information needed and have been able to 
look over a good sample transaction, my best worst case estimates are:

Configuration piece (payconfig.cgi) working by Wednesday, May 1,
Authorization piece (thankyou.cgi) working by Tuesday, May 7,
Billing piece (orderhandler.cgi) working by Friday, May 10.

I already have a test account set up with CSI, so we won't have to wait for 
that.

I have intentionally estimated long on the Authorization piece because it 
will involve modifying the ssl/xml code we have to handle the private key 
validation.

--Richard

-- 
Richard B. Pyne
Software Engineer
ShopSite, Inc.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba 2.3.3a and user/server Manager unix groups visible?

2002-04-24 Thread Gerald Carter

On Thu, 4 Apr 2002, Erik Ranà wrote:

 Hello.
 
 If i run user manager on a machine that is a member of my domain
 i can list all groups and the unix system root account.
 Im not able to change groups of a user.
 
 Is this by design?

Currently yes.

 I feels alittle bit strange that it is possible to view unix grouups and
 users on the WinNT domain? Can i somehow hide groups so the only
 relevant groups for the domain is shown in user manager? Something equal
 to a user.map function? there i can both map a backend unix group to
 frontend user manager , and filter so groups that are not relevant to
 samba and NT domain administraton are not shown in the user manager..

See hide local groups IIRC.






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] start of print file spool to samba

2002-04-24 Thread Gerald Carter

On Wed, 3 Apr 2002, Floyd Shackelford wrote:

 The problem is that JobStart.sh gets called about 5 times with every
 job. Obviously, i have my code in the wrong place. Can anyone suggest a
 better place to put it?

Look for where we execute the print command.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Spooler for windows

2002-04-24 Thread Mario Galindo



Andrew

 I`m sorry to 
trouble you. I`m looking for a windows spooler with "Automatic job holding" 
feature. I`m a Visual Basic developer and using Windows API to perform some of 
the functionality. I`m able to use those API's like "pause", "resume" or 
"delete" a job. My problem is some of these jobs coming from Excel, Power point 
can not pause them correctly (1, 2 or 3 pages, few info) some times it jams the 
shared printer or is difficult to pause them. Only winword is 100% ok. I need to 
control this from Visual Basic and I need a way to do it. It could be a DLL, OCX 
or an external program (preferable royalty free). I don`t have a big budget so 
if this software can help me in some way (Samba) or if you know other 
productor a developer that can make this for me I really appreciate any 
help. I needmost of the same features Windows spooler has (pause, resume, 
delete, pages for jobetc...) plus any incoming job bepaused 
(Automatic job holding) and can be controlled through Visual Basic.

 
 Thanks in advance 
for your help  Best Regards / Mario Galindo


Re: [Samba] Samba 2.2.1a and Dataflex

2002-04-24 Thread Gerald Carter

On Mon, 22 Apr 2002, Bill Clifford wrote:

 I have been running Samba 2.2.1a (on Mandrake 8.1) as a
 domain controller and document file server for several months at two
 sites without any problems.  I moved my 4gl Dataflex files to a Samba
 share 2 weeks ago and have been experiencing escalating datafile
 corruptions.  The application runs on hundreds of workstations in
 Windows networks for the last 10 years without any file corruptions even
 with power and hardware failures.  Opportunistic locking is an issue
 with Dataflex in Windows networks so I turned oplocks off on the
 Dataflex share (level2 oplocks is also turned off on the share).  I had
 to turn Kernel oplocks off as well to support logon scripts for users
 with more than 8 characters in the name.  Opportunistic locking registry
 settings have been turned off at the clients.  Is there something else I
 should be doing?  I need to solve this quickly as new clients are
 interested in going with Samba rather than Win2K server - if I can't
 make this work in the next week, I will have to abandon hours of work
 learning Samba and go back to Win2K (argh!).

Bill, 

You should upgrade to a later version.  2.2.4 should be out soon.
Right now I would recommend trying the latest SAMBA_2_2 cvs code
to see if we have your problem fixed.  If something is still broken,
we will need to get log files and possibly packet traces to 
see why.

Details on obtaining SAMBA_2_2 cvs code can be found at 
http://samba.org/samba/cvs.html





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] samba ports blocked by isp

2002-04-24 Thread Barry Smoke

Is it possible to map a drive to a samba share over the internet,
through an isp that blocks the samba ports...
I know with samba, I can specify a port, but what about a windows
client?
Can I change what port a windows machine looks to for samba/smb for a
particular share only?


Barry Smoke
Network Administrator
Bryant Public Schools


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] simple question

2002-04-24 Thread Gerald Carter

On Mon, 8 Apr 2002, Ivana Ivi[ISO-8859-2] æ wrote:

 I have problem with samba 2.2.0, 
 the bug is reported with id 21518
 
 Solaris 2.7/2.8 and 2.2.x fcntl problem,
 but I can't find information about solution
 nor bug status on samba.org site.

Upgrade to 2.2.3a or better still wait a little bit for 2.2.4 to be 
released.




cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] SAMBA for Solaris 2.6

2002-04-24 Thread Gerald Carter

On Mon, 22 Apr 2002, Cullen, Jay wrote:

 Hello, We have a server running solaris 2.6 and am interested in using
 your samba product, is the samba-2.0-Solaris-2.6 package still
 available??

See one of the FTP mirrors listing on http://samba.org under
/pub/samba/Binary_Packages/solaris





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] unable to complete ./configure --with-ldapsam withoutopenldap-devel

2002-04-24 Thread Gerald Carter

On 5 Apr 2002, Bradley W. Langhorst wrote:

 I get this message when i attempt
 
 ./configure --with-ldapsam
 ... (see below if you care)
 configure: error: summary failure. Aborting config

Tail the last 100 lines or so of config.log and see what failed.







jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] DFS and MS explorer

2002-04-24 Thread Gerald Carter

On Tue, 16 Apr 2002, Markus Korth wrote:

 Greetings !
 
 We are currently testing samba together with DFS. All is working fine
 with one exception: From time to time (but too often) the user gets the
 message 
 n:\bla\path\to\somewhere isn't available.
 The directory has been moved or deleted.
 when accessing a directory with the explorer.
 The message above is translated from german, therefore the original
 english message might look a little bit different.
 I know definitively that the above directory is still there: When
 clicking somewhere else and back into the corresponding directory
 explorer happily shows its content.
 OS: Linux with kernel 2.4.17, samba 2.2.3a
 Client: NT 4.0 SP6a and Win2K (with SP2, I think).

I think Shiresh just fixed this a few days ago.
Can you try the latest SAMBA_2_2 cvs code and see
if you are still having a problem?






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Authentication Problem

2002-04-24 Thread Gerald Carter

On Wed, 17 Apr 2002, _pkliste wrote:

 It seems as if winbind tries to use anonymous access to the w2k server
 to do the listing. The w2k server doesn't like it, and I can't tell it
 to accept it. Isn't winbind supposed to use the shared secret stored in
 the secrets.tdb ?

See the wbinfo man page.  There's an option for specifying
a user/pass pair for connecting the to PDC to use a non-anonymous
connection.  The machine account cannot be used for this purpose.









cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Problem with Samba 3.0-alpha17 and Windows 2000 Professional

2002-04-24 Thread Gerald Carter

On Fri, 12 Apr 2002, Douglas G. Phillips wrote:

 I am running into a strange error when trying to connect to a printer on
 a samba server.  The server is running RedHat 7.2 and Samba 3.0-alpha 17
 (I pulled it down from CVS - HEAD section).
 
 I can browse the shares, but when I attempt to connect to the printer
 share, it gives me this message (on the windows side):
 
 Could not connect to the printer.  You either entered a printer name
 that was incorrect or the specified printer is no longer connected to
 the server.
 
 It does this after asking me if I want to install the driver for the
 printer.
 
 The log for the machine on the server side is as follows:
 
 [2002/04/12 17:27:02, 2] lib/util_sock.c:open_socket_out(929)
   error connecting to (PDC):445 (Connection refused)
 [2002/04/12 17:27:02, 2] auth/auth.c:check_ntlm_password(256)
   check_password:  authenticaion for user [-] - [-] - [(DOMAIN)+(user)] 
suceeded
 [2002/04/12 17:27:02, 2] lib/access.c:check_access(301)
   Allowed connection from  (---.---.---.---)
 [2002/04/12 17:27:03, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(251)
   find_printer_index_by_hnd: Printer handle not found:
  find_printer_index_by_hnd: Printer handle not found:
  close_printer_handle: Invalid handle (OTHER:29495:29496)

I need a level 10 debug log to diagnose this.
Thanks.








cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Disconnecting shares

2002-04-24 Thread Gerald Carter

On Thu, 11 Apr 2002, Jens Hoffrichter wrote:

 Hi everyone,
 
 we are using Samba V2.2.3a on a Debian Linux woody system. The samba
 server is configured to be a PDC for our domain, which has mainly
 Windows 2000 clients.
 
 When the clients are idle in the network and don't use the server for
 a while, the shares connected on the client get inactive (marked with a cute little
 red cross in windows ;)) ), and sometimes it takes Windows up to 30 seconds
 to reconnect to the shares. That's kinda nasty if eg. Word tries to save
 a file while Windows tries to reconnect to the server, we have ended up with
 screwed up files more than once.
 
 We have tried most of the options regarding TCP and and timeouts, but we
 have found no solution to it yet. 
 
 If somebody has some useful hints for us, we would be very glad.

This is a Win2k client setting IIRC.  Search support.microsoft.com for 
2000 disconntect network share to locate the registry key (i'm guessing 
that will work).







cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] SMBMOUNT to C$ Share on Windows XP. HELP!

2002-04-24 Thread Malcolm Jack








Hey all!

Ok, here's the deal. It's a little off
topic as it centers more around mount and XP issues then actual Samba, but they
all seem to tie together, sooo . . . 



I have a RH 6.2 Box running a Samba (2.0.10) server
with no problems. I have a mixed network of Windows NT4, Win 98/95 Boxes,
and Windows 2000 WS and Server. Everything was talking just fine. 



Not only could the M$ boxes see the Samba server, I could go
the other way using mount -t smbfs. 



I use the format ' mount -t smbfs -o
username=foo,password=bar //server/share /mnt '



It has worked just fine provided 2 things;

1
The share existed (This includes the NT/200
Administrative Shares (C$ D$) 

2
I used a valid username/password on the box I was
connecting TO (i.e. Local account on the NT box)



Everything has been fine with NT, and 2000. 



Problem:

I just upgraded a box to XP-Pro. Everything is fine
going from XP to SAMBA, no problems at all. But SAMBA to XP is no longer
working. Example below



[root@hoc samba]# mount -t smbfs -o username=administrator,password=
//bytelair/C$ /mnt/net1

tree connect failed: ERRDOS - ERRnoaccess

SMB connection failed

[root@hoc samba]#



It seems to me to be an access problem, that XP dosen't
like the authentication token given, but Windows 2000 likes it
fine. 



Any ideas?



TIA!



Malcolm








Re: [Samba] SMB Spool Limitations

2002-04-24 Thread Gerald Carter

On Wed, 17 Apr 2002, Jacqueline Probe wrote:

 Does anyone know the limitations of smb spool?  I would like to define
 5,000 print shares to a single midrange UNIX box and would like to know
 if their are any limitations to this proposed architecture.

That's a lot of queue :-)  Seriously I would test the hack out 
of it first.  The one thing I would watch out for is the amount of
tdb lookups that we have to do and other things like the lpq cache 
parameter.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] samba and JNI

2002-04-24 Thread Floyd Shackelford


i'm using redhat v7.2 as it comes right out of the box.

here's what comes up at boot:

Linux version 2.4.7-10 ([EMAIL PROTECTED]) (gcc version
2.96 2731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 6 17:27:27 EDT 2001

Regards,

Floyd Shackelford
4 Peaks Technology Group, Inc. http://www.4peakstech.com/
VOICE: 334.735.9428
FAX:   916.404.7125
EMAIL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

acta non verba



-Original Message-
From: Gerald Carter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 5:46 PM
To: Floyd Shackelford
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] samba and JNI


On Thu, 11 Apr 2002, Floyd Shackelford wrote:

 i am using a linux/samba box as a print server. whenever a user submits a
 print job, i want to notify the user that samba is receiving the print
job.
 i have a java service running on each client machine that pops up a gui to
 that effect when notified. i am trying to integrate java JNI into samba to
 tell the java server on the client to display the gui. however, just
adding
 the JNI initialization code to smbd/server.c main causes samba to get
the
 following error whenever a print job is submitted. also, the print job
fails
 to spool. (debug level 3)

 [2002/04/11 11:34:11, 0]
smbd/oplock_linux.c:linux_init_kernel_oplocks(284)
   Failed to setup RT_SIGNAL_LEASE handler
 [2002/04/11 11:34:11, 3] smbd/oplock.c:init_oplocks(1214)
   open_oplock ipc: pid = 15010, global_oplock_port = 32775
 [2002/04/11 11:34:11, 0] smbd/notify_kernel.c:kernel_notify_init(190)
   Failed to setup RT_SIGNAL_NOTIFY handler

What linux kernel is this?  Someone else posted a similar message to
samba-technical wrt to Oracle  Samba

Strange...








chau, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.342 / Virus Database: 189 - Release Date: 3/14/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.342 / Virus Database: 189 - Release Date: 3/14/2002


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba and Ntdomain

2002-04-24 Thread UNX BOY

Hey guys got a weird situation. First thing I am running Sol8 on an ultra 5 
running samba-2.2.2, nt box running windows 2000 server service pack2.  I 
decided to use the nt authentication to samba shares. So i added the samba 
server to the domain.  Here is my smb.conf:

# Global parameters
[global]
workgroup = SYS
netbios name = nsmx1
server string = Hater...Samba %v on (%L)
security = DOMAIN
domain logons = yes
password server = nspdc2
encrypt passwords = Yes
map to guest = Bad Password
log level = 3
log file = /var/log/samba.log.%m
max log size = 50
lm announce = True
preferred master = False
local master = No
domain master = False

[homes]
browseable = No
writeable = Yes

[Ports]
comment = Solaris Ports
path = /opt/local/src
guest ok = Yes
volume = Solaris Ports

I used smbpasswd -j SYS -r nspdc2 -U administrator, prompted me for passwd, 
entered it and it successfully joined the domain. Now i ahve verified that 
when I log into my nt domain with a diff account I am able to get to the 
shares, meaning that the nt auth to samba is working.  Now the problem is 
when i goto srvmgr I choose view all and it show my WIndows NT5.1 Primary 
then I see the samba server listed as NSMX1 Windows NT 4.5 BACKUP.  If i 
choose to view just workstations thier is a differnt entry for that same 
samba server excpet it says in lower case letter nsmx1 and it says Windowes 
NT workstation or Server, but this one is not lit up meaning that it is 
offline but the other one listed as BACKUP is lit up.  I dont understand why 
this is happening.  Seems like it is listing it as a BDC. right?  I believe 
it is sapposed to come up as workstation or server.  Somthing is obviously 
wrong.  Can someone please help.  Thanks alot for your time

-Radames

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] start of print file spool to samba

2002-04-24 Thread Floyd Shackelford

i found the following two files with the string print command:

./param/loadparm.c: {print command, P_STRING, P_LOCAL,
sDefault.szPrintcommand, NULL, NULL, FLAG_PRINT | FLAG_GLOBAL},

./printing/print_generic.c: run a given print command


as best as i can tell, it's NOT loadparm.c. so that leaves print_generic.c

it looks like this routine is the place? see my comments in the routine
body.

/***
*
run a given print command
a null terminated list of value/substitute pairs is provided
for local substitution strings

/
static int print_run_command(int snum,char *command, int *outfd, ...)
{

pstring syscmd;
char *p, *arg;
int ret;
va_list ap;
va_start(ap, outfd);

if (!command || !*command) return -1;

if (!VALID_SNUM(snum)) {
DEBUG(0,(Invalid snum %d for command %s\n, snum,
command));
return -1;
}

pstrcpy(syscmd, command);

while ((arg = va_arg(ap, char *))) {
char *value = va_arg(ap,char *);
pstring_sub(syscmd, arg, value);
}
va_end(ap);

p = PRINTERNAME(snum);

pstring_sub(syscmd, %p, p);

standard_sub_snum(snum,syscmd);

/* Convert script args to unix-codepage */
dos_to_unix(syscmd, True);

/*
fws:

this appears to be right before the command gets run. so i would add
something like:

if (strcmp(syscmd,print command) == 0)
{
  // do my thing
}
*/
ret = smbrun(syscmd,outfd);

DEBUG(3,(Running the command `%s' gave %d\n,syscmd,ret));

return ret;
}


does this look right to you?

now the problem is: i need the ip address of the client that submitted the
print job. how do i get that?


Regards,

Floyd Shackelford
4 Peaks Technology Group, Inc. http://www.4peakstech.com/
VOICE: 334.735.9428
FAX:   916.404.7125
EMAIL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

acta non verba



-Original Message-
From: Gerald Carter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 4:34 PM
To: Floyd Shackelford
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] start of print file spool to samba


On Wed, 3 Apr 2002, Floyd Shackelford wrote:

 The problem is that JobStart.sh gets called about 5 times with every
 job. Obviously, i have my code in the wrong place. Can anyone suggest a
 better place to put it?

Look for where we execute the print command.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.342 / Virus Database: 189 - Release Date: 3/14/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.342 / Virus Database: 189 - Release Date: 3/14/2002


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Joining a Windows XP machine to a Samba PDC

2002-04-24 Thread Lance Myatt



I am trying to join a Windows XP machine to a Samba 
PDC, but I keep receiving the error "no mapping between account names and 
security ID's was done". I am running the latest stable release (2.2.3a), 
and have followed the instructions in the Samba-PDC-HOWTO. I have created 
machine accounts manually, and have been able to join a Windows 2000 machine to 
the domain.

I have looked on USENET for a solution, but no one 
seems to have the definitive solution. Does anyone here know the cause of 
this problem and how I can fix it?

Thanks,

Lance


RE: [Samba] start of print file spool to samba

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Floyd Shackelford wrote:

 i found the following two files with the string print command:
 
 ./param/loadparm.c: {print command, P_STRING, P_LOCAL,
 sDefault.szPrintcommand, NULL, NULL, FLAG_PRINT | FLAG_GLOBAL},

loadparm.c is for declaring parameters and parsing smb.conf.

 ./printing/print_generic.c: run a given print command
 
 as best as i can tell, it's NOT loadparm.c. so that leaves
 print_generic.c

That's what I was thinking of.

 if (strcmp(syscmd,print command) == 0)
 {
   // do my thing
 }
 ret = smbrun(syscmd,outfd);
 
 DEBUG(3,(Running the command `%s' gave %d\n,syscmd,ret));


Why not just make your command a wrapper that executes the lpr command?
Something like

  #!/bin/sh
 
  my_command $1
  lpr -P$2 $3
  /bin/rm -f $3

and add a print command = some_script.sh %I %p %s
No code changes necessary.






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] TCP UDP port 445: microsoft-ds

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, werner maes wrote:

 Does Samba support connecting to a server using port 445 if you have
 Netbios over TCP/IP disabled on your client system? In Windows 2000/XP
 you have the possibility to disable Netbios over TCP/IP and use port 445
 to make an SMB connection.
 
 I've done some tests and apparently samba (version 2.2.3a) does not
 support connections on port 445.
 
 Am I correct? If so, will this be possible in future releases of samba?

You can start smbd on port 445 now.  See smbd(8).  You would then need 
another smbd instance on port 139 of course.  Entirely untested, but i 
think it works ok.







cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] alloc_mem with cups - printing

2002-04-24 Thread Gerald Carter

On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote:

 Hi,
 
 I am using samba (latest cvs, 2 min. ago) to provide printer functionality 
 to some windows-clients (w2k, nt4sp6a). Every seconds I get 5 of these 
 entries in my log:
 
 [2002/04/23 15:45:36, 0] 
 rpc_server/srv_spoolss_nt.c:_spoolss_enumprinterdataex(7762)
   talloc_realloc failed to allocate more memory for data!

What printer driver are you using?  I should probably make
this a mor informative error message.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Gerald Carter

On Tue, 23 Apr 2002, Damir Dezeljin wrote:

 Any news about implementation of offline file attributes (also per share
 offline attributes - some .conf parameter)? I looked into
 Samba-3.0alpha17 and Samba-2.2 but I didn't found anything.

Does csc policy in smb.conf(5) help?






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba 2.2.2 gives problem

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Hemant Kumar Choudhary wrote:

 Hello Samba team
 
   I have installed Samba 2.2.2 on HP-UX 10.20 machine. when I try to open one
 text file and read it through a C program, it is unable to get the file
 pointer and the log file stores the following message
 
 =
 [2002/04/24 12:24:34, 5] smbd/posix_acls.c:(432)
   unpack_nt_owners: validating owner_sids.
 [2002/04/24 12:24:34, 3] smbd/posix_acls.c:(442)
   unpack_nt_owners: unable to validate owner sid.
^^
Is the owner's uid in /etc/passwd?

 [2002/04/24 12:24:34, 2] smbd/close.c:(206)
   choudhhe closed file hemant.src (numopen=0)
 [2002/04/24 12:24:34, 5] smbd/files.c:(305)
   freed files structure 10772 (0 used)
 [2002/04/24 12:24:34, 3] smbd/error.c:(99)
   error string = No such file or directory
 [2002/04/24 12:24:34, 3] smbd/error.c:(111)
   error packet at smbd/nttrans.c(1405) cmd=160 (SMBnttrans) eclass=1 ecode=5
 =

Permission denied

#define ERRnoaccess 5 /* Access denied */








cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] %L Problem

2002-04-24 Thread Gerald Carter

On Sun, 21 Apr 2002, Jan Luehr wrote:

 Greetings
 
 well, ehm, Im trying to run two virtual servers (Samba 2.2.0a on Linux
 2.4)  on one physical. Because of that, I put theses lines intot my
 smb.conf
 
 netbios name = omikron
 netbios aliases = omega
 include = /etc/samba/include/%L

I just tested this against the latest SAMBA_2_2 cvs code and it works 
fine.  Please give it a test.







cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Shirish Kalele

Jerry,

csc policy is for client-side offline caching. I think Damir is looking
for Samba to support files offlined by storage managers like HSM. Both are
called offline files. One of the reasons the csc policy parameter was so
named.

Samba could set the 'offline' flag in the files attributes to indicate the
file is offlined. This makes applications like Explorer not open and read
files just to display the icons (which would force the manager to bring the
files online again). A special offlined icon is displayed instead.

As I understood it (and I could be wrong), indicating offline wasn't a
problem, the problem was finding out if a file was offline. I'm sure Damir
could code up a custom fix to make Samba do it (using ioctl's or whatever)
and distribute the fix as his patch. But I don't see how there could be a
generic fix. I remember there was talk of such a thing.

Cheers,
Shirish

- Original Message -
From: Gerald Carter [EMAIL PROTECTED]
To: Damir Dezeljin [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 6:38 PM
Subject: Re: [Samba] WinNT offline file attribute

 On Tue, 23 Apr 2002, Damir Dezeljin wrote:

  Any news about implementation of offline file attributes (also per share
  offline attributes - some .conf parameter)? I looked into
  Samba-3.0alpha17 and Samba-2.2 but I didn't found anything.

 Does csc policy in smb.conf(5) help?






 cheers, jerry
  -
  Hewlett-Packard http://www.hp.com
  SAMBA Team   http://www.samba.org
  --http://www.plainjoe.org
  Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
  --I never saved anything for the swim back. Ethan Hawk in Gattaca--



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] The Network path was not found - Please help

2002-04-24 Thread Joel Hammer

Well, I just added my problem machine to the to the DNS and it finds it.
The problem machine was an XP laptop, which was on a differnet subnet.  You
have to add the netbios name of the problem machine to the DNS.

I am not sure which machine can't find which machine in your setup. Samba
requires you to set some parameters in smb.conf to use DNS if a wins look
fails. Here is part of my named.local. I had to add the last line for ahamm002
because that was the netbios name of the XP machine even though when the XP
machine comes onto the network it gets assigned the name laptop by the DHCP server.


   jhammer.org.86400   IN  SOA hammer2 jlh.hammer2.jhammer.org (
   199802152 28800 7200 604800 86400 )l=2
   86400   IN  NS  hammer2l=2
   localhost   86400   IN  A   127.0.0.1  l=2
   jhammer6 86400  IN  A   192.168.0.6
   hammer7 86400   IN  A   192.168.0.7
   hammer  86400   IN  A   192.168.0.13
   subnet  86400   IN  A   192.168.1.2
   laptop  86400   IN  A   192.168.1.3
   hammer8 86400   IN  A   192.168.0.8
   oldelsa 86400   IN  A   192.168.0.5
   ellen   86400   IN  CNAME   hammer1l=2
   joel86400   IN  CNAME   hammer2l=2
   andrew  86400   IN  CNAME   hammer7l=2
   helen   86400   IN  CNAME   hammer3l=2
   elsa86400   IN  CNAME   subnet l=2
   andy86400   IN  CNAME   laptop l=2
   ahamm002 86440  IN  CNAME   laptop

Joel

On Thu, Apr 25, 2002 at 10:02:42AM +0800, Daniel Tan wrote:
 hi, i encounter the same problem on certain machines...i have DNS
enabled pointing it to my DNS server in win95 version b but it doesn't
seems to understand it...i need 2 manually add the hostname to bind
to the ip address in lmhosts...i hate that...is there any other way to
solve this issue? my DNS is serving all other workstations fine

 the one not working is on a 10.0 network and my internet network is 
192.168...routing works fine
 
 - Original Message - 
 From: Joel Hammer [EMAIL PROTECTED]
 To: Desmond Quek [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 12:41 AM
 Subject: Re: [Samba] The Network path was not found - Please help
 
 
  Does using lmhosts solve the problem? If so, you should be able to solve the
  problem with DNS.
  
  BTW, we (I) may be confounding ourselves (myself) with terminology.
  Cross net browsing is not quite the same thing as allowing clients to
  find your server on a different subnet (I think). The clients aren't
  really browsing in that case, just being pointed to a particular machine.
  
  Joel
  
  On Tue, Apr 23, 2002 at 09:18:36AM -0700, Desmond Quek wrote:
   Hi Joel,
   
   Thanks for your tip!  Unless I have to, I'd rather prefer not to use
   lmhosts. 
   
   I actually had wins server and some other global parameters
   recommended in BROWSING.txt defined in smb.conf.  But I'm still having
   this cross subnet browsing issue.  Not sure what am I missing...
   
   
  
  -- 
  To unsubscribe from this list go to the following URL and read the
  instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Shirish Kalele

John E. Malmberg wrote:

 Shirish Kalele wrote:

   As I understood it (and I could be wrong), indicating offline wasn't
   a problem, the problem was finding out if a file was offline. I'm
   sure Damir could code up a custom fix to make Samba do it (using
   ioctl's or whatever) and distribute the fix as his patch. But I
   don't see how there could be a generic fix. I remember there was
   talk of such a thing.

 The other part of the problem is identifying if the version of Windows
 that the client is running will honor the offline bit.

How would this help? Also, how are Windows servers that support offlining
different in this scenario?

Seems like setting the bit would alleviate the problem from some of the
clients, as opposed to all (which happens today).

- SK

 It it does not, then such a client would cause the entire shelved file
 system to be swapped in and out.




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[PATCH] Display of quoted parameters in Swat

2002-04-24 Thread dj

Hello,

There is a problem with Swat and it's handling of quoted strings. I've
tested this on the latest released version of Samba (2.2.3a).

Problem description:

When you put quoted strings into the smb.conf file they are not displayed
in swat. For example : valid users = @DOM+Domain Users in smb.conf will
result in @ in swat.

The reason for this is that the in the html form created by swat the value
of the form item (textfield) is also quoted using . So the result, for
example value=@DOM+Domain Users is wrongly parsed by the browsers.

Fix:

I replaced the  quotes in the swat code with ' quotes, the resulting html
now is value='@DOM+Domain Users' and is correctly parsed by the
browsers.
I've tested this on Linux with Mozilla 0.9.9, Netscape 4.7 and KDE4s 2.2
Konquerer. And on Windows 2K Prof with Mozilla 0.9.9 and IE (5.5 I think).
They all worked fine in displaying and editing quoted and non-quoted
parameter values.

Remarks:

When ' is used to quote parameters values this fix won't work ofcourse. So
either we add to the smb.conf documentation that  is the only legal
character to quote and test this. Or we add extra code to swat that parses
quote characters from smb.conf to html coded chars (quote;) and back, but
i haven't had a change to test if this would work.

As stated, the diff included is against the 2.2.3a sourcecode, and is for
the source/web/swat.c file. Or the fix could be done manually by changing
the  character to '.

Regards,
Tim


-- 
===
Tim Verhoeven
Linux  Open Source Specialist
GSM : 0496 / 693 453  + e-business solutions
Email : [EMAIL PROTECTED]   + consulting
URL : www.sin.khk.be/~dj/ + Server consolidation
===


185c185
   printf(input type=text size=40 name=\parm_%s\ value=\%s\,
---
   printf(input type=text size=40 name=\parm_%s\ value=\'%s\',



Re: /etc/fstab entry to allow users to mount samba shares

2002-04-24 Thread Urban Widmark

On Tue, 23 Apr 2002, Lars Heineken wrote:

 I'm sorry to tell, but I Had to drop the whole thing. When I mounted
 the volume as root, a single read-acces onto the mountes smb-share on
 the client-side locked his machine. The smb-server noticed nothing.
 The cd-rom is mounted via supermount. All windows-clients read the
 share without problems. - Suggestions ? Reasons ?

Does it make any difference if you don't use supermount?
Kernel version?

That the client locks is a bug, but it's not necessarily possible to make
it work well with a server that replaces the contents like a cd being
switched.


 A try with nfs showed other problems. With nfs I couldn't mount
 /mnt/cdrom. This worked after explicit mounting of /dev/cdrom,
 supermount disabled. I think the kernel prevents sharing of
 supermounted directories.

Reading about it, I get this feeling that supermount isn't supported.
Manually mounting and exporting as nfs sounds better, but that may cause
problems for the windows clients if they don't support it + the manual 
mounting needed.


There is a hack called volumagic that you could play with. It is in proof
of concept state, so be happy if it works:
http://ftp.linux.org.uk/pub/linux/alan/Software/System/Volumagic/

It's like supermount, except it uses some 2.4 kernel features to work
better. At least that's what the commercials say.


Using autofs on the server with samba may never umount the cd and then you
can't switch it. There is a --with-automount flag when compiling samba,
but I don't know what that does.

/Urban





Re: [PATCH] Display of quoted parameters in Swat

2002-04-24 Thread Steve Langasek

Hello Tim,

On Wed, Apr 24, 2002 at 10:34:00AM +0200, [EMAIL PROTECTED] wrote:

 There is a problem with Swat and it's handling of quoted strings. I've
 tested this on the latest released version of Samba (2.2.3a).

The patch you're actually looking for is attached.

Cheers,
Steve Langasek
postmodern programmer


--- samba-2.2.2.cvs20020120.orig/source/web/swat.c
+++ samba-2.2.2.cvs20020120/source/web/swat.c
@@ -49,6 +49,19 @@
 #define ENABLE_USER_FLAG enable_user_flag
 #define RHOST remote_host
 
+typedef struct html_conversion {
+   char src;
+   char *dest;
+} html_conversion;
+
+static const html_conversion entities[] = {
+   { '', quot; },
+   { '', amp;  },
+   { '', lt;   },
+   { '', gt;   },
+   { '\0', NULL },
+};
+
 /* we need these because we link to locking*.o */
  void become_root(void) {}
  void unbecome_root(void) {}
@@ -77,6 +90,51 @@
return newstring;
 }
 
+static char *htmlentities(char *str)
+{
+   int i,j, destlen = 0;
+   int length = strlen(str);
+   /* Feel free to use a pstring if appropriate -- I haven't 
+  checked if it's guaranteed to be long enough, and suspect it 
+  isn't. -SRL */
+   char *dststr = NULL;
+   char *p;
+
+   for (i = 0; i  length; i++) {
+   for (j = 0; entities[j].src; j++) {
+   if (str[i] == entities[j].src) {
+   destlen += strlen(entities[j].dest);
+   break;
+   }
+   }
+   if (!entities[j].src) {
+   destlen++;
+   }
+   }
+   if (length == destlen) {
+   return(strdup(str));
+   }
+   p = dststr = malloc(destlen + 1);
+   if (!dststr) {
+   return(NULL);
+   }
+   dststr[destlen] = '\0';
+   for (i = 0; i  length; i++) {
+   for (j = 0; entities[j].src; j++) {
+   if (str[i] == entities[j].src) {
+   strncpy(p, entities[j].dest,
+   strlen(entities[j].dest));
+   p += strlen(entities[j].dest);
+   break;
+   }
+   }
+   if (!entities[j].src) {
+   *p++ = str[i];
+   }
+   }
+   return(dststr);
+}
+
 static char *stripspace(char *str)
 {
 static char newstring[1024];
@@ -182,8 +240,12 @@
 
case P_STRING:
case P_USTRING:
-   printf(input type=text size=40 name=\parm_%s\ value=\%s\,
-  make_parm_name(parm-label), *(char **)ptr);
+   str = htmlentities(*(char **)ptr);
+   printf(input type=\text\ size=\40\ name=\parm_%s\ 
+value=\%s\,
+  make_parm_name(parm-label), str);
+   if (str != NULL) {
+   free(str);
+   }
printf(input type=button value=\Set Default\ 
onClick=\swatform.parm_%s.value=\'%s\'\,
make_parm_name(parm-label),fix_backslash((char 
*)(parm-def.svalue)));
break;



msg00367/pgp0.pgp
Description: PGP signature


(no subject)

2002-04-24 Thread phani krishna somayajula

Hi,
i had configured my linux box in office as dial in server so 
that
i can dial up from my home pc.
i am able to log onto the remote machine and do telnet or ftp.
my problem is i want to access the systems present in the 
network
with the linux server from my home.how to do that.i had 
configured
my home pc as the same workgroup as the samba server but unable 
to
find the systems in my home pc network neighbour hood.kindly 
help
me in solving this problem.
   phani

_
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs





Secondary WINS Enhancement

2002-04-24 Thread Eric Roseme

Did the secondary WINS server config enhancement go into 3.0?
The original was submitted by Dave Olker of HP about 2 years
ago, then Chris Hertel picked it up and was re-designing it.
What is the current status?

Note that this is *not* redundant WINS or WINS sync.  This is
to be able to configure a secondary MS WINS server in smb.conf.

Thanks,

Eric Roseme
Hewlett-Packard




(no subject)

2002-04-24 Thread Å©·¹ÀÌÁöÀ×±Û¸®½¬









Re: possible bug?

2002-04-24 Thread Gerald Carter

On Tue, 23 Apr 2002, Donald Wade Jr. wrote:

 Samba 2.2.1a on mandrake 8.1  configuration with swat 
 Shares that are initially created through swat do not in the 
 file system.
 
 You have to go in and create them manually for example 
 with Konqueror.  Shouldn't the shares appear within the file 
 when they are created within swat?
 
 Any accuracy to this other than my own trials?

No. Swat only creates the configuration file.  You have to create
any necessary directories speficied in the config file.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





RE: Secondary WINS Enhancement

2002-04-24 Thread MCCALL,DON (HP-USA,ex1)

Hi Eric,
Yep, it's in there.  you can now have a wins server= ipaddr1 ipaddr2 ipaddr3
...
and the code will build a wins_svr_list that will be used to resolve names.
Hope this helps,
Don

-Original Message-
From: Eric Roseme [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 11:32 AM
To: Samba Technical
Subject: Secondary WINS Enhancement


Did the secondary WINS server config enhancement go into 3.0?
The original was submitted by Dave Olker of HP about 2 years
ago, then Chris Hertel picked it up and was re-designing it.
What is the current status?

Note that this is *not* redundant WINS or WINS sync.  This is
to be able to configure a secondary MS WINS server in smb.conf.

Thanks,

Eric Roseme
Hewlett-Packard




not able to get Samba 3.0alpha17 work with Win2k PDC using kerberos

2002-04-24 Thread P Ranjit Kumar

Hi

I am trying to get Samba 3.0 alpha 17 on my HP-UX box to talk to a Win2k PDC
using Kerberos.

I have compiled Samba with all necessary defines in config.h. My HP-UX
machine can work with the Win2K Kerberos Server. I can get the TGT by doing
a kinit. I verified it with klist.

net join ads command works fine. The problem is when I try to access a
share from Win2k machine, it always chooses NTLM_SSP.

Can anybody help me to make Win2K choose Kerberos for authentication?

Any pointers? Am I missing something here?

- Ranjit
HP CIFS Team.





Can we remove the postscript parameter in 3.0?

2002-04-24 Thread Gerald Carter

Any objections?  Does anyone use this?
It's a hacky solution which seems to be better 
accomplished with good print filters.





cheers, jerry






Re: Can we remove the postscript parameter in 3.0?

2002-04-24 Thread Rafal Szczesniak

On Wed, 24 Apr 2002, Gerald Carter wrote:

 Any objections?  Does anyone use this?

Not me. I agree.

 It's a hacky solution which seems to be better 
 accomplished with good print filters.

Yes, I also think Samba should not alter (in any way) the data to be
printed.


cheers,
++
|Rafal 'Mimir' Szczesniak [EMAIL PROTECTED]   |
|*BSD, GNU/Linux and Samba  /
|__/





Re: Can we remove the postscript parameter in 3.0?

2002-04-24 Thread Suhasini Rao

Please unsubscribe






Re: Can we remove the postscript parameter in 3.0?

2002-04-24 Thread Suhasini Rao

Please unsubscribe






Re: Can we remove the postscript parameter in 3.0?

2002-04-24 Thread Richard Sharpe

On Wed, 24 Apr 2002, Suhasini Rao wrote:

 Please unsubscribe

If you wish to leave the list, then you may do so using the instructions 
at the end of each mail message.

However, asking us to all unsubscribe is a bit rich!

Regards
-
Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED]





Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Gerald Carter

On Tue, 23 Apr 2002, Damir Dezeljin wrote:

 Any news about implementation of offline file attributes (also per share
 offline attributes - some .conf parameter)? I looked into
 Samba-3.0alpha17 and Samba-2.2 but I didn't found anything.

Does csc policy in smb.conf(5) help?






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Shirish Kalele

Jerry,

csc policy is for client-side offline caching. I think Damir is looking
for Samba to support files offlined by storage managers like HSM. Both are
called offline files. One of the reasons the csc policy parameter was so
named.

Samba could set the 'offline' flag in the files attributes to indicate the
file is offlined. This makes applications like Explorer not open and read
files just to display the icons (which would force the manager to bring the
files online again). A special offlined icon is displayed instead.

As I understood it (and I could be wrong), indicating offline wasn't a
problem, the problem was finding out if a file was offline. I'm sure Damir
could code up a custom fix to make Samba do it (using ioctl's or whatever)
and distribute the fix as his patch. But I don't see how there could be a
generic fix. I remember there was talk of such a thing.

Cheers,
Shirish

- Original Message -
From: Gerald Carter [EMAIL PROTECTED]
To: Damir Dezeljin [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 6:38 PM
Subject: Re: [Samba] WinNT offline file attribute

 On Tue, 23 Apr 2002, Damir Dezeljin wrote:

  Any news about implementation of offline file attributes (also per share
  offline attributes - some .conf parameter)? I looked into
  Samba-3.0alpha17 and Samba-2.2 but I didn't found anything.

 Does csc policy in smb.conf(5) help?






 cheers, jerry
  -
  Hewlett-Packard http://www.hp.com
  SAMBA Team   http://www.samba.org
  --http://www.plainjoe.org
  Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
  --I never saved anything for the swim back. Ethan Hawk in Gattaca--






Re: [Samba] WinNT offline file attribute

2002-04-24 Thread John E. Malmberg

Shirish Kalele wrote:

snip
 
  As I understood it (and I could be wrong), indicating offline wasn't
  a problem, the problem was finding out if a file was offline. I'm
  sure Damir could code up a custom fix to make Samba do it (using
  ioctl's or whatever) and distribute the fix as his patch. But I
  don't see how there could be a generic fix. I remember there was
  talk of such a thing.

The other part of the problem is identifying if the version of Windows
that the client is running will honor the offline bit.

It it does not, then such a client would cause the entire shelved file 
system to be swapped in and out.

-John
[EMAIL PROTECTED]
Personal Opinion Only





Re: [Samba] WinNT offline file attribute

2002-04-24 Thread Shirish Kalele

John E. Malmberg wrote:

 Shirish Kalele wrote:

   As I understood it (and I could be wrong), indicating offline wasn't
   a problem, the problem was finding out if a file was offline. I'm
   sure Damir could code up a custom fix to make Samba do it (using
   ioctl's or whatever) and distribute the fix as his patch. But I
   don't see how there could be a generic fix. I remember there was
   talk of such a thing.

 The other part of the problem is identifying if the version of Windows
 that the client is running will honor the offline bit.

How would this help? Also, how are Windows servers that support offlining
different in this scenario?

Seems like setting the bit would alleviate the problem from some of the
clients, as opposed to all (which happens today).

- SK

 It it does not, then such a client would cause the entire shelved file
 system to be swapped in and out.







Re: [Samba] WinNT offline file attribute

2002-04-24 Thread John E. Malmberg

Shirish Kalele wrote:
 John E. Malmberg wrote:

The other part of the problem is identifying if the version of Windows
that the client is running will honor the offline bit.

 
 How would this help? Also, how are Windows servers that support offlining
 different in this scenario?
 
 Seems like setting the bit would alleviate the problem from some of the
 clients, as opposed to all (which happens today).

If the client does not support the offline bit, then the SAMBA file 
server should not serve shelved files to it.

Also has anyone verified how a Windows 2000 system (The first to admit 
support for the offline bit) uses this information?

It might be placing expectations on the fileserver that SAMBA does not 
yet know how to meet.

-John
[EMAIL PROTECTED]
Personal Opinion Only