[Samba] need help with samba4 sharing files with mac osx 10.8.3

2013-09-16 Thread Athan DE JONG
Hi


here is a little up of my last message :



Having an issue on my new samba4 AD

I was able to set it up, joint windows clients and share folder.
Also as i work in a mixed environmment i have some mac osx clients, that i was 
able to koint on domaine.

The problem is that i can not write to my samba share from mac clients.

the mac seems to understand the file permissions as i can view/edit them from 
file info.
i simply can not write to any smb share.

is there a work around on samba 4 special for mac clients ?

any help is very apréciate :) 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] need help with samba4 sharing files with mac osx 10.8.3

2013-09-14 Thread Athan DE JONG
Hi

Having an issue on my new samba4 AD

I was able to set it up, joint windows clients and share folder.
Also as i work in a mixed environmment i have some mac osx clients, that i was 
able to koint on domaine.

The problem is that i can not write to my samba share from mac clients.

the mac seems to understand the file permissions as i can view/edit them from 
file info.
i simply can not write to any smb share.

is there a work around on samba 4 special for mac clients ?

any help is very apréciate :) 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with file corruption issue

2013-06-04 Thread Volker Lendecke
On Mon, Jun 03, 2013 at 06:41:33PM -0400, David Coppit wrote:
  So you are creating files on the server side, access it from
  the client side, remove it on the server side again and
  create a new file server side under the same name?
 
 No, This is much more serious. Please see the strace.txt log. Let me
 step you through the last bit:
 
 1) Here, I create a file SdLajo6RXt on the share. I read it from the
 raw disk location and also read it from the mounted location, and it
 matches.
 
 Same!
 /grid/samba_stress_test/SdLajo6RXt :
 0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661
 /root/grid/samba_stress_test/SdLajo6RXt:
 0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661
 
 2) Next I delete it
 
 unlink(/grid/samba_stress_test/SdLajo6RXt) = 0
 
 3) Next I create a new file **with a different name**, write to it
 directly on disk, and read it from the samba mount:
 
 Different!
 /grid/samba_stress_test/85fsYXTNhJ :
 0.9504576548397450.9504576548397450.9504576548397450.9504576548397450.950457654839745
 /root/grid/samba_stress_test/85fsYXTNhJ:
 0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661
 
 **Note that the NEW file has incorrect content. It matches the OLD,
 DELETED file.** I double-checked the trace, and the filenames in the
 trace are all unique.

Could it be that the inode numbers are the same for the
deleted and the newly created file? Possibly the caching on
the Linux client depends on them.

 I mounted the share using forcedirectio and couldn't get it to repro.
 
 I would think that the file name is a part of the key used for
 caching! Is there some way to get visibility into the caching, so see
 why it's apparently returning invalid data for a brand new file that
 it should have *no* data for?

If it's the same inode number and caching depends on that,
this could be possible I guess. One factor could also be
that under Unix due to hard links the filename:file
relationship is not 1:1, so it is entirely possible for
files with different names to have the same content.

You can check inode numbers with ls -li.

  Does the same also happen if you do the file
  creation/deletion via Samba as well?
 
 It does not.
 
 For fun, I self-mapped the share twice and wrote to one mapped share
 while reading from the other, to simulate 1 client writing and another
 reading. I was able to repro the issue.

Same problem possibly. If your file system gives you the
same inode number, this might fool the linux client.

 I also went ahead and implemented a test where I used winexe to fetch
 the file from a Windows machine that had the samba share mounted. I
 was *not* able to repro it. So it's possible that there's something
 wrong in the Linux cifs module, or it's a race condition and the
 latencies of doing the remote command to type
 C:\path\to\mount\samba_stress_test\random_file mean I can't repro it.
 (It's possible that the corrupt files we saw on Windows before were
 due to something else.)

Good.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with file corruption issue

2013-06-03 Thread Volker Lendecke
On Fri, May 31, 2013 at 12:51:40PM -0400, David Coppit wrote:
 Hey Volker, thanks for the reply.
 
  Can you explain for really stupid people what this does and where the 
  problem is?
 
 Here's what the perl code is doing:
 
 1) In a loop...
 1.1) Write a file to the local disk, using a random filename and 5
 random floats followed by a newline as the content.
 1.2) chown the file so that the samba mount user can read it
 1.3) Read that file from a cifs mount of that very same local disk
 location, hosted by samba
 1.4) Compare the written content versus the read content, exiting if
 they are different.
 1.5) Delete the temp file

So you are creating files on the server side, access it from
the client side, remove it on the server side again and
create a new file server side under the same name? I would
really think this is a caching issue, the client does not
notice the file changed. The wireshark trace you sent does
not contain any file related operations, so this time the
client did not even ask the server to close and open the
file again.

Does the same also happen if you do the file
creation/deletion via Samba as well?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with file corruption issue

2013-06-03 Thread David Coppit
 So you are creating files on the server side, access it from
 the client side, remove it on the server side again and
 create a new file server side under the same name?

No, This is much more serious. Please see the strace.txt log. Let me
step you through the last bit:

1) Here, I create a file SdLajo6RXt on the share. I read it from the
raw disk location and also read it from the mounted location, and it
matches.

Same!
/grid/samba_stress_test/SdLajo6RXt :
0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661
/root/grid/samba_stress_test/SdLajo6RXt:
0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661

2) Next I delete it

unlink(/grid/samba_stress_test/SdLajo6RXt) = 0

3) Next I create a new file **with a different name**, write to it
directly on disk, and read it from the samba mount:

Different!
/grid/samba_stress_test/85fsYXTNhJ :
0.9504576548397450.9504576548397450.9504576548397450.9504576548397450.950457654839745
/root/grid/samba_stress_test/85fsYXTNhJ:
0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661

**Note that the NEW file has incorrect content. It matches the OLD,
DELETED file.** I double-checked the trace, and the filenames in the
trace are all unique.

I mounted the share using forcedirectio and couldn't get it to repro.

I would think that the file name is a part of the key used for
caching! Is there some way to get visibility into the caching, so see
why it's apparently returning invalid data for a brand new file that
it should have *no* data for?

 Does the same also happen if you do the file
 creation/deletion via Samba as well?

It does not.

For fun, I self-mapped the share twice and wrote to one mapped share
while reading from the other, to simulate 1 client writing and another
reading. I was able to repro the issue.

I also went ahead and implemented a test where I used winexe to fetch
the file from a Windows machine that had the samba share mounted. I
was *not* able to repro it. So it's possible that there's something
wrong in the Linux cifs module, or it's a race condition and the
latencies of doing the remote command to type
C:\path\to\mount\samba_stress_test\random_file mean I can't repro it.
(It's possible that the corrupt files we saw on Windows before were
due to something else.)


On Mon, Jun 3, 2013 at 7:56 AM, Volker Lendecke
volker.lende...@sernet.de wrote:
 On Fri, May 31, 2013 at 12:51:40PM -0400, David Coppit wrote:
 Hey Volker, thanks for the reply.

  Can you explain for really stupid people what this does and where the 
  problem is?

 Here's what the perl code is doing:

 1) In a loop...
 1.1) Write a file to the local disk, using a random filename and 5
 random floats followed by a newline as the content.
 1.2) chown the file so that the samba mount user can read it
 1.3) Read that file from a cifs mount of that very same local disk
 location, hosted by samba
 1.4) Compare the written content versus the read content, exiting if
 they are different.
 1.5) Delete the temp file

 So you are creating files on the server side, access it from
 the client side, remove it on the server side again and
 create a new file server side under the same name? I would
 really think this is a caching issue, the client does not
 notice the file changed. The wireshark trace you sent does
 not contain any file related operations, so this time the
 client did not even ask the server to close and open the
 file again.

 Does the same also happen if you do the file
 creation/deletion via Samba as well?

 Volker

 --
 SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
 phone: +49-551-37-0, fax: +49-551-37-9
 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
 http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with file corruption issue

2013-06-02 Thread David Coppit
Hey Volker, thanks for the reply.

 Can you explain for really stupid people what this does and where the problem 
 is?

Here's what the perl code is doing:

1) In a loop...
1.1) Write a file to the local disk, using a random filename and 5
random floats followed by a newline as the content.
1.2) chown the file so that the samba mount user can read it
1.3) Read that file from a cifs mount of that very same local disk
location, hosted by samba
1.4) Compare the written content versus the read content, exiting if
they are different.
1.5) Delete the temp file

What I see is that most of the time the samba-provided version of the
file is identical, but sometimes it's not. When it's not, the content
appears to be the contents of the previously read (and now deleted!)
temp file. In some failure cases it's a truncated version of the
previously read file. It's definitely not a perl issue since after the
script croaks, I can cat the file on both the local disk and the
samba share and the results are different:

# cat /grid/samba_stress_test/85fsYXTNhJ
0.9504576548397450.9504576548397450.9504576548397450.9504576548397450.950457654839745

# cat /root/grid/samba_stress_test/85fsYXTNhJ
0.5406506065286610.5406506065286610.5406506065286610.5406506065286610.540650606528661

 Also, I am a little confused about the scenario

In this test, I did a self-mount to rule out Windows. If you want I
can try to write this test using Windows instead of the cifs module.
But I'm pretty sure it's not the cifs module, since in our real
system, we're obviously not doing a self-mount like this. Instead
we're mounting the CentOs samba share on a Windows machine. In this
case what we're seeing is a failure to unzip a file because it's
truncated -- same symptom. What perhaps we didn't notice at the time
is that maybe the truncated content that we do get is also wrong --
didn't check this.

 It might help if you could send us an strace of that script producing
 the error together with a network trace.

I did the following:

# tshark -p -w wireshark.out port 445 or port 139
# strace perl samba_stress_test.pl  strace.txt 21

Let me know if that's wrong. I'll attach the gzip'd files. Skip past
all the successes to see the failure at the very end.

On Fri, May 31, 2013 at 2:32 AM, Volker Lendecke
volker.lende...@sernet.de wrote:
 On Thu, May 30, 2013 at 11:20:24AM -0400, David Coppit wrote:
 Hi all,

 I've run into an issue and am wondering if folks can give some advice
 on how to resolve it.

 Basically Samba appears to be getting confused, providing some other
 file's contents.

 Initially I saw this on a Windows host that has mounted a share from
 CentOs, but I've been able to repro it on the CentOs host using a
 self-mount.

 Sorry, I don't know perl enough to actually see the sequence
 of events exactly enough. Can you explain for really stupid
 people what this does and where the problem is? It might
 help if you could send us an strace of that script producing
 the error together with a network trace.

 Also, I am a little confused about the scenario: You are
 saying that you saw this on a Windows host that has mounted
 a CentOs share? This means that the cifs kernel module is
 not involved at all here?

 With best regards,

 Volker Lendecke

 --
 SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
 phone: +49-551-37-0, fax: +49-551-37-9
 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
 http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Need help with file corruption issue

2013-05-31 Thread Volker Lendecke
On Thu, May 30, 2013 at 11:20:24AM -0400, David Coppit wrote:
 Hi all,
 
 I've run into an issue and am wondering if folks can give some advice
 on how to resolve it.
 
 Basically Samba appears to be getting confused, providing some other
 file's contents.
 
 Initially I saw this on a Windows host that has mounted a share from
 CentOs, but I've been able to repro it on the CentOs host using a
 self-mount.

Sorry, I don't know perl enough to actually see the sequence
of events exactly enough. Can you explain for really stupid
people what this does and where the problem is? It might
help if you could send us an strace of that script producing
the error together with a network trace.

Also, I am a little confused about the scenario: You are
saying that you saw this on a Windows host that has mounted
a CentOs share? This means that the cifs kernel module is
not involved at all here?

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Need help with file corruption issue

2013-05-30 Thread David Coppit
Hi all,

I've run into an issue and am wondering if folks can give some advice
on how to resolve it.

Basically Samba appears to be getting confused, providing some other
file's contents.

Initially I saw this on a Windows host that has mounted a share from
CentOs, but I've been able to repro it on the CentOs host using a
self-mount.

Here's my test script:

#!/usr/bin/perl

use File::Temp qw( tempfile );
use strict;

$| = 1;

my $local_grid_share = '/grid/samba_stress_test';
my $mounted_grid_share = '/root/grid/samba_stress_test';

while (1) {
  my $content1 = rand() x 5 . \n;

  my ($fh, $filepath) = tempfile( DIR = $local_grid_share );
  print $fh $content1;
  close $fh;

  system(chown xen $filepath);

  my ($filename) = $filepath =~ /.*\/(.*)/;

  print \n$filename... ;

  if (-f $mounted_grid_share/$filename) {
open IN, $mounted_grid_share/$filename;
local $/ = undef;
my $content2 = IN;
close IN;

if ($content1 eq $content2) {
  print Same!\n$filepath :
$content1$mounted_grid_share/$filename: $content2;
} else {
  print Different!\n$filepath :
$content1$mounted_grid_share/$filename: $content2;
  exit;
}
  } else {
print File is missing!\n;
exit;
  }

  unlink $filepath;
}

Here's the mount command and an illustration of the problem:

# ifconfig | grep inet.addr | grep -v 127.0.0.1
  inet addr:10.0.0.11  Bcast:10.0.0.255  Mask:255.255.255.0

# mount -t cifs -ousername=the_user,password=the_password
//10.0.0.11/grid /root/grid

# mkdir /grid/samba_stress_test; chown xen /grid/samba_stress_test

# perl samba_stress_test.pl
snip a lot of successful comparisons
udCVYFNkc5... Same!
/grid/samba_stress_test/udCVYFNkc5 :
0.07392498237819470.07392498237819470.07392498237819470.07392498237819470.0739249823781947
/root/grid/samba_stress_test/udCVYFNkc5:
0.07392498237819470.07392498237819470.07392498237819470.07392498237819470.0739249823781947

uETPmRzm99... Different!
/grid/samba_stress_test/uETPmRzm99 :
0.9774832438332160.9774832438332160.9774832438332160.9774832438332160.977483243833216
/root/grid/samba_stress_test/uETPmRzm99:
0.07392498237819470.07392498237819470.07392498237819470.07392498237819470.073924982378#

So the new file supposedly has the content of the previous *deleted*
file. Note that sometimes the content is truncated. (See above -- the
# for the next prompt is at the end of the previous line because
there's no newline).

If I re-share the mount that's on the Windows machine, and mount it in
this Linux machine, then it consistently repros on the second
iteration. With a little effort I can get the file from the Windows
machine and compare it, if that's helpful.

Here is some information about my setup:

# cat /etc/centos-release
CentOS release 6.3 (Final)

# yum list | grep '^samba'
samba.x86_64  3.5.10-125.el6   @base
samba-client.x86_64   3.5.10-125.el6   @base
samba-common.x86_64   3.5.10-125.el6   @base
samba-winbind-clients.x86_64  3.5.10-125.el6   @base
samba4-libs.x86_644.0.0-23.alpha11.el6 @base/$releasever
samba.x86_64  3.6.9-151.el6base
samba-client.x86_64   3.6.9-151.el6base
samba-common.i686 3.6.9-151.el6base
samba-common.x86_64   3.6.9-151.el6base
samba-doc.x86_64  3.6.9-151.el6base
samba-domainjoin-gui.x86_64   3.6.9-151.el6base
samba-swat.x86_64 3.6.9-151.el6base
samba-winbind.x86_64  3.6.9-151.el6base
samba-winbind-clients.i6863.6.9-151.el6base
samba-winbind-clients.x86_64  3.6.9-151.el6base
samba-winbind-devel.i686  3.6.9-151.el6base
samba-winbind-devel.x86_643.6.9-151.el6base
samba-winbind-krb5-locator.x86_64 3.6.9-151.el6base
samba4.x86_64 4.0.0-55.el6.rc4 base
samba4-client.x86_64  4.0.0-55.el6.rc4 base
samba4-common.x86_64  4.0.0-55.el6.rc4 base
samba4-dc.x86_64  4.0.0-55.el6.rc4 base
samba4-dc-libs.x86_64 4.0.0-55.el6.rc4 base
samba4-devel.i686 4.0.0-23.alpha11.el6 base
samba4-devel.x86_64   4.0.0-55.el6.rc4 base
samba4-libs.i686  4.0.0-23.alpha11.el6 base
samba4-libs.x86_644.0.0-55.el6.rc4 base
samba4-pidl.x86_644.0.0-55.el6.rc4 base
samba4-python.x86_64  4.0.0-55.el6.rc4 base
samba4-swat.x86_644.0.0-55.el6.rc4 base
samba4-test.x86_644.0.0-55.el6.rc4 base
samba4-winbind.x86_64 

Re: [Samba] Need help with share permissions

2012-10-06 Thread Andreas Oster
Am 05.10.2012 21:11, schrieb Jeremy Allison:
 Hmmm. The :
 
 force directory mode = 0770
 directory mask = 0770
 
 setting should do the trick. Are you also storing
 the DOS attributes in EA's ? You probably also
 need that to prevent UNIX permission modification.
 
 Try adding:
 
store dos attributes = yes
map readonly = no
map system = no
map hidden = no
map archive = no
 
 and re-test creating a new directory.
 
 Jeremy.
 -- To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/options/samba
Hello Jeremy,

thank you for your reply. Unfortunately these settings did not help.
Directories still will have 0750 permission and now this does not change
to 0770 when doing a renaming. Files will now be created with 0640
instead of 0660.

Here the output of testparm :

[global]
workgroup = MYDOM
realm = MYDOM.DE
server string = %h server (Samba, Ubuntu)
security = ADS
map to guest = Bad User
obey pam restrictions = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
max protocol = SMB2
printcap name = cups
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
template homedir = /shares/homes/%U
template shell = /bin/sh
winbind cache time = 10
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
winbind refresh tickets = Yes
winbind offline logon = Yes
idmap config *:range = 1-2
idmap config MYDOM:range = 1-2
idmap config MYDOM:backend = rid
idmap config * : backend = tdb
use client driver = Yes
map archive = No
map readonly = no
store dos attributes = Yes

[homes]
comment = Home Directories
valid users = %S
write list = %S, +MYDOM\Domain Admins
force group = MYDOM\Domain Users
create mask = 0770
directory mask = 0770
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[Pictures]
comment = Pictures auf TICKSMB3
path = /shares/pictures
valid users = +MYDOM\Pictures, +MYDOM\Domain Admins
force group = MYDOM\Pictures
read only = No
create mask = 0660
force create mode = 0660
directory mask = 0770
force directory mode = 0770

Thank you for your kind help.

best regards

Andreas

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


[Samba] Need help with share permissions

2012-10-05 Thread Andreas Oster
Hello all,

I am struggling to get share permissions to work properly.
I am currently using samba 3.6.3 with AD integration.

I want to force the following permissions:

- created/renamed/copied directories: 0770
- created/renamed/copied files: 0660
- file permissions should not be editable by Windows users.

I have tried a lot of different combinations of parameters but failed to
get the desired permissions. Most of the time I end up with 0660 for
newly created files and 0750 for newly created directories. When I
rename a just created directory permission changes to 0770.

At the moment I have this in my test share:


force group = MYDOM\test
force create mode = 0660
create mask = 0660
force directory mode = 0770
directory mask = 0770


Thank you for your kind help

best regards

Andreas

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


Re: [Samba] Need help with share permissions

2012-10-05 Thread Jeremy Allison
On Fri, Oct 05, 2012 at 03:42:24PM +0200, Andreas Oster wrote:
 Hello all,
 
 I am struggling to get share permissions to work properly.
 I am currently using samba 3.6.3 with AD integration.
 
 I want to force the following permissions:
 
 - created/renamed/copied directories: 0770
 - created/renamed/copied files: 0660
 - file permissions should not be editable by Windows users.
 
 I have tried a lot of different combinations of parameters but failed to
 get the desired permissions. Most of the time I end up with 0660 for
 newly created files and 0750 for newly created directories. When I
 rename a just created directory permission changes to 0770.
 
 At the moment I have this in my test share:
 
 
 force group = MYDOM\test
 force create mode = 0660
 create mask = 0660
 force directory mode = 0770
 directory mask = 0770

Hmmm. The :

force directory mode = 0770
directory mask = 0770

setting should do the trick. Are you also storing
the DOS attributes in EA's ? You probably also
need that to prevent UNIX permission modification.

Try adding:

   store dos attributes = yes
   map readonly = no
   map system = no
   map hidden = no
   map archive = no

and re-test creating a new directory.

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


Re: [Samba] Need help with redhat build to --prefix

2011-10-25 Thread Michael Wood
On 24 October 2011 17:52, Joy Veronneau j...@cornell.edu wrote:
 That was a big help, now I can run ntlm_auth and winbindd and they find
 their libraries.

 However, now that I can run ntlm_auth and winbindd with the correct
 libraries, it seems that I need to rebuild my samba config to request ADS
 support. I am using this configure command:

 ./configure --prefix=/app/radius/samba/
 --with-configdir=/app/radius/samba/conf
 --with-privatedir=/app/radius/samba/private --disable-cups
 --with-wbclient=/app/radius/samba/lib --with-ads --with-ldap

 but it is unable to find ldap.h.

 It looks like openldap is installed on this machine but I am not sure
 ldap.h is around anywhere - it's not in /usr/include or /usr/local/include

Make sure you have the openldap development package(s) installed.  On
Debian/Ubuntu the package is called libldap2-dev.  I think on Red Hat
it's called openldap-devel.

 - I did a find and it's in source4...
 sudo find . -name ldap.h -print

 ./app/radius/samba-3.5.8/source4/libcli/ldap/ldap.h

 but I am building source3. Should I be building source4? or what is the
 best way to proceed...?

Installing openldap-devel should do the trick.

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with redhat build to --prefix

2011-10-25 Thread Andrew Bartlett
On Fri, 2011-10-21 at 14:56 +, Joy Veronneau wrote:
 Hi all,
 
 I need to build samba 3.6.1 on a RedHat redhat-release-5Server-5.6.0.3 linux 
 machine but cannot install it to the default directories because the machine 
 is centrally managed...
 
 I am using the following configure command:
 ./configure --prefix=/app/radius/samba/ 
 --with-configdir=/app/radius/samba/conf 
 --with-privatedir=/app/radius/samba/private --disable-cups
 
 and I am unable to run winbindd – there are unfound libraries:
 
 ldd winbindd
 linux-vdso.so.1 =  (0x7fff529b3000)
 libresolv.so.2 = /lib64/libresolv.so.2 (0x2b01188e2000)
 libnsl.so.1 = /lib64/libnsl.so.1 (0x2b0118af7000)
 libdl.so.2 = /lib64/libdl.so.2 (0x2b0118d0f000)
 librt.so.1 = /lib64/librt.so.1 (0x2b0118f14000)
 libpopt.so.0 = /usr/lib64/libpopt.so.0 (0x2b011911d000)
 libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2b0119325000)
 libtalloc.so.2 = not found
 libtdb.so.1 = not found
 libwbclient.so.0 = not found
 libz.so.1 = /usr/lib64/libz.so.1 (0x2b011955f000)
 libc.so.6 = /lib64/libc.so.6 (0x2b0119773000)
 /lib64/ld-linux-x86-64.so.2 (0x2b01186c5000)
 libpthread.so.0 = /lib64/libpthread.so.0 (0x2b0119acb000)
 
 Can someone help me with the correct configure command to use? I can see that 
 the missing libraries are in /app/radius/samba/lib…

The easiest way to solve your issue would be to install Samba4.  Samba4
alphas now include all of Samba, including ntlm_auth (named ntlm_auth3
for now) and winbindd, but critcially, by using the ./configure and make
in the top level (not under source3) you will build with our new build
system.  It handles things like -rpath automatically, so you don't need
LD_LIBRARY_PATH tricks.

(You will still need openldap-devel as recommended). 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org

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

Re: [Samba] Need help with redhat build to --prefix

2011-10-24 Thread Michael Wood
Hi

On 21 October 2011 20:23, Joy Veronneau j...@cornell.edu wrote:
 Hi,

 Thanks, I think that setting LD_LIBRARY_PATH would fix the problem on the
 command line, but here's a little more information about what I want to
 do.

 I am installing winbindd on a radius server running Radiator. I will start
 /app/radius/samba/bin/winbindd whenever the server reboots. Then radiator
 will be using /app/radius/samba/sbin/ntlm_auth when people need to
 authenticate. So I have to set it up so every time ntlm_auth runs, it can
 find the libraries... I was hoping there would be a way to build it so
 that would work but I am pretty rusty on my C programming/building
 skills...

Well, you could do this in various ways.  e.g. rename ntlm_auth to
ntlm_auth.real and then create a script called ntlm_auth like this:

#!/bin/sh
export LD_LIBRARY_PATH=/app/radius/samba/lib
exec /app/radius/samba/sbin/ntlm_auth.real $@

 Or maybe there is a way to specify the library location in the samba
 config file?

I don't believe so.

It seems what you need is to pass the -rpath option to the linker
while building Samba.  This will explicitly tell the dynamic linker
where to find the libraries when running the binaries.

Try configuring Samba like this (untested):

LDFLAGS=-Wl,-rpath,/app/radius/samba/lib ./configure ...

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help with redhat build to --prefix

2011-10-24 Thread Joy Veronneau
That was a big help, now I can run ntlm_auth and winbindd and they find
their libraries. 

However, now that I can run ntlm_auth and winbindd with the correct
libraries, it seems that I need to rebuild my samba config to request ADS
support. I am using this configure command:

./configure --prefix=/app/radius/samba/
--with-configdir=/app/radius/samba/conf
--with-privatedir=/app/radius/samba/private --disable-cups
--with-wbclient=/app/radius/samba/lib --with-ads --with-ldap

but it is unable to find ldap.h.

It looks like openldap is installed on this machine but I am not sure
ldap.h is around anywhere - it's not in /usr/include or /usr/local/include
- I did a find and it's in source4...
sudo find . -name ldap.h -print

./app/radius/samba-3.5.8/source4/libcli/ldap/ldap.h

but I am building source3. Should I be building source4? or what is the
best way to proceed...?

Thanks in advance...


-- Joy






On 10/24/11 7:02 AM, Michael Wood esiot...@gmail.com wrote:

Hi

On 21 October 2011 20:23, Joy Veronneau j...@cornell.edu wrote:
 Hi,

 Thanks, I think that setting LD_LIBRARY_PATH would fix the problem on
the
 command line, but here's a little more information about what I want to
 do.

 I am installing winbindd on a radius server running Radiator. I will
start
 /app/radius/samba/bin/winbindd whenever the server reboots. Then
radiator
 will be using /app/radius/samba/sbin/ntlm_auth when people need to
 authenticate. So I have to set it up so every time ntlm_auth runs, it
can
 find the libraries... I was hoping there would be a way to build it so
 that would work but I am pretty rusty on my C programming/building
 skills...

Well, you could do this in various ways.  e.g. rename ntlm_auth to
ntlm_auth.real and then create a script called ntlm_auth like this:

#!/bin/sh
export LD_LIBRARY_PATH=/app/radius/samba/lib
exec /app/radius/samba/sbin/ntlm_auth.real $@

 Or maybe there is a way to specify the library location in the samba
 config file?

I don't believe so.

It seems what you need is to pass the -rpath option to the linker
while building Samba.  This will explicitly tell the dynamic linker
where to find the libraries when running the binaries.

Try configuring Samba like this (untested):

LDFLAGS=-Wl,-rpath,/app/radius/samba/lib ./configure ...

-- 
Michael Wood esiot...@gmail.com

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


[Samba] Need help with redhat build to --prefix

2011-10-21 Thread Joy Veronneau
Hi all,

I need to build samba 3.6.1 on a RedHat redhat-release-5Server-5.6.0.3 linux 
machine but cannot install it to the default directories because the machine is 
centrally managed...

I am using the following configure command:
./configure --prefix=/app/radius/samba/ --with-configdir=/app/radius/samba/conf 
--with-privatedir=/app/radius/samba/private --disable-cups

and I am unable to run winbindd – there are unfound libraries:

ldd winbindd
linux-vdso.so.1 =  (0x7fff529b3000)
libresolv.so.2 = /lib64/libresolv.so.2 (0x2b01188e2000)
libnsl.so.1 = /lib64/libnsl.so.1 (0x2b0118af7000)
libdl.so.2 = /lib64/libdl.so.2 (0x2b0118d0f000)
librt.so.1 = /lib64/librt.so.1 (0x2b0118f14000)
libpopt.so.0 = /usr/lib64/libpopt.so.0 (0x2b011911d000)
libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2b0119325000)
libtalloc.so.2 = not found
libtdb.so.1 = not found
libwbclient.so.0 = not found
libz.so.1 = /usr/lib64/libz.so.1 (0x2b011955f000)
libc.so.6 = /lib64/libc.so.6 (0x2b0119773000)
/lib64/ld-linux-x86-64.so.2 (0x2b01186c5000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x2b0119acb000)

Can someone help me with the correct configure command to use? I can see that 
the missing libraries are in /app/radius/samba/lib…

Thanks-


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


Re: [Samba] Need help with redhat build to --prefix

2011-10-21 Thread Gaiseric Vandal

So you are able to build?

you probably need to set your LD_LIBRARY_PATH  to list  
/app/radius/samba/lib first.  If you explicitly set LD_LIBRARY_PATH  
you will probably want to include /usr/lib directory as well.






On 10/21/2011 10:56 AM, Joy Veronneau wrote:

Hi all,

I need to build samba 3.6.1 on a RedHat redhat-release-5Server-5.6.0.3 linux 
machine but cannot install it to the default directories because the machine is 
centrally managed...

I am using the following configure command:
./configure --prefix=/app/radius/samba/ --with-configdir=/app/radius/samba/conf 
--with-privatedir=/app/radius/samba/private --disable-cups

and I am unable to run winbindd – there are unfound libraries:


ldd winbindd

 linux-vdso.so.1 =   (0x7fff529b3000)
 libresolv.so.2 =  /lib64/libresolv.so.2 (0x2b01188e2000)
 libnsl.so.1 =  /lib64/libnsl.so.1 (0x2b0118af7000)
 libdl.so.2 =  /lib64/libdl.so.2 (0x2b0118d0f000)
 librt.so.1 =  /lib64/librt.so.1 (0x2b0118f14000)
 libpopt.so.0 =  /usr/lib64/libpopt.so.0 (0x2b011911d000)
 libcrypt.so.1 =  /lib64/libcrypt.so.1 (0x2b0119325000)
 libtalloc.so.2 =  not found
 libtdb.so.1 =  not found
 libwbclient.so.0 =  not found
 libz.so.1 =  /usr/lib64/libz.so.1 (0x2b011955f000)
 libc.so.6 =  /lib64/libc.so.6 (0x2b0119773000)
 /lib64/ld-linux-x86-64.so.2 (0x2b01186c5000)
 libpthread.so.0 =  /lib64/libpthread.so.0 (0x2b0119acb000)

Can someone help me with the correct configure command to use? I can see that 
the missing libraries are in /app/radius/samba/lib…

Thanks-




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


Re: [Samba] Need help with redhat build to --prefix

2011-10-21 Thread Joy Veronneau
Hi,

Thanks, I think that setting LD_LIBRARY_PATH would fix the problem on the
command line, but here's a little more information about what I want to
do. 

I am installing winbindd on a radius server running Radiator. I will start
/app/radius/samba/bin/winbindd whenever the server reboots. Then radiator
will be using /app/radius/samba/sbin/ntlm_auth when people need to
authenticate. So I have to set it up so every time ntlm_auth runs, it can
find the libraries... I was hoping there would be a way to build it so
that would work but I am pretty rusty on my C programming/building
skills...

Or maybe there is a way to specify the library location in the samba
config file?

TIA

-- Joy






On 10/21/11 11:34 AM, Gaiseric Vandal gaiseric.van...@gmail.com wrote:

So you are able to build?

you probably need to set your LD_LIBRARY_PATH  to list
/app/radius/samba/lib first.  If you explicitly set LD_LIBRARY_PATH
you will probably want to include /usr/lib directory as well.





On 10/21/2011 10:56 AM, Joy Veronneau wrote:
 Hi all,

 I need to build samba 3.6.1 on a RedHat redhat-release-5Server-5.6.0.3
linux machine but cannot install it to the default directories because
the machine is centrally managed...

 I am using the following configure command:
 ./configure --prefix=/app/radius/samba/
--with-configdir=/app/radius/samba/conf
--with-privatedir=/app/radius/samba/private --disable-cups

 and I am unable to run winbindd ­ there are unfound libraries:

 ldd winbindd
  linux-vdso.so.1 =   (0x7fff529b3000)
  libresolv.so.2 =  /lib64/libresolv.so.2 (0x2b01188e2000)
  libnsl.so.1 =  /lib64/libnsl.so.1 (0x2b0118af7000)
  libdl.so.2 =  /lib64/libdl.so.2 (0x2b0118d0f000)
  librt.so.1 =  /lib64/librt.so.1 (0x2b0118f14000)
  libpopt.so.0 =  /usr/lib64/libpopt.so.0 (0x2b011911d000)
  libcrypt.so.1 =  /lib64/libcrypt.so.1 (0x2b0119325000)
  libtalloc.so.2 =  not found
  libtdb.so.1 =  not found
  libwbclient.so.0 =  not found
  libz.so.1 =  /usr/lib64/libz.so.1 (0x2b011955f000)
  libc.so.6 =  /lib64/libc.so.6 (0x2b0119773000)
  /lib64/ld-linux-x86-64.so.2 (0x2b01186c5000)
  libpthread.so.0 =  /lib64/libpthread.so.0 (0x2b0119acb000)

 Can someone help me with the correct configure command to use? I can
see that the missing libraries are in /app/radius/samba/libŠ

 Thanks-



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

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


[Samba] Need help getting colour printing features restricted to a specific group

2011-09-29 Thread Gary Greene
I¹ve got a Ricoh multi-function printer/copier that I need to restrict the
colour printing functions to only members of the @ColorPrinting group. I¹ve
two print queues for the Ricoh, one colour, one not. Unfortunately, even
users on the BW queue can change the colour settings on the print dialog in
Windows and bypass the restriction and prints in colour.

Part of this likely is our CUPS configuration in tandem to our Samba
configuration. I¹d appreciate it if someone knowledgeable about printing
with CUPS over Samba can help get this resolved. Our CUPS configuration can
be made available if we need it. Our Samba configuration follows:

[global]
workgroup = MINERVANETWORKS
server string = 
printing = cups
printcap name = cups
printcap cache time = 120
load printers = yes
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
log level = 3 printdrivers:10
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
idmap gid = 1-2
idmap uid = 1-2
realm = MINERVANETWORKS.COM
security = ADS
template homedir = /home/%D/%U
template shell = /bin/bash
usershare max shares = 100
winbind use default domain = yes
winbind offline logon = yes
winbind refresh tickets = yes
add machine script = /usr/sbin/useradd  -c Machine -d
/var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
passdb backend = smbpasswd
wins support = No
wins server = 10.5.1.12 10.6.1.55 10.6.1.110
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = no
writable = no
printable = yes
printer admin = root, @ntadmins, @smbprintadm
use client driver = yes

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No

[hp_business_inkjet_2250_ps]
comment = HP Business InkJet 2250
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = No
writable = No
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r
use client driver = yes
create mask = 0700
read only = Yes

[hp_designjet_800_ps]
comment = HP DesignJet 800
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = No
writable = No
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r
use client driver = yes
create mask = 0700
read only = Yes

[hp_laserjet_2100]
comment = HP LaserJet 2100
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = No
writable = No
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r
use client driver = yes
create mask = 0700
read only = Yes

[hp_laserjet_4050_series_ps]
comment = HP LaserJet 4050
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = No
writable = No
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r
use client driver = yes
create mask = 0700
read only = Yes

[ricoh_aficio_mp_c4500]
comment = RICOH Aficio MP C4500
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = Yes
writable = No
create mode = 0700
print command = lpr-cups -P %p -o %s -r
use client driver = yes
create mask = 0700
read only = Yes
printer admin = @Domain Admins

[ricoh_aficio_mp_c4500_color]
comment = RICOH Aficio MP C4500 Color
path = /var/spool/samba
printable = Yes
browseable = Yes
guest ok = No
writable = No
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r
use client driver = yes
create mask = 0700
read only = Yes
printer admin = @Domain Admins
read list = @ColorPrinter

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @Domain Admins, root, @smbprintadm
browsable = yes
guest ok = yes
browseable = yes

[scans]
browseable = Yes
comment = Public scans directory for the RICOH
guest ok = Yes
inherit acls = Yes
path = /srv/samba/Scans/
read only = No


-- 
Gary L. Greene, Jr.
Sr. Systems Administrator
IT Operations, Minerva Networks Inc.
Cell: (650) 704-6633

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

Re: [Samba] Need help getting colour printing features restricted to a specific group

2011-09-29 Thread Chris Smith
On Thu, Sep 29, 2011 at 3:00 PM, Gary Greene
ggre...@minervanetworks.com wrote:
 I¹ve got a Ricoh multi-function printer/copier that I need to restrict the
 colour printing functions to only members of the @ColorPrinting group. I¹ve
 two print queues for the Ricoh, one colour, one not. Unfortunately, even
 users on the BW queue can change the colour settings on the print dialog in
 Windows and bypass the restriction and prints in colour.

Never thought about trying such a thing, but maybe editing the PPD of
the BW printer so that it mimics a similar non-color capable
printer and therefore doesn't offer color options.

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

Re: [Samba] Need help getting colour printing features restricted to a specific group

2011-09-29 Thread Christ Schlacta

On 9/29/2011 13:17, Chris Smith wrote:

On Thu, Sep 29, 2011 at 3:00 PM, Gary Greene
ggre...@minervanetworks.com  wrote:

I¹ve got a Ricoh multi-function printer/copier that I need to restrict the
colour printing functions to only members of the @ColorPrinting group. I¹ve
two print queues for the Ricoh, one colour, one not. Unfortunately, even
users on the BW queue can change the colour settings on the print dialog in
Windows and bypass the restriction and prints in colour.

Never thought about trying such a thing, but maybe editing the PPD of
the BW printer so that it mimics a similar non-color capable
printer and therefore doesn't offer color options.

Chris
Perhaps the proper approach is severe administrative penalties 
accompanied by logging.  IE: You're not allowed to print in colour, if 
you print in colour anyway, you'll get sanctioned, then fired.If 
that's not an option, I think ppd hacking might be the best option.

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

Re: [Samba] Need help getting colour printing features restricted to a specific group

2011-09-29 Thread Gary Greene
On 9/29/11 1:44 PM, Christ Schlacta li...@aarcane.org wrote:
 On 9/29/2011 13:17, Chris Smith wrote:
 On Thu, Sep 29, 2011 at 3:00 PM, Gary
 Greene
 ggre...@minervanetworks.com  wrote:
 I¹ve got a Ricoh
 multi-function printer/copier that I need to restrict the
 colour printing
 functions to only members of the @ColorPrinting group. I¹ve
 two print
 queues for the Ricoh, one colour, one not. Unfortunately, even
 users on the
 BW queue can change the colour settings on the print dialog in
 Windows and
 bypass the restriction and prints in colour.
 Never thought about trying such
 a thing, but maybe editing the PPD of
 the BW printer so that it mimics a
 similar non-color capable
 printer and therefore doesn't offer color
 options.

 Chris
Perhaps the proper approach is severe administrative
 penalties
accompanied by logging.  IE: You're not allowed to print in
 colour, if
you print in colour anyway, you'll get sanctioned, then fired.
 If
that's not an option, I think ppd hacking might be the best option.
--
To
 unsubscribe from this list go to the following URL and read the
instructions:
 https://lists.samba.org/mailman/options/samba

Problem is that the queue is set BW in the CUPS config (just tested this
from the SuSE box acting as the print server, however I think that the raw
option for the -o raw is the culprit here on the print command option line
for lpr-cups. Do Samba shared printers require this option?

Unfortunately, my boss is not giving me the option of this being resolved
through a non-tech solution. Either I find a way to block this, or I have to
move printing back to a Windows Server 2003 box and then screw over all the
Mac and Linux workstation users here that cannot use the enforced Windows
print driver security settings.

-- 
Gary L. Greene, Jr.
Sr. Systems Administrator
IT Operations, Minerva Networks Inc.
Cell: (650) 704-6633
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Need help getting colour printing features restricted to a specific group

2011-09-29 Thread Chris Smith
2011/9/29 Gary Greene ggre...@minervanetworks.com:
 I think that the raw
 option for the -o raw is the culprit here on the print command option line
 for lpr-cups. Do Samba shared printers require this option?

I don't believe so.

Removing the color option from the PPD should be straightforward,
although the BW printer will need to be removed and reinstalled.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly[Closed]

2011-01-05 Thread Volker Lendecke
On Mon, Jan 03, 2011 at 08:48:23AM -0700, Hodges, Robert CTR USAF AFMC 520 
SMXS/MXDEC wrote:
 Nope - didn't fix it.  Same error.
 
 But an excellent suggestion though, thanks.

Probably you can't publish them, but have you tried to
analyze a network trace from the Windows client taken by
wireshark on the client? If you can reproduce the problem in
a fresh install far away from your production network, you
might be able to send us the traces. (not sure if this is
remotely realistic)

Do you have any custom patches in your Samba? And --
skimming over the thread I missed the Samba version
information. I see you're using it on Solaris.  Is this
self-compiled or the SUN-provided version?

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-05 Thread Jeremy Allison
On Mon, Jan 03, 2011 at 06:36:30AM -0700, Hodges, Robert CTR USAF AFMC 520 
SMXS/MXDEC wrote:
 Jeremy, All,
 
 I truly appreciate your willingness to help me work on this further.
 Unfortunately, we have simply run out of time.
 
 To make matters worse, I cannot provide traces, logs, etc because this
 is a classified government system that cannot be exposed in any way,
 which means rather difficult and sometimes problematic troubleshooting
 limitations that may keep this problem from being solved.  However, this
 error is found all over the internet and rarely do you ever see a fix
 for it.  When I have seen one, it's not a fix that works for me.
 
 To make matters worse, Microsoft stamped a Microsoft has confirmed this
 to be a problem with the products specified on WinXP and Samba.
 Microsoft has no fix, they have tried many times before, and as it now
 stands, appears to be disinterested in providing a hot fix due to the
 remaining shelf life of XP.  Any support you get form Microsoft on this
 particular issue is what they call a best effort, and do not guarantee
 a fix like they do with their own products.
 
 For anyone that wants to play around with this, here's the config:
 
 All static IPs
 Workgroup only, no domain
 Solaris with Samba loaded, a few shares, enabled as WINS server,
 configured as Master Browser
 No DNS server
 XP has WINS setting pointing at Samba box, hosts file used instead of
 DNS, lmjosts file NTO in use because of WINS on Samba, XP's Computer
 Browser service disabled to force XP to see Samba box as master browser
 (otherwise will elect itself as master browser and totally ignore Samba)

My feeling is it's the disabling of the browser
service that is the problem. WinXP doesn't ignore
Samba browse priorities - set correctly Samba will
always win browse elections.

I'd like to investigate this more but have other
priorities to look at. I'm pretty sure given access
to your site I could get it up and running though,
I use to solve browsing problems like this as a
kind of mental relaxation hobby :-).

Not much I can do without logs or packet traces
though. I understand you're a secure site so that's
not possible. Shame though :-).

Cheers,

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Jeremy, All,

I truly appreciate your willingness to help me work on this further.
Unfortunately, we have simply run out of time.

To make matters worse, I cannot provide traces, logs, etc because this
is a classified government system that cannot be exposed in any way,
which means rather difficult and sometimes problematic troubleshooting
limitations that may keep this problem from being solved.  However, this
error is found all over the internet and rarely do you ever see a fix
for it.  When I have seen one, it's not a fix that works for me.

To make matters worse, Microsoft stamped a Microsoft has confirmed this
to be a problem with the products specified on WinXP and Samba.
Microsoft has no fix, they have tried many times before, and as it now
stands, appears to be disinterested in providing a hot fix due to the
remaining shelf life of XP.  Any support you get form Microsoft on this
particular issue is what they call a best effort, and do not guarantee
a fix like they do with their own products.

For anyone that wants to play around with this, here's the config:

All static IPs
Workgroup only, no domain
Solaris with Samba loaded, a few shares, enabled as WINS server,
configured as Master Browser
No DNS server
XP has WINS setting pointing at Samba box, hosts file used instead of
DNS, lmjosts file NTO in use because of WINS on Samba, XP's Computer
Browser service disabled to force XP to see Samba box as master browser
(otherwise will elect itself as master browser and totally ignore Samba)

Behavior:
WinXP can map to any resource on Samba with zero problems - it is not a
permissions issue.  Attempting to browse to a Samba resource, however,
produces The specified network name is no longer available in XP.  If
Computer Browser service enabled on XP, XP may or may not be able to
browse to Samba box (this is entirely unstable, because within 15
minutes, if XP has elected itself as master browser, XP will eventually
time out and lose the server list, and Specified network no longer
available error returns).
Never, is WinXP able to retrieve the browse list from Samba.  Microsoft
claims that this is because the network configuration is too simplified
and because real WINS and DNS servers are not in use.  All we're trying
to do is get one stinkin' XP workstation to talk to one stinkin' Samba
box in a simple workgroup.  That's it.  So far, it's got everyone that
looks at this problem absolutely baffled as to how this could not work.

Those who have looked at it and given up:

Microsoft
US Air Force
US Marine Corps
Various private military contractors
Samba email list group (best support so far, but still no dice)

Again, thanks to all who have tried figuring this out.  I know I haven't
given you much to work with, so don't feel bad.  It's just that I have
simply run out of time to get this resolved.

Bob



 -Original Message-
From: Jeremy Allison [mailto:j...@samba.org] 
Sent: Thursday, December 30, 2010 3:04 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
[Closed]

On Thu, Dec 30, 2010 at 12:29:53PM -0700, Hodges, Robert CTR USAF AFMC
520 SMXS/MXDEC wrote:
 Well, here's what's happening.
 
 Microsoft Tech Support confirms that this is a problem with Windows
XP.
 There is no fix, and I don't expect one coming considering XP's end of
 life in 2012.  All Microsoft has are workarounds.

Don't throw in the towel just yet. I've never seen a WindowsXP
box that won't work with Samba, we just need more info.

 Microsoft's recommendations are to add more servers to the mix (DNS,
 WINS, etc) and if that doesn't work, then one of their several
 workarounds is to dump the use of Samba altogether.  None of the
 proposed workarounds work for us, we're locked into a specific
 configuration.
 
 So both Microsoft and my shop are throwing in the towel on this one
and
 we're resorting to simply mapping to all the shares instead of having
 users browse to them.  Sounds simple, but this represents a huge
config
 and documentation change on many levels for us, a lot bigger than
anyone
 could know.  A very frustrating and expensive workaround if you knew
the
 scope.

Don't do this yet. I haven't seen any debug logs from
you, or a network trace. Changing your config without
proper investigation is completely premature IMHO.

 This decision to pull the plug was made after I came across an online
 forum where someone had this very same issue, worked with Microsoft
Tech
 Support for 7 months(!), and it never got resolved.

We have been networking Windowx XP boxes to Samba
for longer than anyone still working in Microsoft
Tech support, trust me on that :-). So I'd still
like to fix this properly.

 So, it sucks to be me.  

Please get the network trace and debug level 10 log
of the Windows XP box trying to connect to Samba, this
should give us the information we need to fix it.

Jeremy.
-- 
To unsubscribe from this list go to the following URL

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Ryan Novosielski
Might you be able to provide a couple of links to other places you've seen this 
on the internet (or sample search terms)? Perhaps one has some of the 
information that could be used to look into the problem further, or something 
that could be used to triangulate the problem. Would be neat to get it nailed 
down one way or another.

-- Sent from my Palm Pre
On Jan 3, 2011 8:36, Hodges,Robert CTR USAF AFMC 520 SMXS/MXDEC 
lt;robert.hodges@hill.af.milgt; wrote: 

Jeremy, All,



I truly appreciate your willingness to help me work on this further.

Unfortunately, we have simply run out of time.



To make matters worse, I cannot provide traces, logs, etc because this

is a classified government system that cannot be exposed in any way,

which means rather difficult and sometimes problematic troubleshooting

limitations that may keep this problem from being solved.  However, this

error is found all over the internet and rarely do you ever see a fix

for it.  When I have seen one, it's not a fix that works for me.



To make matters worse, Microsoft stamped a Microsoft has confirmed this

to be a problem with the products specified on WinXP and Samba.

Microsoft has no fix, they have tried many times before, and as it now

stands, appears to be disinterested in providing a hot fix due to the

remaining shelf life of XP.  Any support you get form Microsoft on this

particular issue is what they call a best effort, and do not guarantee

a fix like they do with their own products.



For anyone that wants to play around with this, here's the config:



All static IPs

Workgroup only, no domain

Solaris with Samba loaded, a few shares, enabled as WINS server,

configured as Master Browser

No DNS server

XP has WINS setting pointing at Samba box, hosts file used instead of

DNS, lmjosts file NTO in use because of WINS on Samba, XP's Computer

Browser service disabled to force XP to see Samba box as master browser

(otherwise will elect itself as master browser and totally ignore Samba)



Behavior:

WinXP can map to any resource on Samba with zero problems - it is not a

permissions issue.  Attempting to browse to a Samba resource, however,

produces The specified network name is no longer available in XP.  If

Computer Browser service enabled on XP, XP may or may not be able to

browse to Samba box (this is entirely unstable, because within 15

minutes, if XP has elected itself as master browser, XP will eventually

time out and lose the server list, and Specified network no longer

available error returns).

Never, is WinXP able to retrieve the browse list from Samba.  Microsoft

claims that this is because the network configuration is too simplified

and because real WINS and DNS servers are not in use.  All we're trying

to do is get one stinkin' XP workstation to talk to one stinkin' Samba

box in a simple workgroup.  That's it.  So far, it's got everyone that

looks at this problem absolutely baffled as to how this could not work.



Those who have looked at it and given up:



Microsoft

US Air Force

US Marine Corps

Various private military contractors

Samba email list group (best support so far, but still no dice)



Again, thanks to all who have tried figuring this out.  I know I haven't

given you much to work with, so don't feel bad.  It's just that I have

simply run out of time to get this resolved.



Bob







 -Original Message-

From: Jeremy Allison [mailto:j...@samba.org] 

Sent: Thursday, December 30, 2010 3:04 PM

To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC

Cc: samba

Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

[Closed]



On Thu, Dec 30, 2010 at 12:29:53PM -0700, Hodges, Robert CTR USAF AFMC

520 SMXS/MXDEC wrote:

gt; Well, here's what's happening.

gt; 

gt; Microsoft Tech Support confirms that this is a problem with Windows

XP.

gt; There is no fix, and I don't expect one coming considering XP's end of

gt; life in 2012.  All Microsoft has are workarounds.



Don't throw in the towel just yet. I've never seen a WindowsXP

box that won't work with Samba, we just need more info.



gt; Microsoft's recommendations are to add more servers to the mix (DNS,

gt; WINS, etc) and if that doesn't work, then one of their several

gt; workarounds is to dump the use of Samba altogether.  None of the

gt; proposed workarounds work for us, we're locked into a specific

gt; configuration.

gt; 

gt; So both Microsoft and my shop are throwing in the towel on this one

and

gt; we're resorting to simply mapping to all the shares instead of having

gt; users browse to them.  Sounds simple, but this represents a huge

config

gt; and documentation change on many levels for us, a lot bigger than

anyone

gt; could know.  A very frustrating and expensive workaround if you knew

the

gt; scope.



Don't do this yet. I haven't seen any debug logs from

you, or a network trace. Changing your config without

proper investigation is completely premature IMHO

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
You bet.

http://search.yahoo.com/search;_ylt=AsEw2kKriectewf3wTL9r42bvZx4?p=Windows+XP+%2B+Samba+%2B+%22The+specified+network+name+is+no+longer+available%22toggle=1cop=mssei=UTF-8fr=yfp-t-312

Bob



-Original Message-
From: Ryan Novosielski [mailto:novos...@umdnj.edu] 
Sent: Monday, January 03, 2011 7:28 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC; Jeremy Allison
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

Might you be able to provide a couple of links to other places you've seen this 
on the internet (or sample search terms)? Perhaps one has some of the 
information that could be used to look into the problem further, or something 
that could be used to triangulate the problem. Would be neat to get it nailed 
down one way or another.


-- Sent from my Palm Pre



On Jan 3, 2011 8:36, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC 
robert.hodges@hill.af.mil wrote: 

Jeremy, All, 

I truly appreciate your willingness to help me work on this further. 
Unfortunately, we have simply run out of time. 

To make matters worse, I cannot provide traces, logs, etc because this 
is a classified government system that cannot be exposed in any way, 
which means rather difficult and sometimes problematic troubleshooting 
limitations that may keep this problem from being solved. However, this 
error is found all over the internet and rarely do you ever see a fix 
for it. When I have seen one, it's not a fix that works for me. 

To make matters worse, Microsoft stamped a Microsoft has confirmed this 
to be a problem with the products specified on WinXP and Samba. 
Microsoft has no fix, they have tried many times before, and as it now 
stands, appears to be disinterested in providing a hot fix due to the 
remaining shelf life of XP. Any support you get form Microsoft on this 
particular issue is what they call a best effort, and do not guarantee 
a fix like they do with their own products. 

For anyone that wants to play around with this, here's the config: 

All static IPs 
Workgroup only, no domain 
Solaris with Samba loaded, a few shares, enabled as WINS server, 
configured as Master Browser 
No DNS server 
XP has WINS setting pointing at Samba box, hosts file used instead of 
DNS, lmjosts file NTO in use because of WINS on Samba, XP's Computer 
Browser service disabled to force XP to see Samba box as master browser 
(otherwise will elect itself as master browser and totally ignore Samba) 

Behavior: 
WinXP can map to any resource on Samba with zero problems - it is not a 
permissions issue. Attempting to browse to a Samba resource, however, 
produces The specified network name is no longer available in XP. If 
Computer Browser service enabled on XP, XP may or may not be able to 
browse to Samba box (this is entirely unstable, because within 15 
minutes, if XP has elected itself as master browser, XP will eventually 
time out and lose the server list, and Specified network no longer 
available error returns). 
Never, is WinXP able to retrieve the browse list from Samba. Microsoft 
claims that this is because the network configuration is too simplified 
and because real WINS and DNS servers are not in use. All we're trying 
to do is get one stinkin' XP workstation to talk to one stinkin' Samba 
box in a simple workgroup. That's it. So far, it's got everyone that 
looks at this problem absolutely baffled as to how this could not work. 

Those who have looked at it and given up: 

Microsoft 
US Air Force 
US Marine Corps 
Various private military contractors 
Samba email list group (best support so far, but still no dice) 

Again, thanks to all who have tried figuring this out. I know I haven't 
given you much to work with, so don't feel bad. It's just that I have 
simply run out of time to get this resolved. 

Bob 



-Original Message- 
From: Jeremy Allison [mailto:j...@samba.org] 
Sent: Thursday, December 30, 2010 3:04 PM 
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC 
Cc: samba 
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly 
[Closed] 

On Thu, Dec 30, 2010 at 12:29:53PM -0700, Hodges, Robert CTR USAF AFMC 
520 SMXS/MXDEC wrote: 
 Well, here's what's happening. 
 
 Microsoft Tech Support confirms that this is a problem with Windows 
XP. 
 There is no fix, and I don't expect one coming considering XP's end of 
 life in 2012. All Microsoft has are workarounds. 

Don't throw in the towel just yet. I've never seen a WindowsXP 
box that won't work with Samba, we just need more info. 

 Microsoft's recommendations are to add more servers to the mix (DNS, 
 WINS, etc) and if that doesn't work, then one of their several 
 workarounds is to dump the use of Samba altogether. None of the 
 proposed workarounds work for us, we're locked into a specific 
 configuration. 
 
 So both Microsoft and my shop are throwing in the towel on this one 
and 
 we're resorting to simply mapping

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Chris Smith
On Mon, Jan 3, 2011 at 8:36 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Workgroup only, no domain
 Solaris with Samba loaded, a few shares, enabled as WINS server,
 configured as Master Browser

Did you ever correct the underscore in the hostname issue and then test?

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
No, I didn't.  Nor can I because of the impact it would have on a number of 
different issues that are unchangeable/written in stone.

A key item I have to keep remembering is that all of this works great in 
Windows 2000.  It's only XP that's having the problem.

Bob

 

-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Monday, January 03, 2011 8:13 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Jeremy Allison; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

On Mon, Jan 3, 2011 at 8:36 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Workgroup only, no domain
 Solaris with Samba loaded, a few shares, enabled as WINS server,
 configured as Master Browser

Did you ever correct the underscore in the hostname issue and then test?

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Chris Smith
On Mon, Jan 3, 2011 at 10:17 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 A key item I have to keep remembering is that all of this works great in 
 Windows 2000.  It's only XP that's having the problem.

Don't know if I would put so much weight on that - a difference, yes,
but not a key item. XP may just be more finicky when it comes to
things like proper naming conventions.
I haven't run a Samba-2.x installation in years but I have at one time
or another had Samba working successfully with everything from the
workgroup add-on for MS-DOS to Windows 7.

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2011-01-03 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Could be.  I'm trying it now just out of curiosity.  Who knows, maybe we'll get 
lucky and this will be a fix.

:-)


-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Monday, January 03, 2011 8:25 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

On Mon, Jan 3, 2011 at 10:17 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 A key item I have to keep remembering is that all of this works great in 
 Windows 2000.  It's only XP that's having the problem.

Don't know if I would put so much weight on that - a difference, yes,
but not a key item. XP may just be more finicky when it comes to
things like proper naming conventions.
I haven't run a Samba-2.x installation in years but I have at one time
or another had Samba working successfully with everything from the
workgroup add-on for MS-DOS to Windows 7.

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly[Closed]

2011-01-03 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Nope - didn't fix it.  Same error.

But an excellent suggestion though, thanks.

Bob



-Original Message-
From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On 
Behalf Of Hodges,Robert CTR USAF AFMC 520 SMXS/MXDEC
Sent: Monday, January 03, 2011 8:39 AM
To: Chris Smith
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly[Closed]

Could be.  I'm trying it now just out of curiosity.  Who knows, maybe we'll get 
lucky and this will be a fix.

:-)


-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Monday, January 03, 2011 8:25 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

On Mon, Jan 3, 2011 at 10:17 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 A key item I have to keep remembering is that all of this works great in 
 Windows 2000.  It's only XP that's having the problem.

Don't know if I would put so much weight on that - a difference, yes,
but not a key item. XP may just be more finicky when it comes to
things like proper naming conventions.
I haven't run a Samba-2.x installation in years but I have at one time
or another had Samba working successfully with everything from the
workgroup add-on for MS-DOS to Windows 7.

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-30 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Thanks, Chris.

The only WINS server we're attempting to use is Samba itself.  We are not using 
lmhosts.

Samba is verified to be properly hosting WINS, as there are two instances 
running (would be only one if WINS wasn't being hosted) and like I said, 
everything runs great if using a Windows 2000 workstation against the 
Solaris/Samba server.  No NetBIOS scopes or anything like that, not erven using 
DHCP - just static IPs on a local workgroup.  Just a very simple, no-frills 
networking setup.

You guys are awesome, keep the ideas coming.  

Bob

-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Wednesday, December 29, 2010 3:20 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Wed, Dec 29, 2010 at 1:07 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 The registry change and enabling the browser service produced the same 
 results as before, same error (The specified network name is no longer 
 available.).

 However, it did allow Windows XP to force itself to use the Samba server as 
 the master browser without having to disable the Computer Browser service, 
 which is what I had been doing.  So that was nice.

 Any other suggestions?

If you have a WINS server that the system is registering with you
shouldn't need an lmhosts file - although as long as they don't
contradict you would be fine. FYI, possibly the absolute dumbest UI
decision ever was Microsoft's one to hide file extensions for known
file types. Many users think they have a perfectly fine lmhosts file
when they have a useless lmhosts.sam or lmhosts.txt file instead.

You can examine the wins.dat file on the WINS server host to determine
if the XP system is registering itself.

Outside possibility - NetBIOS Scope - which allows for some
(il)logical type of NetBIOS subnetting. It possible that the XP
system has been setup to respond to a particular NetBIOS scope ID
(although I haven't seen such a setup in use for eons). I do admit to
always adding an - option netbios-scope ; - to my dhcpd server to
eliminate this tattoo from the registry. You can also manually check
it at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\ScopeID
If there's any value there delete it (unless you're using a Scope ID,
then make it match).

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-30 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There is a directive used to include other config files. I do not recall
what it is, but I do recall it being in the manual for smb.conf. ;)

Please keep replies on-list. Thanks.

On 12/29/2010 02:19 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC wrote:
 Good tip, thanks.  How to I make use of this smb.conf.%m option?
 
 Bob
  
 -Original Message-
 From: samba-boun...@lists.samba.org
 [mailto:samba-boun...@lists.samba.org] On Behalf Of Ryan Novosielski
 Sent: Wednesday, December 29, 2010 11:33 AM
 To: samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 You can set the logs to level 10 using the params in the manual for
 smb.conf. Also a neat trick, though, is to include the config file
 smb.conf.%m, which may or may not exist for all machine names, and
 include the debug parameter in there. This allows you to add the log
 level 10 for only the client(s) you want so as not to waste disk space
 on a busy machine.
 
 =R
 
 On 12/29/2010 01:10 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 wrote:
 Jeremy,
 
 This makes sense, I'll try it.  Excellent idea.
 
 I'm new to Samba, so how do I get it to run in debug mode and do the 
 logging option you mentioned?
 
 Sorry to sound so juvenile, my experience with Samba is in reverse - 
 getting Linux boxes to use Windows servers.
 
 Bob
 
 
 
 -Original Message-
 From: Jeremy Allison [mailto:j...@samba.org]
 Sent: Wednesday, December 29, 2010 10:33 AM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: t...@tms3.com; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
 Properly
 
 On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF AFMC
 
 520 SMXS/MXDEC wrote:
 TMS3,

 Thanks for joining in, really appreciate it.

 I'm trying to keep it all straight, I'm relatively new to Samba (but
 learning quickly).

 What I now know:

 1.  Sniffer on XP box reveals that XP does see the broadcasts from
 Samba. 

 2.  The Microsoft support tool/command Browstat status shows that 
 XP
 does recognize Samba as the server (if Computer Browser service 
 disabled, otherwise XP may/may not elect itself as the master - 
 unpredictable), but also shows that XP is unable to pull down the 
 browse list form the Samba box.
 
 This is the key. Separate out the logs by incoming client name, run 
 smbd at debug level 10 and then look in the log.xp client name to 
 see if it's trying to fetch the browse list, and if so why it goes 
 wrong.
 
 Jeremy.
 
 

- -- 
-  _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0cxSUACgkQmb+gadEcsb6fCgCfetMccsL9aLvE5LN2+tC9xbqZ
gDgAn1CR0QgAahXcpFfQj/CuDqsKq2LO
=Gdr3
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2010-12-30 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Well, here's what's happening.

Microsoft Tech Support confirms that this is a problem with Windows XP.
There is no fix, and I don't expect one coming considering XP's end of
life in 2012.  All Microsoft has are workarounds.

Microsoft's recommendations are to add more servers to the mix (DNS,
WINS, etc) and if that doesn't work, then one of their several
workarounds is to dump the use of Samba altogether.  None of the
proposed workarounds work for us, we're locked into a specific
configuration.

So both Microsoft and my shop are throwing in the towel on this one and
we're resorting to simply mapping to all the shares instead of having
users browse to them.  Sounds simple, but this represents a huge config
and documentation change on many levels for us, a lot bigger than anyone
could know.  A very frustrating and expensive workaround if you knew the
scope.

This decision to pull the plug was made after I came across an online
forum where someone had this very same issue, worked with Microsoft Tech
Support for 7 months(!), and it never got resolved.

So, it sucks to be me.  

You folks are AWESOME, and came up with much better ideas that Microsoft
did, but still to no avail.

You all have my unwavering respect and thanks, and I really mean it.

-  Bob




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Ryan Novosielski
Sent: Thursday, December 30, 2010 10:45 AM
To: samba
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There is a directive used to include other config files. I do not recall
what it is, but I do recall it being in the manual for smb.conf. ;)

Please keep replies on-list. Thanks.

On 12/29/2010 02:19 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
wrote:
 Good tip, thanks.  How to I make use of this smb.conf.%m option?
 
 Bob
  
 -Original Message-
 From: samba-boun...@lists.samba.org
 [mailto:samba-boun...@lists.samba.org] On Behalf Of Ryan Novosielski
 Sent: Wednesday, December 29, 2010 11:33 AM
 To: samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
 Properly
 
 You can set the logs to level 10 using the params in the manual for 
 smb.conf. Also a neat trick, though, is to include the config file 
 smb.conf.%m, which may or may not exist for all machine names, and 
 include the debug parameter in there. This allows you to add the log 
 level 10 for only the client(s) you want so as not to waste disk space

 on a busy machine.
 
 =R
 
 On 12/29/2010 01:10 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 wrote:
 Jeremy,
 
 This makes sense, I'll try it.  Excellent idea.
 
 I'm new to Samba, so how do I get it to run in debug mode and do the 
 logging option you mentioned?
 
 Sorry to sound so juvenile, my experience with Samba is in reverse - 
 getting Linux boxes to use Windows servers.
 
 Bob
 
 
 
 -Original Message-
 From: Jeremy Allison [mailto:j...@samba.org]
 Sent: Wednesday, December 29, 2010 10:33 AM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: t...@tms3.com; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
 Properly
 
 On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF 
 AFMC
 
 520 SMXS/MXDEC wrote:
 TMS3,

 Thanks for joining in, really appreciate it.

 I'm trying to keep it all straight, I'm relatively new to Samba (but
 learning quickly).

 What I now know:

 1.  Sniffer on XP box reveals that XP does see the broadcasts from
 Samba. 

 2.  The Microsoft support tool/command Browstat status shows that 
 XP
 does recognize Samba as the server (if Computer Browser service 
 disabled, otherwise XP may/may not elect itself as the master - 
 unpredictable), but also shows that XP is unable to pull down the 
 browse list form the Samba box.
 
 This is the key. Separate out the logs by incoming client name, run 
 smbd at debug level 10 and then look in the log.xp client name to 
 see if it's trying to fetch the browse list, and if so why it goes 
 wrong.
 
 Jeremy.
 
 

- --
-  _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer 
|$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0cxSUACgkQmb+gadEcsb6fCgCfetMccsL9aLvE5LN2+tC9xbqZ
gDgAn1CR0QgAahXcpFfQj/CuDqsKq2LO
=Gdr3
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly[Closed]

2010-12-30 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Unfortunately we're not able to install more software of radically change any 
configurations.  We also do not use LDAP (just a workgroup, hosts file, static 
IPs and Samba).  But those are good ideas, I'll keep them in mind just in case. 
 Major thanks.

:-)

Bob



-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com] 
Sent: Thursday, December 30, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly[Closed]




So both Microsoft and my shop are throwing in the towel on this one and
we're resorting to simply mapping to all the shares instead of having
users browse to them. Sounds simple, but this represents a huge config
and documentation change on many levels for us, a lot bigger than anyone
could know.

Some ideas:

1.  Webpage on intranet web server with a list of available shares.  With 
Internut Exploder, the links will open as a drive folder.

2.  MSDFS.  Use the home path in ldap (etc.) to map homes through an MSDFS 
share.  Nest all available shares in the MSDFS zone.  You could even have 
several MSDFS shares with different available shares for different groups.  

In either case the changes are global and user friendly.

Happy New Year
 

A very frustrating and expensive workaround if you knew the
scope.

This decision to pull the plug was made after I came across an online
forum where someone had this very same issue, worked with Microsoft Tech
Support for 7 months(!), and it never got resolved.

So, it sucks to be me. 

You folks are AWESOME, and came up with much better ideas that Microsoft
did, but still to no avail.

You all have my unwavering respect and thanks, and I really mean it.

- Bob




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Ryan Novosielski
Sent: Thursday, December 30, 2010 10:45 AM
To: samba
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There is a directive used to include other config files. I do not recall
what it is, but I do recall it being in the manual for smb.conf. ;)

Please keep replies on-list. Thanks.

On 12/29/2010 02:19 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
wrote:


Good tip, thanks. How to I make use of this smb.conf.%m 
option?

Bob
   
-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Ryan 
Novosielski
Sent: Wednesday, December 29, 2010 11:33 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
Properly

You can set the logs to level 10 using the params in the manual 
for 
smb.conf. Also a neat trick, though, is to include the config 
file 
smb.conf.%m, which may or may not exist for all machine 
names, and 
include the debug parameter in there. This allows you to add 
the log 
level 10 for only the client(s) you want so as not to waste 
disk space



on a busy machine.

=R

On 12/29/2010 01:10 PM, Hodges, Robert CTR USAF AFMC 520 
SMXS/MXDEC
wrote:


Jeremy,



This makes sense, I'll try it. Excellent idea.



I'm new to Samba, so how do I get it to run in debug 
mode and do the 
logging option you mentioned?



Sorry to sound so juvenile, my experience with Samba is 
in reverse - 
getting Linux boxes to use Windows servers.



Bob





-Original Message-
From: Jeremy Allison [mailto:j...@samba.org]
Sent: Wednesday, December 29, 2010 10:33 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: t...@tms3.com; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To 
Use Samba 
Properly



On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, 
Robert CTR USAF

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2010-12-30 Thread Jeremy Allison
On Thu, Dec 30, 2010 at 12:29:53PM -0700, Hodges, Robert CTR USAF AFMC 520 
SMXS/MXDEC wrote:
 Well, here's what's happening.
 
 Microsoft Tech Support confirms that this is a problem with Windows XP.
 There is no fix, and I don't expect one coming considering XP's end of
 life in 2012.  All Microsoft has are workarounds.

Don't throw in the towel just yet. I've never seen a WindowsXP
box that won't work with Samba, we just need more info.

 Microsoft's recommendations are to add more servers to the mix (DNS,
 WINS, etc) and if that doesn't work, then one of their several
 workarounds is to dump the use of Samba altogether.  None of the
 proposed workarounds work for us, we're locked into a specific
 configuration.
 
 So both Microsoft and my shop are throwing in the towel on this one and
 we're resorting to simply mapping to all the shares instead of having
 users browse to them.  Sounds simple, but this represents a huge config
 and documentation change on many levels for us, a lot bigger than anyone
 could know.  A very frustrating and expensive workaround if you knew the
 scope.

Don't do this yet. I haven't seen any debug logs from
you, or a network trace. Changing your config without
proper investigation is completely premature IMHO.

 This decision to pull the plug was made after I came across an online
 forum where someone had this very same issue, worked with Microsoft Tech
 Support for 7 months(!), and it never got resolved.

We have been networking Windowx XP boxes to Samba
for longer than anyone still working in Microsoft
Tech support, trust me on that :-). So I'd still
like to fix this properly.

 So, it sucks to be me.  

Please get the network trace and debug level 10 log
of the Windows XP box trying to connect to Samba, this
should give us the information we need to fix it.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly [Closed]

2010-12-30 Thread Chris Smith
On Thu, Dec 30, 2010 at 5:03 PM, Jeremy Allison j...@samba.org wrote:
 We have been networking Windowx XP boxes to Samba
 for longer than anyone still working in Microsoft
 Tech support, trust me on that :-).

Cute :)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Thanks for responding, Brian, it is greatly appreciated.

To answer your questions:

Samba 3.4.2 is running on Solaris 8.
WINS support is enabled in Samba.
We are using a simple workgroup, not a domain structure.
One single XP workstation, one single Solaris/Samba server.
We are not using DNS, we are using the hosts file in XP.

Bob



-Original Message-
From: Brian McGrew [mailto:br...@visionpro.com] 
Sent: Tuesday, December 28, 2010 3:31 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

Hi, Robert!

So, since I don't have the whole thread here, this question may be
redundant, but are you running WINS?  Do you have a Windows DC or just a
Samba DC?  What version of Samba and Solaris, on what hardware?  What is the
network and DNS topology?

-b


On 12/28/10 2:25 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
robert.hodges@hill.af.mil wrote:

 Excellent information, thank you.
 
 Unfortunately, none of it solved my problem.
 
 I see a lot of The specified network name is no longer available error
 messages all over the internet from Linux users, and none of the very few
 solutions I have come across have worked for me.
 
 Anybody else able to chime in and take a guess as why my XP box is having a
 problem talking to my Solaris/Samba box?  Again, Win2K has no problems talking
 to the Samba box - it's just XP.
 
 Refresh:  This error happens when you try to browse using My Network Places
 in the desktop.  Mapping works fine, access works fine.  Browsing is what
 fails in XP.  I need this to work or I'm looking at a huge and expensive
 documentation change effort that few would understand.
 
 Still desperate for help on this.  This problem happens with WinXP right out
 of the box, we have nothing weird installed.
 
 Help!
 
 
 
 -Original Message-
 From: Chris Smith [mailto:smb...@chrissmith.org]
 Sent: Tuesday, December 28, 2010 12:45 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: John Drescher; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
 SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Other details:  I do not use a DNS server, I use the hosts file in XP.
 
 Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
 valid) scribblings here:
 http://realcomputerguy.com/networksetup.htm#hosts
 
 Chris
 -- 
To unsubscribe from this list go to the following URL and read
 the
instructions:  https://lists.samba.org/mailman/options/samba

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
I'll eventually be trying this, thanks.  But I'm hoping it doesn't have to get 
this ugly yet.



-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com] 
Sent: Tuesday, December 28, 2010 3:48 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly





Excellent information, thank you.

Unfortunately, none of it solved my problem.


Start sniffing the machine as you do a Network Neighborhood search.  You 
might also check and see just where and how lookups are being done for NETBios 
from an XP box command terminal

nbtstat -r

which will tell you how lookups are being done.  Might lead you to a culprit.




I see a lot of The specified network name is no longer available 
error messages all over the internet from Linux users, and none of the very few 
solutions I have come across have worked for me.

Anybody else able to chime in and take a guess as why my XP box is 
having a problem talking to my Solaris/Samba box? Again, Win2K has no problems 
talking to the Samba box - it's just XP.

Refresh: This error happens when you try to browse using My Network 
Places in the desktop. Mapping works fine, access works fine. Browsing is what 
fails in XP. I need this to work or I'm looking at a huge and expensive 
documentation change effort that few would understand.

Still desperate for help on this. This problem happens with WinXP right 
out of the box, we have nothing weird installed.

Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:


Other details:  I do not use a DNS server, I use the hosts file 
in XP.



Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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



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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
John, thanks for the response.

Yes, machine names are standard text, no special characters with the
exception of the Samba box, which has an underscore in the name.

If the workstation is Win2K, everything works great, including browsing.
XP, however, has the browsing problem (The specified network is no
longer available).  And this is with a fresh install of XP.

Bob

  

-Original Message-
From: John Drescher [mailto:dresche...@gmail.com] 
Sent: Tuesday, December 28, 2010 8:12 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 5:25 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Excellent information, thank you.

 Unfortunately, none of it solved my problem.


Do you have a valid NETBIOS domain or workstation name? I mean less
than 16 characters and absolutely no . in the name.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
John, everyone,

Whatever needs to be running on the Solaris box is running properly.
Windows 2000 workstation has no problem accessing or browsing the
Solaris box.  It is only XP that is producing the error.

All of your suggestions are excellent, PLEASE keep them coming!

Microsoft tech support is floundering around on this one, I'm hoping
that you knowledgeable Samba experts will be able to save my life here.

Bob


-Original Message-
From: John Drescher [mailto:dresche...@gmail.com] 
Sent: Tuesday, December 28, 2010 8:16 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 10:12 PM, John Drescher dresche...@gmail.com
wrote:
 On Tue, Dec 28, 2010 at 5:25 PM, Hodges, Robert CTR USAF AFMC 520
 SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Excellent information, thank you.

 Unfortunately, none of it solved my problem.


 Do you have a valid NETBIOS domain or workstation name? I mean less
 than 16 characters and absolutely no . in the name.


Also make sure that nmbd is running on the linux box.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Everyone,

Both the Microsoft Network Monitor (sniffer) and Nbtstat -r shows that 
Windows XP is not acknowledging the broadcast packets from the Samba box, which 
keeps XP from being able to browse the server because no master browser is 
being recognized.  If the Computer Browser service was enabled in XP, 

Widows 2000, however, acknowledges them just fine, even with Comptuer Browser 
disabled, and all is well.

Any suggestions?  If you folks help me figure this out, you'll be heroes, 
because I have come across a lot of help requests all over the internet that go 
way back many years for this very same problem, few solutions, and none of them 
resulting in a solution that works for me.

Bob


-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com] 
Sent: Tuesday, December 28, 2010 3:48 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly





Excellent information, thank you.

Unfortunately, none of it solved my problem.


Start sniffing the machine as you do a Network Neighborhood search.  You 
might also check and see just where and how lookups are being done for NETBios 
from an XP box command terminal

nbtstat -r

which will tell you how lookups are being done.  Might lead you to a culprit.




I see a lot of The specified network name is no longer available 
error messages all over the internet from Linux users, and none of the very few 
solutions I have come across have worked for me.

Anybody else able to chime in and take a guess as why my XP box is 
having a problem talking to my Solaris/Samba box? Again, Win2K has no problems 
talking to the Samba box - it's just XP.

Refresh: This error happens when you try to browse using My Network 
Places in the desktop. Mapping works fine, access works fine. Browsing is what 
fails in XP. I need this to work or I'm looking at a huge and expensive 
documentation change effort that few would understand.

Still desperate for help on this. This problem happens with WinXP right 
out of the box, we have nothing weird installed.

Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:


Other details:  I do not use a DNS server, I use the hosts file 
in XP.



Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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



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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Brian,

Excellent response, thanks for giving me things to consider and check.

Yes, NetBIOS over TCPIP is enabled on XP.  Also, XP is set to use the Samba box 
as WINS server.

Using nbtstat -r and NetMon, I have discovered that WinXP is not 
acknowledging the broadcasts from the Samba box.  Windows 2000, on the other 
hand, recognizes them just fine, so I know the Samba box is configured 
correctly.  

If the Computer Browser service is enabled in XP, XP will elect itself as the 
master browser because it doesn't acknowledge the Samba box's server 
broadcasts.  But I can't have XP doing that, the Samba box MUST be seen as the 
master for my mission-critical needs.  Windows 2000 has no problems with this.

Bob




-Original Message-
From: Brian McGrew [mailto:br...@visionpro.com] 
Sent: Wednesday, December 29, 2010 8:24 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

Hi, Bob...

I remember having a problem similar to this a few years back on Solaris 8
where the WINS traffic was somehow being sent to the multicast network on
Solaris.

Have you configured XP to use the SMB Server as a WINS server under network
properties?

Do you have NetBios over TCP enabled on XP?

Have you sniffed the network with tcpdump or wireshark to see if you're
actually seeing the WINS traffic going across the wire?

This is a WINS problem, almost guaranteed, since you can map to the share,
but not see it in Network Places.

-b


On 12/29/10 5:56 AM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
robert.hodges@hill.af.mil wrote:

 Thanks for responding, Brian, it is greatly appreciated.
 
 To answer your questions:
 
 Samba 3.4.2 is running on Solaris 8.
 WINS support is enabled in Samba.
 We are using a simple workgroup, not a domain structure.
 One single XP workstation, one single Solaris/Samba server.
 We are not using DNS, we are using the hosts file in XP.
 
 Bob
 
 
 
 -Original Message-
 From: Brian McGrew [mailto:br...@visionpro.com]
 Sent: Tuesday, December 28, 2010 3:31 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 Hi, Robert!
 
 So, since I don't have the whole thread here, this question may be
 redundant, but are you running WINS?  Do you have a Windows DC or just a
 Samba DC?  What version of Samba and Solaris, on what hardware?  What is the
 network and DNS topology?
 
 -b
 
 
 On 12/28/10 2:25 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 robert.hodges@hill.af.mil wrote:
 
 Excellent information, thank you.
 
 Unfortunately, none of it solved my problem.
 
 I see a lot of The specified network name is no longer available error
 messages all over the internet from Linux users, and none of the very few
 solutions I have come across have worked for me.
 
 Anybody else able to chime in and take a guess as why my XP box is having a
 problem talking to my Solaris/Samba box?  Again, Win2K has no problems
 talking
 to the Samba box - it's just XP.
 
 Refresh:  This error happens when you try to browse using My Network Places
 in the desktop.  Mapping works fine, access works fine.  Browsing is what
 fails in XP.  I need this to work or I'm looking at a huge and expensive
 documentation change effort that few would understand.
 
 Still desperate for help on this.  This problem happens with WinXP right out
 of the box, we have nothing weird installed.
 
 Help!
 
 
 
 -Original Message-
 From: Chris Smith [mailto:smb...@chrissmith.org]
 Sent: Tuesday, December 28, 2010 12:45 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: John Drescher; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
 SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Other details:  I do not use a DNS server, I use the hosts file in XP.
 
 Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
 valid) scribblings here:
 http://realcomputerguy.com/networksetup.htm#hosts
 
 Chris
 -- 
 To unsubscribe from this list go to the following URL and read
 the
 instructions:  https://lists.samba.org/mailman/options/samba
 

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Chris Smith
On Wed, Dec 29, 2010 at 10:32 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 If the Computer Browser service is enabled in XP, XP will elect itself as the 
 master browser because it doesn't acknowledge the Samba box's server 
 broadcasts.

I think you need the Browser service enabled. Try some registry tweaks
and reboot:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\ -
IsDomainMaster FALSE
MaintainServerList Disabled

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Brian,

Thank you so much for your responses.  I've got more effort and info out of you 
than a week of Microsoft support.

To answer your questions:

1.  Firewall off (removed, actually).  No domain membership (workgroup only).

2.  No av/as/am software of any kind (not needed - closed, secure network)

3.  smb.conf:  Looks good on my end, however, OS LEVEL was set to 10.  Raising 
it to 65 did not fix the problem.


Bob





-Original Message-
From: Brian McGrew [mailto:br...@visionpro.com] 
Sent: Wednesday, December 29, 2010 9:10 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

Ah, OK...  So that begs a couple more questions...

1)  Is the XP firewall on or off???  When you join XP to a domain it makes
firewall exceptions for you.  If it's on, do you have the ability to turn it
off for an hour or two and see if XP picks up the SMB server?

2)  What are you running for AV/AS/AM software, anything???

3)  Do you have an OS LEVEL directive in your smb.conf file???  I'm thinking
your smb.conf file should look something like this:

[global]
netbios name = toltec
workgroup = METRAN
security = user
encrypt passwords = yes
wins support = yes

# The following three lines ensure that the Samba
# server will maintain the role of master browser.
# Make sure no other Samba server has its OS level
# set higher than it is here.

local master = yes
preferred master = yes
os level = 65

And you can find the whole Appendix here at
http://www.samba.org/samba/docs/using_samba/appa.html for more configuration
stuff.

-brian


On 12/29/10 7:32 AM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
robert.hodges@hill.af.mil wrote:

 Brian,
 
 Excellent response, thanks for giving me things to consider and check.
 
 Yes, NetBIOS over TCPIP is enabled on XP.  Also, XP is set to use the Samba
 box as WINS server.
 
 Using nbtstat -r and NetMon, I have discovered that WinXP is not
 acknowledging the broadcasts from the Samba box.  Windows 2000, on the other
 hand, recognizes them just fine, so I know the Samba box is configured
 correctly.  
 
 If the Computer Browser service is enabled in XP, XP will elect itself as the
 master browser because it doesn't acknowledge the Samba box's server
 broadcasts.  But I can't have XP doing that, the Samba box MUST be seen as the
 master for my mission-critical needs.  Windows 2000 has no problems with this.
 
 Bob
 
 
 
 
 -Original Message-
 From: Brian McGrew [mailto:br...@visionpro.com]
 Sent: Wednesday, December 29, 2010 8:24 AM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 Hi, Bob...
 
 I remember having a problem similar to this a few years back on Solaris 8
 where the WINS traffic was somehow being sent to the multicast network on
 Solaris.
 
 Have you configured XP to use the SMB Server as a WINS server under network
 properties?
 
 Do you have NetBios over TCP enabled on XP?
 
 Have you sniffed the network with tcpdump or wireshark to see if you're
 actually seeing the WINS traffic going across the wire?
 
 This is a WINS problem, almost guaranteed, since you can map to the share,
 but not see it in Network Places.
 
 -b
 
 
 On 12/29/10 5:56 AM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 robert.hodges@hill.af.mil wrote:
 
 Thanks for responding, Brian, it is greatly appreciated.
 
 To answer your questions:
 
 Samba 3.4.2 is running on Solaris 8.
 WINS support is enabled in Samba.
 We are using a simple workgroup, not a domain structure.
 One single XP workstation, one single Solaris/Samba server.
 We are not using DNS, we are using the hosts file in XP.
 
 Bob
 
 
 
 -Original Message-
 From: Brian McGrew [mailto:br...@visionpro.com]
 Sent: Tuesday, December 28, 2010 3:31 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 Hi, Robert!
 
 So, since I don't have the whole thread here, this question may be
 redundant, but are you running WINS?  Do you have a Windows DC or just a
 Samba DC?  What version of Samba and Solaris, on what hardware?  What is the
 network and DNS topology?
 
 -b
 
 
 On 12/28/10 2:25 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 robert.hodges@hill.af.mil wrote:
 
 Excellent information, thank you.
 
 Unfortunately, none of it solved my problem.
 
 I see a lot of The specified network name is no longer available error
 messages all over the internet from Linux users, and none of the very few
 solutions I have come across have worked for me.
 
 Anybody else able to chime in and take a guess as why my XP box is having a
 problem talking to my Solaris/Samba box?  Again, Win2K has no problems
 talking
 to the Samba box - it's just XP.
 
 Refresh:  This error happens when you try to browse using My Network
 Places
 in the desktop.  Mapping works fine

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread tms3









Everyone,

Both the Microsoft Network Monitor (sniffer) and Nbtstat -r shows 
that Windows XP is not acknowledging the broadcast packets from the 
Samba box,

Well, that's an interesting statement...

So, XP spouts a request to the WINS server, it responds and the packet 
is dropped?


Or is XP NOT sending a request at all???


which keeps XP from being able to browse the server because no master 
browser is being recognized.  If the Computer Browser service was 
enabled in XP,


Widows 2000, however, acknowledges them just fine, even with Comptuer 
Browser disabled, and all is well.


Any suggestions?  If you folks help me figure this out, you'll be 
heroes, because I have come across a lot of help requests all over the 
internet that go way back many years for this very same problem, few 
solutions, and none of them resulting in a solution that works for me.


Bob


-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com]
Sent: Tuesday, December 28, 2010 3:48 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
Properly






Excellent information, thank you.

Unfortunately, none of it solved my problem.


Start sniffing the machine as you do a Network Neighborhood search.  
You might also check and see just where and how lookups are being done 
for NETBios from an XP box command terminal


nbtstat -r

which will tell you how lookups are being done.  Might lead you to a 
culprit.





I see a lot of The specified network name is no longer available 
error messages all over the internet from Linux users, and none of the 
very few solutions I have come across have worked for me.


Anybody else able to chime in and take a guess as why my XP box is 
having a problem talking to my Solaris/Samba box? Again, Win2K has no 
problems talking to the Samba box - it's just XP.


Refresh: This error happens when you try to browse using My Network 
Places in the desktop. Mapping works fine, access works fine. 
Browsing is what fails in XP. I need this to work or I'm looking at a 
huge and expensive documentation change effort that few would 
understand.


Still desperate for help on this. This problem happens with WinXP 
right out of the box, we have nothing weird installed.


Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org]
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
Properly


On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:


Other details:  I do not use a DNS server, I use the hosts file in XP.



Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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



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


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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Chris, thanks for the reply and good idea.

The problem that browstat status (MS support tools for XP) reveals is that XP 
does see the Samba server as the master browser but is unable to pull down the 
browse list from Samba.

Anybody know how to fix the problem of XP not being able to get the browse list 
from Samba?

Bob



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Wednesday, December 29, 2010 9:31 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Brian McGrew; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Wed, Dec 29, 2010 at 10:32 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 If the Computer Browser service is enabled in XP, XP will elect itself as the 
 master browser because it doesn't acknowledge the Samba box's server 
 broadcasts.

I think you need the Browser service enabled. Try some registry tweaks
and reboot:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\ -
IsDomainMaster FALSE
MaintainServerList Disabled

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
TMS3,

Thanks for joining in, really appreciate it.

I'm trying to keep it all straight, I'm relatively new to Samba (but learning 
quickly).

What I now know:

1.  Sniffer on XP box reveals that XP does see the broadcasts from Samba. 

2.  The Microsoft support tool/command Browstat status shows that XP does 
recognize Samba as the server (if Computer Browser service disabled, otherwise 
XP may/may not elect itself as the master - unpredictable), but also shows that 
XP is unable to pull down the browse list form the Samba box.  

XP being unable to pull down the browse list form the Samba box is where things 
are broken.  Everything else looks good.

Any ideas on how to get that browse list from Samba to XP?

Bob



-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com] 
Sent: Wednesday, December 29, 2010 9:54 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly






Everyone,

Both the Microsoft Network Monitor (sniffer) and Nbtstat -r shows 
that Windows XP is not acknowledging the broadcast packets from the Samba box,

Well, that's an interesting statement...

So, XP spouts a request to the WINS server, it responds and the packet is 
dropped?

Or is XP NOT sending a request at all??? 


which keeps XP from being able to browse the server because no master 
browser is being recognized. If the Computer Browser service was enabled in 
XP, 

Widows 2000, however, acknowledges them just fine, even with Comptuer 
Browser disabled, and all is well.

Any suggestions? If you folks help me figure this out, you'll be 
heroes, because I have come across a lot of help requests all over the internet 
that go way back many years for this very same problem, few solutions, and none 
of them resulting in a solution that works for me.

Bob


-Original Message-
From: t...@tms3.com [mailto:t...@tms3.com] 
Sent: Tuesday, December 28, 2010 3:48 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Chris Smith; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly





Excellent information, thank you.

Unfortunately, none of it solved my problem.


Start sniffing the machine as you do a Network Neighborhood search. 
You might also check and see just where and how lookups are being done for 
NETBios from an XP box command terminal

nbtstat -r

which will tell you how lookups are being done. Might lead you to a 
culprit.




I see a lot of The specified network name is no longer available 
error messages all over the internet from Linux users, and none of the very few 
solutions I have come across have worked for me.

Anybody else able to chime in and take a guess as why my XP box is 
having a problem talking to my Solaris/Samba box? Again, Win2K has no problems 
talking to the Samba box - it's just XP.

Refresh: This error happens when you try to browse using My Network 
Places in the desktop. Mapping works fine, access works fine. Browsing is what 
fails in XP. I need this to work or I'm looking at a huge and expensive 
documentation change effort that few would understand.

Still desperate for help on this. This problem happens with WinXP right 
out of the box, we have nothing weird installed.

Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:


Other details: I do not use a DNS server, I use the hosts file in XP.



Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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



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



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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Jeremy Allison
On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF AFMC 520 
SMXS/MXDEC wrote:
 TMS3,
 
 Thanks for joining in, really appreciate it.
 
 I'm trying to keep it all straight, I'm relatively new to Samba (but learning 
 quickly).
 
 What I now know:
 
 1.  Sniffer on XP box reveals that XP does see the broadcasts from Samba. 
 
 2.  The Microsoft support tool/command Browstat status shows that XP does 
 recognize Samba as the server (if Computer Browser service disabled, 
 otherwise XP may/may not elect itself as the master - unpredictable), but 
 also shows that XP is unable to pull down the browse list form the Samba box. 
  

This is the key. Separate out the logs by incoming client name,
run smbd at debug level 10 and then look in the log.xp client name
to see if it's trying to fetch the browse list, and if so why
it goes wrong.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Chris,

Good suggestion, I tried it.

The registry change and enabling the browser service produced the same results 
as before, same error (The specified network name is no longer available.).

However, it did allow Windows XP to force itself to use the Samba server as the 
master browser without having to disable the Computer Browser service, which is 
what I had been doing.  So that was nice.

Any other suggestions?

Bob




-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Wednesday, December 29, 2010 9:31 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: Brian McGrew; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Wed, Dec 29, 2010 at 10:32 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 If the Computer Browser service is enabled in XP, XP will elect itself as the 
 master browser because it doesn't acknowledge the Samba box's server 
 broadcasts.

I think you need the Browser service enabled. Try some registry tweaks
and reboot:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\ -
IsDomainMaster FALSE
MaintainServerList Disabled

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Brian,

Unfortunately, I'm not able to upgrade, it's a locked system at this
point.  Since it works great with a Windows 2000 client, one would think
it would also work find with XP.  

Still at the drawing board...

Bob


-Original Message-
From: Brian McGrew [mailto:br...@visionpro.com] 
Sent: Wednesday, December 29, 2010 10:31 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

Bob,

Do you have the ability or means to upgrade Samba to version 3.5.6 on
your
Solaris machine???  It looks like there are a few, but considerable
changes
in the way packet formulation is done in this version.

I should qualify that and say that I am not on the samba dev team; but I
do
my share of software engineering and development and am no stranger to
building samba (or complete operating systems) from source.

-brian


On 12/29/10 9:22 AM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
robert.hodges@hill.af.mil wrote:

 TMS3,
 
 Thanks for joining in, really appreciate it.
 
 I'm trying to keep it all straight, I'm relatively new to Samba (but
learning
 quickly).
 
 What I now know:
 
 1.  Sniffer on XP box reveals that XP does see the broadcasts from
Samba.
 
 2.  The Microsoft support tool/command Browstat status shows that XP
does
 recognize Samba as the server (if Computer Browser service disabled,
otherwise
 XP may/may not elect itself as the master - unpredictable), but also
shows
 that XP is unable to pull down the browse list form the Samba box.
 
 XP being unable to pull down the browse list form the Samba box is
where
 things are broken.  Everything else looks good.
 
 Any ideas on how to get that browse list from Samba to XP?
 
 Bob
 
 
 
 -Original Message-
 From: t...@tms3.com [mailto:t...@tms3.com]
 Sent: Wednesday, December 29, 2010 9:54 AM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba
Properly
 
 
 
 
 
 
 Everyone,
 
 Both the Microsoft Network Monitor (sniffer) and Nbtstat -r shows
that
 Windows XP is not acknowledging the broadcast packets from the Samba
box,
 
 Well, that's an interesting statement...
 
 So, XP spouts a request to the WINS server, it responds and the packet
is
 dropped?
 
 Or is XP NOT sending a request at all???
 
 
 which keeps XP from being able to browse the server because no master
browser
 is being recognized. If the Computer Browser service was enabled in
XP,
 
 Widows 2000, however, acknowledges them just fine, even with Comptuer
Browser
 disabled, and all is well.
 
 Any suggestions? If you folks help me figure this out, you'll be
heroes,
 because I have come across a lot of help requests all over the
internet that
 go way back many years for this very same problem, few solutions, and
none of
 them resulting in a solution that works for me.
 
 Bob
 
 
 -Original Message-
 From: t...@tms3.com [mailto:t...@tms3.com]
 Sent: Tuesday, December 28, 2010 3:48 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: Chris Smith; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba
Properly
 
 
 
 
 
 Excellent information, thank you.
 
 Unfortunately, none of it solved my problem.
 
 
 Start sniffing the machine as you do a Network Neighborhood search.
You
 might also check and see just where and how lookups are being done for
NETBios
 from an XP box command terminal
 
 nbtstat -r
 
 which will tell you how lookups are being done. Might lead you to a
culprit.
 
 
 
 
 I see a lot of The specified network name is no longer available
error
 messages all over the internet from Linux users, and none of the very
few
 solutions I have come across have worked for me.
 
 Anybody else able to chime in and take a guess as why my XP box is
having a
 problem talking to my Solaris/Samba box? Again, Win2K has no problems
talking
 to the Samba box - it's just XP.
 
 Refresh: This error happens when you try to browse using My Network
Places
 in the desktop. Mapping works fine, access works fine. Browsing is
what fails
 in XP. I need this to work or I'm looking at a huge and expensive
 documentation change effort that few would understand.
 
 Still desperate for help on this. This problem happens with WinXP
right out of
 the box, we have nothing weird installed.
 
 Help!
 
 
 
 -Original Message-
 From: Chris Smith [mailto:smb...@chrissmith.org]
 Sent: Tuesday, December 28, 2010 12:45 PM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: John Drescher; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba
Properly
 
 On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
 SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 
 
 Other details: I do not use a DNS server, I use the hosts file in XP.
 
 
 
 Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
 valid) scribblings here:
 http://realcomputerguy.com

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Jeremy,

This makes sense, I'll try it.  Excellent idea.

I'm new to Samba, so how do I get it to run in debug mode and do the
logging option you mentioned?

Sorry to sound so juvenile, my experience with Samba is in reverse -
getting Linux boxes to use Windows servers.

Bob



-Original Message-
From: Jeremy Allison [mailto:j...@samba.org] 
Sent: Wednesday, December 29, 2010 10:33 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: t...@tms3.com; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF AFMC
520 SMXS/MXDEC wrote:
 TMS3,
 
 Thanks for joining in, really appreciate it.
 
 I'm trying to keep it all straight, I'm relatively new to Samba (but
learning quickly).
 
 What I now know:
 
 1.  Sniffer on XP box reveals that XP does see the broadcasts from
Samba. 
 
 2.  The Microsoft support tool/command Browstat status shows that XP
does recognize Samba as the server (if Computer Browser service
disabled, otherwise XP may/may not elect itself as the master -
unpredictable), but also shows that XP is unable to pull down the browse
list form the Samba box.  

This is the key. Separate out the logs by incoming client name,
run smbd at debug level 10 and then look in the log.xp client name
to see if it's trying to fetch the browse list, and if so why
it goes wrong.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread tms3






Jeremy,

This makes sense, I'll try it.  Excellent idea.

I'm new to Samba, so how do I get it to run in debug mode and do the
logging option you mentioned?


log level = 10 in smb.conf.

Covered in the man page.  man smb.conf




Sorry to sound so juvenile, my experience with Samba is in reverse -
getting Linux boxes to use Windows servers.

Bob



-Original Message-
From: Jeremy Allison [mailto:j...@samba.org]
Sent: Wednesday, December 29, 2010 10:33 AM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: t...@tms3.com; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
Properly


On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF AFMC
520 SMXS/MXDEC wrote:


TMS3,

Thanks for joining in, really appreciate it.

I'm trying to keep it all straight, I'm relatively new to Samba (but

learning quickly).



What I now know:

1.  Sniffer on XP box reveals that XP does see the broadcasts from

Samba.



2.  The Microsoft support tool/command Browstat status shows that XP

does recognize Samba as the server (if Computer Browser service
disabled, otherwise XP may/may not elect itself as the master -
unpredictable), but also shows that XP is unable to pull down the 
browse

list form the Samba box.

This is the key. Separate out the logs by incoming client name,
run smbd at debug level 10 and then look in the log.xp client name
to see if it's trying to fetch the browse list, and if so why
it goes wrong.

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


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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You can set the logs to level 10 using the params in the manual for
smb.conf. Also a neat trick, though, is to include the config file
smb.conf.%m, which may or may not exist for all machine names, and
include the debug parameter in there. This allows you to add the log
level 10 for only the client(s) you want so as not to waste disk space
on a busy machine.

=R

On 12/29/2010 01:10 PM, Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC wrote:
 Jeremy,
 
 This makes sense, I'll try it.  Excellent idea.
 
 I'm new to Samba, so how do I get it to run in debug mode and do the
 logging option you mentioned?
 
 Sorry to sound so juvenile, my experience with Samba is in reverse -
 getting Linux boxes to use Windows servers.
 
 Bob
 
 
 
 -Original Message-
 From: Jeremy Allison [mailto:j...@samba.org] 
 Sent: Wednesday, December 29, 2010 10:33 AM
 To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
 Cc: t...@tms3.com; samba@lists.samba.org
 Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly
 
 On Wed, Dec 29, 2010 at 10:22:46AM -0700, Hodges, Robert CTR USAF AFMC
 520 SMXS/MXDEC wrote:
 TMS3,

 Thanks for joining in, really appreciate it.

 I'm trying to keep it all straight, I'm relatively new to Samba (but
 learning quickly).

 What I now know:

 1.  Sniffer on XP box reveals that XP does see the broadcasts from
 Samba. 

 2.  The Microsoft support tool/command Browstat status shows that XP
 does recognize Samba as the server (if Computer Browser service
 disabled, otherwise XP may/may not elect itself as the master -
 unpredictable), but also shows that XP is unable to pull down the browse
 list form the Samba box.  
 
 This is the key. Separate out the logs by incoming client name,
 run smbd at debug level 10 and then look in the log.xp client name
 to see if it's trying to fetch the browse list, and if so why
 it goes wrong.
 
 Jeremy.


- -- 
-  _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0bfugACgkQmb+gadEcsb4/HACgzwiBka0Ucbwrx2UrRauqTZiv
vUYAoNxyEB1naNX2rCoHvbKsfq5E8TnQ
=d+3G
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Chris Smith
On Wed, Dec 29, 2010 at 1:07 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 The registry change and enabling the browser service produced the same 
 results as before, same error (The specified network name is no longer 
 available.).

 However, it did allow Windows XP to force itself to use the Samba server as 
 the master browser without having to disable the Computer Browser service, 
 which is what I had been doing.  So that was nice.

 Any other suggestions?

If you have a WINS server that the system is registering with you
shouldn't need an lmhosts file - although as long as they don't
contradict you would be fine. FYI, possibly the absolute dumbest UI
decision ever was Microsoft's one to hide file extensions for known
file types. Many users think they have a perfectly fine lmhosts file
when they have a useless lmhosts.sam or lmhosts.txt file instead.

You can examine the wins.dat file on the WINS server host to determine
if the XP system is registering itself.

Outside possibility - NetBIOS Scope - which allows for some
(il)logical type of NetBIOS subnetting. It possible that the XP
system has been setup to respond to a particular NetBIOS scope ID
(although I haven't seen such a setup in use for eons). I do admit to
always adding an - option netbios-scope ; - to my dhcpd server to
eliminate this tattoo from the registry. You can also manually check
it at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\ScopeID
If there's any value there delete it (unless you're using a Scope ID,
then make it match).

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Chris Smith
On Wed, Dec 29, 2010 at 9:15 AM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Yes, machine names are standard text, no special characters with the
 exception of the Samba box, which has an underscore in the name.

Just a reminder that underscores are not allowed in DNS hostnames.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-29 Thread Chris Smith
On Wed, Dec 29, 2010 at 6:09 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 This is interesting, since we've had this working since the beginning (using 
 hosts files anyway).

 Works great with Win2K and Samba:  Servername_Number

When you break the rules they will eventually break you :)

Microsoft was late to the TCP/IP party so it's possible some things
fell through the cracks. Any reasonable Google search will have you
removing underscores in your hostnames.

See:
http://technet.microsoft.com/en-us/library/cc778792%28WS.10%29.aspx
And this:
http://technet.microsoft.com/en-us/library/cc959209.aspx
which cautions:
Do Not Use Extended Characters
Do not use extended characters in NetBIOS names, especially the
underscore ( _ ) and the period ( . ). The underscore character is
converted to a dash in DNS host names. For example, NTServer_1 becomes
NTServer-1, leading to failure of name resolution of a name that may,
in fact, be recorded in the DNS files.

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
My apologies, it's Samba 3.4.2 that I'm running on Solaris.



-Original Message-
From: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC 
Sent: Tuesday, December 28, 2010 11:39 AM
To: 'samba@lists.samba.org'
Subject: Need Help Getting Windows XP To Use Samba Properly

Hi everyone, new to the list.
 
My apologies if this issue has already been covered, but I am having the
following problem with Samba:
 
Using Windows XP as a client, I am trying to see a Solaris system as a
server.  Solaris is running Samba 2.4.2, and Windows 2000 sees it as a
server without any problems.
 
Windows XP, however, generates the error The network name is no longer
available when trying to browse to shares on the Solaris box.  Browsing
is what produces the error - otherwise, I can map to and access
resources directly with \\servername\share.
 
Running the command browstat status on the WinXP box shows that the
Windows machine is not able to pull the server list from the Solaris
box.  Again, Windows 2000, however, works fine and does not have this
problem.
 
Desperate for help to get this resolved.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Hi everyone, new to the list.
 
My apologies if this issue has already been covered, but I am having the
following problem with Samba:
 
Using Windows XP as a client, I am trying to see a Solaris system as a
server.  Solaris is running Samba 2.4.2, and Windows 2000 sees it as a
server without any problems.
 
Windows XP, however, generates the error The network name is no longer
available when trying to browse to shares on the Solaris box.  Browsing
is what produces the error - otherwise, I can map to and access
resources directly with \\servername\share.
 
Running the command browstat status on the WinXP box shows that the
Windows machine is not able to pull the server list from the Solaris
box.  Again, Windows 2000, however, works fine and does not have this
problem.
 
Desperate for help to get this resolved.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread John Drescher
On Tue, Dec 28, 2010 at 1:39 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Hi everyone, new to the list.

 My apologies if this issue has already been covered, but I am having the
 following problem with Samba:

 Using Windows XP as a client, I am trying to see a Solaris system as a
 server.  Solaris is running Samba 2.4.2, and Windows 2000 sees it as a
 server without any problems.

 Windows XP, however, generates the error The network name is no longer
 available when trying to browse to shares on the Solaris box.  Browsing
 is what produces the error - otherwise, I can map to and access
 resources directly with \\servername\share.

 Running the command browstat status on the WinXP box shows that the
 Windows machine is not able to pull the server list from the Solaris
 box.  Again, Windows 2000, however, works fine and does not have this
 problem.

 Desperate for help to get this resolved.

Did you enable WINS on the samba server and set that up on the XP box?
Usually that fixes a lot of windows browsing problems.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
John,

First, thank you for the response.  I'll take any help I can get.

Yes, I do have WINS enabled on the Samba box.

Do I set WinXP to use the Samba box as the WINS server?  If so, then I have 
already tried this and it didn't work.

Other details:  I do not use a DNS server, I use the hosts file in XP.  The 
Samba box and the WinXP box simply share a worgroup name.  Trying to keep this 
as simplistic as possible.  

Also, the Computer Browser service is disabled in XP - this is to force WinXP 
to use the Samba server as the master browser, and is the method I used in 
Win2K which worked great.  In XP, however, it produces the error Network name 
is no longer available.  Enabling the service causes XP to elect itself as the 
master browser and ignore the Samba box (which I want to be master browser like 
it was with Win2K).  This improves things SOMETIMES - the Network name error 
still pops up half the time, meaning network browsing of the Samba box from XP 
went from 100% broken to Cross your fingers.

REALLY desperate to get this working.

MAJOR thanks to anyone who can help me with this, especially since the internet 
is loaded with people who have posted for help on this problem and no solutions 
follow.





-Original Message-
From: John Drescher [mailto:dresche...@gmail.com] 
Sent: Tuesday, December 28, 2010 12:01 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 1:39 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Hi everyone, new to the list.

 My apologies if this issue has already been covered, but I am having the
 following problem with Samba:

 Using Windows XP as a client, I am trying to see a Solaris system as a
 server.  Solaris is running Samba 2.4.2, and Windows 2000 sees it as a
 server without any problems.

 Windows XP, however, generates the error The network name is no longer
 available when trying to browse to shares on the Solaris box.  Browsing
 is what produces the error - otherwise, I can map to and access
 resources directly with \\servername\share.

 Running the command browstat status on the WinXP box shows that the
 Windows machine is not able to pull the server list from the Solaris
 box.  Again, Windows 2000, however, works fine and does not have this
 problem.

 Desperate for help to get this resolved.

Did you enable WINS on the samba server and set that up on the XP box?
Usually that fixes a lot of windows browsing problems.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread Chris Smith
On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Other details:  I do not use a DNS server, I use the hosts file in XP.

Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Excellent information, thank you.

Unfortunately, none of it solved my problem.

I see a lot of The specified network name is no longer available error 
messages all over the internet from Linux users, and none of the very few 
solutions I have come across have worked for me.

Anybody else able to chime in and take a guess as why my XP box is having a 
problem talking to my Solaris/Samba box?  Again, Win2K has no problems talking 
to the Samba box - it's just XP.

Refresh:  This error happens when you try to browse using My Network Places 
in the desktop.  Mapping works fine, access works fine.  Browsing is what fails 
in XP.  I need this to work or I'm looking at a huge and expensive 
documentation change effort that few would understand.

Still desperate for help on this.  This problem happens with WinXP right out of 
the box, we have nothing weird installed.

Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org] 
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Other details:  I do not use a DNS server, I use the hosts file in XP.

Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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

Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread tms3







Excellent information, thank you.

Unfortunately, none of it solved my problem.


Start sniffing the machine as you do a Network Neighborhood search.  
You might also check and see just where and how lookups are being done 
for NETBios from an XP box command terminal


nbtstat -r

which will tell you how lookups are being done.  Might lead you to a 
culprit.




I see a lot of The specified network name is no longer available 
error messages all over the internet from Linux users, and none of the 
very few solutions I have come across have worked for me.


Anybody else able to chime in and take a guess as why my XP box is 
having a problem talking to my Solaris/Samba box?  Again, Win2K has no 
problems talking to the Samba box - it's just XP.


Refresh:  This error happens when you try to browse using My Network 
Places in the desktop.  Mapping works fine, access works fine.  
Browsing is what fails in XP.  I need this to work or I'm looking at a 
huge and expensive documentation change effort that few would 
understand.


Still desperate for help on this.  This problem happens with WinXP 
right out of the box, we have nothing weird installed.


Help!



-Original Message-
From: Chris Smith [mailto:smb...@chrissmith.org]
Sent: Tuesday, December 28, 2010 12:45 PM
To: Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
Cc: John Drescher; samba@lists.samba.org
Subject: Re: [Samba] Need Help Getting Windows XP To Use Samba 
Properly


On Tue, Dec 28, 2010 at 2:23 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:


Other details:  I do not use a DNS server, I use the hosts file in XP.


Yes, but NetBIOS desires the lmhosts file. See my ancient (but still
valid) scribblings here:
http://realcomputerguy.com/networksetup.htm#hosts

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


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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread TAKAHASHI Motonobu
2010/12/29 Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC
robert.hodges@hill.af.mil:
 Refresh:  This error happens when you try to browse using My Network Places 
 in the desktop.  Mapping works fine, access works fine.  Browsing is what 
 fails in XP.  I need this to work or I'm looking at a huge and expensive 
 documentation change effort that few would understand.

Windows XP should work well as a browsing client.

Most of problems around browsing are recently cause by firewall or
anti-virus functions.

Do you disable your firewall or anti-virus which blocks incoming UDP
traffic (137/udp and
138/udp)?

Or using sniffer as tms3 said below.

2010/12/29  t...@tms3.com:
 Start sniffing the machine as you do a Network Neighborhood search.  You
 might also check and see just where and how lookups are being done for
 NETBios from an XP box command terminal

 nbtstat -r

 which will tell you how lookups are being done.  Might lead you to a
 culprit.

---
TAKAHASHI Motonobu mo...@samba.gr.jp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread John Drescher
On Tue, Dec 28, 2010 at 5:25 PM, Hodges, Robert CTR USAF AFMC 520
SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Excellent information, thank you.

 Unfortunately, none of it solved my problem.


Do you have a valid NETBIOS domain or workstation name? I mean less
than 16 characters and absolutely no . in the name.

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


Re: [Samba] Need Help Getting Windows XP To Use Samba Properly

2010-12-28 Thread John Drescher
On Tue, Dec 28, 2010 at 10:12 PM, John Drescher dresche...@gmail.com wrote:
 On Tue, Dec 28, 2010 at 5:25 PM, Hodges, Robert CTR USAF AFMC 520
 SMXS/MXDEC robert.hodges@hill.af.mil wrote:
 Excellent information, thank you.

 Unfortunately, none of it solved my problem.


 Do you have a valid NETBIOS domain or workstation name? I mean less
 than 16 characters and absolutely no . in the name.


Also make sure that nmbd is running on the linux box.

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


Re: [Samba] Need help changing user password

2010-11-19 Thread Michael Wood
Hi Mark

On 18 November 2010 18:20, Mark Sheppard m...@ams.org wrote:
 Michael:

 I have checked for both net setpassword and samba-tool in Samba4 Alpha13 but
 they are not there. Maybe I can

The net command is definitely part of Samba 4 Alpha 13.  net was
renamed to samba-tool some time after Alpha 13.

Assuming you installed Samba to the default /usr/local/samba, it will
be in /usr/local/samba/bin.

 download samba-tool which will still work? When I try
 doing a net setpassword it brings up the help menu
 without this item listed. These are the only items
 that are listed which are similar:
  net getlocalsid [NAME]        to get the SID for local machine name
[...]

That looks like the net command from Samba 3.  You likely have that
installed on the machine and it's in the PATH before
/usr/local/samba/bin (or /usr/local/samba/bin is not in your PATH at
all.)

You should remove Samba 3's net command (which, for Debian/Ubuntu is
in the samba-common package) unless you know you need it.  Also make
sure /usr/local/samba/bin is in your PATH, or specify the full path to
the net command like:

/usr/local/samba/bin/net setpassword username

Otherwise, do as Daniel suggested and set the password from a Windows
machine using the Active Directory Users and Computers tool.  See
the Samba 4 HOWTO page for where to get these tools for Windows.

 Thanks for the support and I will keep checking to see if I can obtain
 samba-tool.

 Mark Sheppard

 Try: net setpassword --help

 (or samba-tool for later versions of Samba4).

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help changing user password

2010-11-18 Thread Mark Sheppard

Michael:

I have checked for both net setpassword and samba-tool 
in Samba4 Alpha13 but they are not there. Maybe I can

download samba-tool which will still work? When I try
doing a net setpassword it brings up the help menu
without this item listed. These are the only items
that are listed which are similar:
  net getlocalsid [NAME]to get the SID for local machine name
  net setlocalsid SID   to set the local machine SID
  net getdomainsid the machine SID and the domain SID on the local server
  net setdomainsid SID  to set the domain SID on member servers
  net changesecretpwto change the machine password in the local secrets 
database only
this requires the -f flag as a safety barrier
Thanks for the support and I will keep checking to see 
if I can obtain samba-tool.


Mark Sheppard

Try: net setpassword --help

(or samba-tool for later versions of Samba4).

--
Michael Wood esiot...@gmail.com

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


[Samba] Need help changing user password

2010-11-17 Thread Mark Sheppard

Hi!
I am currently using Samba4 Alpha13 but I have not been
able to change a users password. I curently can add a
user using ldbadd and a ldif file but I would like to
know the recommended way of changing a users password.
It would be nice if it could be done from the 
adminstrator account so that you do not need to know

the original password. Thanks for the help!

MS


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


Re: [Samba] Need help changing user password

2010-11-17 Thread Daniel Müller
Hi!
Realy simple:

LOgin as administrator to your windows client.
Use the tool Active Directory Users and Groups
within windows.
If you do not have it. Install it from the Microsoft page.

Be aware:

Of Password Policy Settings!!

Along with Samba4 the Password Policy you can only set from console, with 
'net  pwsettings ' command.
net  pwsettings  –help:

usage: (show | set options)

options:
  -h, --helpshow this help message and exit
  -H H  LDB URL for database or target server
  --quiet   Be quiet
  --complexity=COMPLEXITY
The password complexity (on | off | default).
Default
is 'on'
  --history-length=HISTORY_LENGTH
The password history length (integer | default).
Default is 24.
  --min-pwd-length=MIN_PWD_LENGTH
The minimum password length (integer | default).
Default is 7.
  --min-pwd-age=MIN_PWD_AGE
The minimum password age (integer in days |
default).  Default is 1.
  --max-pwd-age=MAX_PWD_AGE
The maximum password age (integer in days |
default).  Default is 43.

  Samba Common Options:
-s FILE, --configfile=FILE
Configuration file
-d DEBUGLEVEL, --debuglevel=DEBUGLEVEL
debug level
--option=OPTION set smb.conf option from command line
--realm=REALM   set the realm name

  Credentials Options:
--simple-bind-dn=DN
DN to use for a simple bind
--password=PASSWORD
Password
-U USERNAME, --username=USERNAME
Username
-W WORKGROUP, --workgroup=WORKGROUP
Workgroup
-N, --no-pass   Don't ask for a password
-k KERBEROS, --kerberos=KERBEROS
Use Kerberos

  Version Options:
--version   Display version number

So I set my Password Policy:

net  pwsettings  set –--complexity=off
net  pwsettings  set ---max-pwd-age=60 #---60 Days
net  pwsettings  set –min-pwd-length=5

net  pwsettings  show:

[r...@node1 ~]# net pwsettings show
Password informations for domain 'DC=tuebingen,DC=tst,DC=loc'

Password complexity: off
Password history length: 24
Minimum password length: 5
Minimum password age (days): 1



---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Mark Sheppard
Gesendet: Mittwoch, 17. November 2010 19:24
An: samba@lists.samba.org
Betreff: [Samba] Need help changing user password

Hi!
I am currently using Samba4 Alpha13 but I have not been
able to change a users password. I curently can add a
user using ldbadd and a ldif file but I would like to
know the recommended way of changing a users password.
It would be nice if it could be done from the 
adminstrator account so that you do not need to know
the original password. Thanks for the help!

MS


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

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


Re: [Samba] Need help changing user password

2010-11-17 Thread Michael Wood
On 17 November 2010 20:23, Mark Sheppard m...@ams.org wrote:
 Hi!
 I am currently using Samba4 Alpha13 but I have not been
 able to change a users password. I curently can add a
 user using ldbadd and a ldif file but I would like to
 know the recommended way of changing a users password.
 It would be nice if it could be done from the adminstrator account so that
 you do not need to know
 the original password. Thanks for the help!

Try: net setpassword --help

(or samba-tool for later versions of Samba4).

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Need Help In Installing Samba 4

2010-10-06 Thread hemanth kumar
Respected Sir,

We are trying to setup SAMBA4 with RHEL5 or FEDORA 13.

We followed the steps given in *http://wiki.samba.org/index.php/Samba4/HOWTO
*

in RHEL 5 ,we are not able install the pakage as its asking lots of other
pakages even its already available.

In Fedora 13 ,Installation was successful.But we struck in DNS
configuration.DO we really need to setup DNS to run SAMBA 4 ?

If u have any step by step procedure to follow,Can u please help us by
providing that.




thanks in advance

Hemanth Kumar.
Systems Engineer
IENL
India.


-- 
KEEP SMILING
KEEP MAILING
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help compiling Samba on Solaris

2010-10-05 Thread Stroh, George
I got it to compile and run. I joined it to the domain and what the
wbinfo and net ads commands returned looked correct. I was not able to
map a drive to it. Computer management in windows says that nothing is
shared and when I browsed for the server it showed up under Other and
not the domain. 

I was not aware that nsswitch might need to be compiled also. Is there
documentation that says for samba x.x.x you need openldap x.x.x or
Kerberos x.x.x? I haven't seen anything on samba.org or in the source
code. I the Solaris samba source code I found the configure options they
used.

On samba 3.0.37 we have the windows 2003 domain controller listed as the
password server in the smb.conf and as the kdc in the krb5.conf files.
The windows 2008 domain controller doesn't like samba. Set the Network
Security: LAN Manager authentication level to LM and NTLM - use NTLMV2
session security if negotiated
http://yonitg.com/solution-for-windows-7-samba-connection-problem

I need to build a newer version because the windows admin wants to
replace the windows 2003 dc with a windows 2008 dc.



-Original Message-
From: Gaiseric Vandal [mailto:gaiseric.van...@gmail.com] 
Sent: Monday, October 04, 2010 17:02
To: samba@lists.samba.org
Subject: Re: [Samba] Need help compiling Samba on Solaris

Sort of compiled?  Does that mean some options didn't compile?

I was able to compile samba 3.4.x. (as you point out, it requires 
tinkering with the CPPFLAGS etc.)The latest OpenLDAP from 
sunfreeware should be fine (plus its dependencies, which are listed.)   
Presumably you are using GCC from Sunfreeware?  The Solaris kerberos 
should be fine.

nsswitch source is in a separate directory

.../samba-3.4.8/nsswitch not .../samba-3.4.8/source3

you may need to compile separately.

I see your other post.   3.0.37 generally worked for me except for 
interdomain trusts.  I know it wouldn't work with Windows 7 but that 
wasn't an issue for me at the time.

(Again, I repeat complain about Sun abandoning samba and not moving 
before 3.0.x-  which is will be useless one you need to support Windows
7.)




On 10/04/2010 04:59 PM, Stroh, George wrote:
 I had limited success compiling 3.4.8 and 3.5.4 on Solaris 10 8/07
x86.
 I downloaded the source code from Samba.org and the dependencies from
 sunfreeware.com. After some googling and trial and error with the
 LDDFLAGS, CPPFLAGS and such, it sort of compiled. I need to know how
to
 properly set things up. How can I find out what version of
dependencies
 you need for a particular samba version?





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


Re: [Samba] Need help compiling Samba on Solaris

2010-10-05 Thread Gaiseric Vandal
Documentation on samba.org is a little iffy -  stuff involving domain 
trusts and idmap has really been thin.   I had to rely on google 
searches to find info on changes for idmap between 3.0.x and 3.4.x


Are you using  a WINS server?   Active Directory does not require one-  
and I suspect Samba 3 as a ADS domain member might not either, but may 
help fix browsing issue.   Did you specify the workgroup in smb.conf?  
That may also help.


Was a computer account created in AD for your samba machine?

A google search at some point found a solaris or opensolaris forum blurb 
about ldap.  Sun's samba build using Sun LDAP client with some work 
arounds.Otherwise openldap is the default.  When you run configure, 
it will say which ldap features are supported.   Effectively, if you 
want AD support you need openldap.



I think Win 2008 R2 may increase security levels compared to Win 
2008.I think it is safe to assume samba 3.0.x is not Win 2008 R2 
compatible.






On 10/05/2010 10:46 AM, Stroh, George wrote:

I got it to compile and run. I joined it to the domain and what the
wbinfo and net ads commands returned looked correct. I was not able to
map a drive to it. Computer management in windows says that nothing is
shared and when I browsed for the server it showed up under Other and
not the domain.

I was not aware that nsswitch might need to be compiled also. Is there
documentation that says for samba x.x.x you need openldap x.x.x or
Kerberos x.x.x? I haven't seen anything on samba.org or in the source
code. I the Solaris samba source code I found the configure options they
used.

On samba 3.0.37 we have the windows 2003 domain controller listed as the
password server in the smb.conf and as the kdc in the krb5.conf files.
The windows 2008 domain controller doesn't like samba. Set the Network
Security: LAN Manager authentication level to LM and NTLM - use NTLMV2
session security if negotiated
http://yonitg.com/solution-for-windows-7-samba-connection-problem

I need to build a newer version because the windows admin wants to
replace the windows 2003 dc with a windows 2008 dc.



-Original Message-
From: Gaiseric Vandal [mailto:gaiseric.van...@gmail.com]
Sent: Monday, October 04, 2010 17:02
To: samba@lists.samba.org
Subject: Re: [Samba] Need help compiling Samba on Solaris

Sort of compiled?  Does that mean some options didn't compile?

I was able to compile samba 3.4.x. (as you point out, it requires
tinkering with the CPPFLAGS etc.)The latest OpenLDAP from
sunfreeware should be fine (plus its dependencies, which are listed.)
Presumably you are using GCC from Sunfreeware?  The Solaris kerberos
should be fine.

nsswitch source is in a separate directory

.../samba-3.4.8/nsswitch not .../samba-3.4.8/source3

you may need to compile separately.

I see your other post.   3.0.37 generally worked for me except for
interdomain trusts.  I know it wouldn't work with Windows 7 but that
wasn't an issue for me at the time.

(Again, I repeat complain about Sun abandoning samba and not moving
before 3.0.x-  which is will be useless one you need to support Windows
7.)




On 10/04/2010 04:59 PM, Stroh, George wrote:
   

I had limited success compiling 3.4.8 and 3.5.4 on Solaris 10 8/07
 

x86.
   

I downloaded the source code from Samba.org and the dependencies from
sunfreeware.com. After some googling and trial and error with the
LDDFLAGS, CPPFLAGS and such, it sort of compiled. I need to know how
 

to
   

properly set things up. How can I find out what version of
 

dependencies
   

you need for a particular samba version?



 


   


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


[Samba] Need help compiling Samba on Solaris

2010-10-04 Thread Stroh, George
I had limited success compiling 3.4.8 and 3.5.4 on Solaris 10 8/07 x86.
I downloaded the source code from Samba.org and the dependencies from
sunfreeware.com. After some googling and trial and error with the
LDDFLAGS, CPPFLAGS and such, it sort of compiled. I need to know how to
properly set things up. How can I find out what version of dependencies
you need for a particular samba version?


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


Re: [Samba] Need help compiling Samba on Solaris

2010-10-04 Thread Gaiseric Vandal

Sort of compiled?  Does that mean some options didn't compile?

I was able to compile samba 3.4.x. (as you point out, it requires 
tinkering with the CPPFLAGS etc.)The latest OpenLDAP from 
sunfreeware should be fine (plus its dependencies, which are listed.)   
Presumably you are using GCC from Sunfreeware?  The Solaris kerberos 
should be fine.


nsswitch source is in a separate directory

.../samba-3.4.8/nsswitch not .../samba-3.4.8/source3

you may need to compile separately.

I see your other post.   3.0.37 generally worked for me except for 
interdomain trusts.  I know it wouldn't work with Windows 7 but that 
wasn't an issue for me at the time.


(Again, I repeat complain about Sun abandoning samba and not moving 
before 3.0.x-  which is will be useless one you need to support Windows 7.)





On 10/04/2010 04:59 PM, Stroh, George wrote:

I had limited success compiling 3.4.8 and 3.5.4 on Solaris 10 8/07 x86.
I downloaded the source code from Samba.org and the dependencies from
sunfreeware.com. After some googling and trial and error with the
LDDFLAGS, CPPFLAGS and such, it sort of compiled. I need to know how to
properly set things up. How can I find out what version of dependencies
you need for a particular samba version?


   


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


[Samba] NEED HELP WINBIND

2010-01-24 Thread Claudio Guzman
The problem I have is I can not enter the EXAMPLE domain with winbind
winbind-u-g, I can see all domain users.

You have the problem that I can not create home /% u

My Samba architecture is

SRV1: PDC-LDAP-SAMBA
SRV2: SAMBA-winbind and that is what I use for the shares
DOMAIN: EXAMPLE
so far the users can enter, but complain that there are problems with
permissions on some folders


# Global settings
[global]
display charset = LOCALE
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
idmap gid = 1000-33554431
passwd program = /usr/bin/passwd %u
netbios name = srvsamba
idmap uid = 1000-33554431
dos charset = CP850
local master = no
workgroup = EXAMPLE
debug level = 9
os level = 0
security = domain
log file = /var/log/samba/%m.log
guest account = nobody
smb passwd file = /etc/samba/smbpasswd
load printers = no
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins server = 192.168.1.252
map to guest = Bad User
domain master = no
encrypt passwords = yes
realm =
template shell = /bin/false
server string = srvsamba
winbind enum users = Yes
password server = 192.168.1.252
template homedir = /mnt/samba/home/%u
winbind enum groups = Yes
unix charset = UTF-8
preferred master = no
pam password change = yes
winbind use default domain = no

; interfaces = 192.168.12.2/24 192.168.13.2/24
; remote announce = 92.168.1.255 192.168.2.44
; domain logons = yes
; hosts deny = all
 username map = /etc/samba/smbusers
obey pam restrictions = yes
;   winbind separator = \

[A]
comment = A
path = /mnt/samba/a
read only = No
create mask = 0770
directory mask = 02770
hosts allow = 192.168.1.0/24, 192.168.0.0/24, 192.168.2.0/24
map acl inherit = Yes
veto files = /*:Zone.Identifier:*/
veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
store dos attributes = Yes
dos filemode = Yes
dos filetime resolution = Yes

[B]
comment = B
path = /mnt/samba/B
read only = No
create mask = 0777
directory mask = 02770
hosts allow = 192.168.1.0/24
map acl inherit = Yes
veto files = /*:Zone.Identifier:*/
veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
store dos attributes = Yes
dos filemode = Yes
dos filetime resolution = Yes
fake directory create times = Yes

[C]
comment = C
path = /mnt/samba/C
read only = No
create mask = 0777
directory mask = 02775
hosts allow = 192.168.1.0/24
map acl inherit = Yes
veto files = /*:Zone.Identifier:*/
veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
store dos attributes = Yes
dos filemode = Yes
dos filetime resolution = Yes
fake directory create times = Yes

[homes]
path = /mnt/samba/home/%U
read only = No
create mask = 0777
directory mask = 0777
hosts allow = 192.168.1.0/24, 192.168.0.0/24, 192.168.2.0/24
map acl inherit = Yes
store dos attributes = Yes
dos filemode = Yes
dos filetime resolution = Yes

-

ERROR

:/etc/samba# net rpc join -S pdc -U administrador
Enter administrador's password:
[2010/01/24 23:08:33,  0] utils/net_rpc_join.c:net_rpc_join_newstyle(349)
  error setting trust account password: NT_STATUS_ACCESS_DENIED
Unable to join domain LYD.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help in samba configuration

2009-11-18 Thread Gaiseric Vandal

I have never tried unjoining a domain.

I think the approach would be to
 1- update smb.conf to change security to user
2 - delete the SambaMachine account from your Windows PDC.


You can't me in more than one domain.  however you can set up trusts 
between windows and/or samba domains.(Although I haven't quite got 
that working properly.)


-Damian






On 11/18/09 02:11, pankaj.c.pim...@relianceada.com wrote:


Hi Gaiseric *,*

Thanks for your help.
I have now joined the domain using smbpasswd -j.

Could you please let me know how can I remove the join created above 
i.e I want to unjoin the samba server amd domain how to do it and what 
are its effects.

Can I join multiple domian from single samba server??


Thanks and Regards,
Pankaj C Pimple
Software Configuration Management,
Reliance Tech Services,B Block,DAKC,Navi Mumbai,India
Direct : +91 022 303 80153
Mobile : +91 9320023444

For any CC/CQ queries please contact cm.helpd...@relianceada.com



*Gaiseric Vandal gaiseric.van...@gmail.com*

17-11-09 07:30 PM
Please respond to
gaiseric.van...@gmail.com



To
pankaj.c.pim...@relianceada.com
cc

Subject
RE: [Samba] Need help in samba configuration









What happens if you use smbpassword to change a user's password (e.g. from
MyPassword1 to MyPassword2), and do not change the password via 
Windows.  If

the user then logs into a windows PC, does he use MyPassword1 or
MyPassword2?

What happens if you use smbpasswd -R 10.8.54.120  instead?

It seems like you have created local Windows accounts on the Samba 
server,

so that when you connect to the samba share you are using the
DEVVM\username credentials instead of the RIC_F2M credentials.

The purpose of having a Windows or Samba machine as a member of the domain
is so that you do NOT need to create accounts for each user on each domain
member. (Typically a Windows or Samba domain member will still have a 
local

Administrator account, and may have a local Users group and local
Administrators group.)  For Samba, you still need the local unix users and
groups.  All going well you shouldn't need to have all the domain users in
the usermap file- but it shouldn't hurt.









-Original Message-
From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org]
On Behalf Of pankaj.c.pim...@relianceada.com
Sent: Tuesday, November 17, 2009 2:20 AM
To: samba@lists.samba.org
Subject: [Samba] Need help in samba configuration

We have ClearCase database on unix and users on windows.
We are creating Unix users locally on that Clearcase server. Samba is 
also

installed on that server.

User windows machines are part of domain. Groups,usres are created on
domain and same users,groups are created on unix server.

Now problem is occuring when a windows user is changing the password for
his domain login. as soon as user is changing the password user will be
unable to access the samba share i.e clearcase vobs. So when user changes
the domain login password we have to manully change samba password for
that user by running

smbpasswd userbname.

Could you please guide me on how to achieve or any configuration need to
done on samba and on unix server so that I need not have to change
password manully for every user when user changes his/her windows domian
login password.

My samba config fiel is as below

# Samba config file created using SWAT


# Global parameters
[global]
   workgroup = RIC_F2K
   netbios name = DEVVM
   interfaces = devvm
   security = DOMAIN
   encrypt passwords = Yes
   password server = 10.8.54.120
   username map = /usr/local/samba/private/username.map
   #username map = /usr/local/samba/lib/username.map
   log file = /var/opt/samba/logs/log.%m
   os level = 0
   kernel oplocks = No
   create mask = 0775
   directory mask = 0775
   oplocks = No
   time offset = 30
#   time offset = 630
#   time server = yes
#[smbshare]
#   comment = Share Folder of devvm Server
#   path = /var/smbshare



The information contained in this e-mail message is intended only for the
use of the individual or entity to which it is addressed. If you are 
not the

intended recipient, you should return it to the sender immediately. Please
note that while we scan all e-mails for viruses we cannot guarantee 
that any

e-mail is virus-free and accept no liability for any damage caused by any
virus transmitted by this email.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba





The information contained in this e-mail message is intended only for 
the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you should return it to the sender 
immediately. Please note that while we scan all e-mails for viruses we 
cannot guarantee that any e-mail is virus-free and accept no liability 
for any damage caused

Re: [Samba] Need help in samba configuration

2009-11-18 Thread Kevin Keane
I haven't tried it, but you should be able to join more than one domain. It's 
not trivial. Unlike Windows, you can make a Samba server appear as more than 
one server at the same time. You'd basically have to run multiple instances of 
Samba completely independent of each other. Each instance would need a 
different IP address, host name, smb.conf, and directory for the various other 
files Samba uses.

 -Original Message-
 From: samba-boun...@lists.samba.org [mailto:samba-
 boun...@lists.samba.org] On Behalf Of Gaiseric Vandal
 Sent: Wednesday, November 18, 2009 5:50 AM
 To: pankaj.c.pim...@relianceada.com; samba@lists.samba.org
 Subject: Re: [Samba] Need help in samba configuration
 
 I have never tried unjoining a domain.
 
 I think the approach would be to
   1- update smb.conf to change security to user
  2 - delete the SambaMachine account from your Windows PDC.
 
 
 You can't me in more than one domain.  however you can set up trusts
 between windows and/or samba domains.(Although I haven't quite got
 that working properly.)
 
 -Damian
 
 
 
 
 
 
 On 11/18/09 02:11, pankaj.c.pim...@relianceada.com wrote:
 
  Hi Gaiseric *,*
 
  Thanks for your help.
  I have now joined the domain using smbpasswd -j.
 
  Could you please let me know how can I remove the join created above
  i.e I want to unjoin the samba server amd domain how to do it and
 what
  are its effects.
  Can I join multiple domian from single samba server??
 
 
  Thanks and Regards,
  Pankaj C Pimple
  Software Configuration Management,
  Reliance Tech Services,B Block,DAKC,Navi Mumbai,India
  Direct : +91 022 303 80153
  Mobile : +91 9320023444
 
  For any CC/CQ queries please contact cm.helpd...@relianceada.com
 
 
 
  *Gaiseric Vandal gaiseric.van...@gmail.com*
 
  17-11-09 07:30 PM
  Please respond to
  gaiseric.van...@gmail.com
 
 
 
  To
  pankaj.c.pim...@relianceada.com
  cc
 
  Subject
  RE: [Samba] Need help in samba configuration
 
 
 
 
 
 
 
 
 
  What happens if you use smbpassword to change a user's password (e.g.
 from
  MyPassword1 to MyPassword2), and do not change the password via
  Windows.  If
  the user then logs into a windows PC, does he use MyPassword1 or
  MyPassword2?
 
  What happens if you use smbpasswd -R 10.8.54.120  instead?
 
  It seems like you have created local Windows accounts on the Samba
  server,
  so that when you connect to the samba share you are using the
  DEVVM\username credentials instead of the RIC_F2M credentials.
 
  The purpose of having a Windows or Samba machine as a member of the
 domain
  is so that you do NOT need to create accounts for each user on each
 domain
  member. (Typically a Windows or Samba domain member will still have a
  local
  Administrator account, and may have a local Users group and local
  Administrators group.)  For Samba, you still need the local unix
 users and
  groups.  All going well you shouldn't need to have all the domain
 users in
  the usermap file- but it shouldn't hurt.
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: samba-boun...@lists.samba.org [mailto:samba-
 boun...@lists.samba.org]
  On Behalf Of pankaj.c.pim...@relianceada.com
  Sent: Tuesday, November 17, 2009 2:20 AM
  To: samba@lists.samba.org
  Subject: [Samba] Need help in samba configuration
 
  We have ClearCase database on unix and users on windows.
  We are creating Unix users locally on that Clearcase server. Samba is
  also
  installed on that server.
 
  User windows machines are part of domain. Groups,usres are created on
  domain and same users,groups are created on unix server.
 
  Now problem is occuring when a windows user is changing the password
 for
  his domain login. as soon as user is changing the password user will
 be
  unable to access the samba share i.e clearcase vobs. So when user
 changes
  the domain login password we have to manully change samba password
 for
  that user by running
 
  smbpasswd userbname.
 
  Could you please guide me on how to achieve or any configuration need
 to
  done on samba and on unix server so that I need not have to change
  password manully for every user when user changes his/her windows
 domian
  login password.
 
  My samba config fiel is as below
 
  # Samba config file created using SWAT
 
 
  # Global parameters
  [global]
 workgroup = RIC_F2K
 netbios name = DEVVM
 interfaces = devvm
 security = DOMAIN
 encrypt passwords = Yes
 password server = 10.8.54.120
 username map = /usr/local/samba/private/username.map
 #username map = /usr/local/samba/lib/username.map
 log file = /var/opt/samba/logs/log.%m
 os level = 0
 kernel oplocks = No
 create mask = 0775
 directory mask = 0775
 oplocks = No
 time offset = 30
  #   time offset = 630
  #   time server = yes
  #[smbshare]
  #   comment = Share Folder of devvm Server
  #   path = /var/smbshare

Re: [Samba] Need help in samba configuration

2009-11-18 Thread Pankaj . C . Pimple
Hi All,

I have now joined the domain using smbpasswd -j.

Could you please let me know how can I remove the join created above i.e I 
want to unjoin the samba server amd domain how to do it and what are its 
effects.
Can I join multiple domian from single samba server at the same time??

Thanks and Regards,
Pankaj C Pimple
Software Configuration Management,
Reliance Tech Services,B Block,DAKC,Navi Mumbai,India
Direct : +91 022 303 80153
Mobile : +91 9320023444




Pankaj C Pimple/RCOM/RelianceADA 
17-11-09 12:50 PM

To
samba@lists.samba.org
cc

Subject
Need help in samba configuration





We have ClearCase database on unix and users on windows.
We are creating Unix users locally on that Clearcase server. Samba is also 
installed on that server.

User windows machines are part of domain. Groups,usres are created on 
domain and same users,groups are created on unix server.

Now problem is occuring when a windows user is changing the password for 
his domain login. as soon as user is changing the password user will be 
unable to access the samba share i.e clearcase vobs. So when user changes 
the domain login password we have to manully change samba password for 
that user by running

smbpasswd userbname.

Could you please guide me on how to achieve or any configuration need to 
done on samba and on unix server so that I need not have to change 
password manully for every user when user changes his/her windows domian 
login password.

My samba config fiel is as below

# Samba config file created using SWAT


# Global parameters
[global]
workgroup = RIC_F2K
netbios name = DEVVM
interfaces = devvm
security = DOMAIN
encrypt passwords = Yes
password server = 10.8.54.120
username map = /usr/local/samba/private/username.map
#username map = /usr/local/samba/lib/username.map
log file = /var/opt/samba/logs/log.%m
os level = 0
kernel oplocks = No
create mask = 0775
directory mask = 0775
oplocks = No
time offset = 30
#   time offset = 630
#   time server = yes
#[smbshare]
#   comment = Share Folder of devvm Server
#   path = /var/smbshare




The information contained in this e-mail message is intended only for the use 
of the individual or entity to which it is addressed. If you are not the 
intended recipient, you should return it to the sender immediately. Please note 
that while we scan all e-mails for viruses we cannot guarantee that any e-mail 
is virus-free and accept no liability for any damage caused by any virus 
transmitted by this email.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Need help in samba configuration

2009-11-17 Thread Pankaj . C . Pimple
We have ClearCase database on unix and users on windows.
We are creating Unix users locally on that Clearcase server. Samba is also 
installed on that server.

User windows machines are part of domain. Groups,usres are created on 
domain and same users,groups are created on unix server.

Now problem is occuring when a windows user is changing the password for 
his domain login. as soon as user is changing the password user will be 
unable to access the samba share i.e clearcase vobs. So when user changes 
the domain login password we have to manully change samba password for 
that user by running

smbpasswd userbname.

Could you please guide me on how to achieve or any configuration need to 
done on samba and on unix server so that I need not have to change 
password manully for every user when user changes his/her windows domian 
login password.

My samba config fiel is as below

# Samba config file created using SWAT


# Global parameters
[global]
workgroup = RIC_F2K
netbios name = DEVVM
interfaces = devvm
security = DOMAIN
encrypt passwords = Yes
password server = 10.8.54.120
username map = /usr/local/samba/private/username.map
#username map = /usr/local/samba/lib/username.map
log file = /var/opt/samba/logs/log.%m
os level = 0
kernel oplocks = No
create mask = 0775
directory mask = 0775
oplocks = No
time offset = 30
#   time offset = 630
#   time server = yes
#[smbshare]
#   comment = Share Folder of devvm Server
#   path = /var/smbshare



The information contained in this e-mail message is intended only for the use 
of the individual or entity to which it is addressed. If you are not the 
intended recipient, you should return it to the sender immediately. Please note 
that while we scan all e-mails for viruses we cannot guarantee that any e-mail 
is virus-free and accept no liability for any damage caused by any virus 
transmitted by this email.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] need help on daylight saving time issue.

2009-11-04 Thread Yan Zhang

Hi, 
 
I am in Australian. Now it is daylight saving time in Australian. I have 
daysaving time issue on samba client as below.
 
On AIX server, I get the following two files's modified time via command istat. 
/zytest/file1 (Modified time:Fri Sep 18 12:07:37 EST 2009)
/zytest/file1 (Modified time:Sun Nov  1 13:42:16 EDT 2009)
 
On samba client Windows machine, the modified time is as follows

Name SizeType   
 Date Modified
file1  1 KB   File  
   18/09/2009  1:07 PM
file2  0 KB   File  
1/11/2009  1:42 PM
 
For file1, there is a 1 hour discrepancy on modified time shown on AIX server 
and samba client.
 
The file1 was modified before the daylight saving date began, while the file2 
was modified after daylight saving date began.
The AIX timezone environment variable TZ is 
EET-10EETDT,M10.1.0/02:00,M4.1.0/03:00, which is correct.
 
I even upgraded samba from 3.0 to 3.4.2 on AIX 5.3, but the issue is 
persistent. Please shed light on how to solve this issue.
 
 
Best regards,
 
 
Yan Zhang
  
_
Get Hotmail on your iPhone Find out how here
http://windowslive.ninemsn.com.au/article.aspx?id=845706
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] need help on daylight saving time issue.

2009-11-04 Thread Adam Nielsen
 On AIX server, I get the following two files's modified time via command 
 istat. 
 /zytest/file1 (Modified time:Fri Sep 18 12:07:37 EST 2009)
 /zytest/file1 (Modified time:Sun Nov  1 13:42:16 EDT 2009)

Note that file1 is in the EST timezone (GMT+10) and the second file1
(file2?) is in the EDT timezone (GMT+11 during daylight saving.)

 For file1, there is a 1 hour discrepancy on modified time shown on AIX server 
 and samba client.

Not if you take into account the different timezones.

 The file1 was modified before the daylight saving date began, while the file2 
 was modified after daylight saving date began.
 The AIX timezone environment variable TZ is 
 EET-10EETDT,M10.1.0/02:00,M4.1.0/03:00, which is correct.

Evidently your filesystem also stores the timezone, which is why the two
 files have different timezones on them.  It would seem that the current
behaviour is correct - file1, although modified before daylight saving
started, is being reported as though daylight saving was in effect at
the time.

Cheers,
Adam.

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


[Samba] Need Help on start samba

2009-07-22 Thread Tran Van Hung
I have met inform as following. I see that no smb on init.d folder. 

[r...@maychu1 home]# /etc/rc.d/init.d/smb start
bash: /etc/rc.d/init.d/smb: No such file or directory

Pls help me how to have smb on init.d folder? Thank you.
Thank you  Best Regards,



--

Tran Van Hung

IT Department

REX HOTEL

141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam

Tel:(84-8)38292185 or (84-8)38293115

Fax:(84-8)38296536 

Email: tvhun...@yahoo.com.vn

Website:http//www.rexhotelvietnam.com 

**

Cell Phone: 0983908262

YM and Skype: tvhungsg
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help on start samba

2009-07-22 Thread Helmut Hullen
Hallo, Tran,

Du meintest am 22.07.09:

 I have met inform as following. I see that no smb on init.d folder.

 [r...@maychu1 home]# /etc/rc.d/init.d/smb start
 bash: /etc/rc.d/init.d/smb: No such file or directory

Which distribution?

Is there in the directory /etc/rc.d/init.d a file with a similar name,  
perhaps samba?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need Help on start samba

2009-07-22 Thread Helmut Hullen
Hallo, Tran,

Du meintest am 23.07.09 zum Thema Re: [Samba] Need Help on start samba:

 I have met inform as following. I see that no smb on init.d folder.

 [r...@maychu1 home]# /etc/rc.d/init.d/smb start
 bash: /etc/rc.d/init.d/smb: No such file or directory

 Which distribution?

 Is there in the directory /etc/rc.d/init.d a file with a similar
 name,  perhaps samba?


 My distro is CentOs5.
 I have installed samba already. No see samba file.


Please don't top post - thank you!
Please leave the traffic in the mailing list - thank you!

I've looked into the CentOS rpm package - there I found

  /etc/rc.d/init.d/smb

I'm no RedHat/Fedora/CentOS specialist - but many other people can tell  
you how to repair such an rpm packet.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Need help getting roaming profiles to work

2008-03-29 Thread Adam Williams
what is the permissions on /data/profiles?  is it owned by root.root and 
set to 1777?


also in the [global] section add:

logon drive = R:
logon home = \\%N\%U

change the shares to:

[homes]
   comment = Home Directories
   writeable = Yes
   browseable = No
   hide dot files = yes
   public = no
   valid users = %S
   create mask = 0700
   force create mode = 0700
   directory mask = 0700
   force directory mode = 0700

[netlogon]
   path = /home/netlogon
   read only = yes
   guest ok = no
   browseable = no
   admin users = tech

[profiles]
   path = /data/profiles
   writeable = yes
   create mask = 0700
   directory mask = 0700
   browseable = no
   guest ok = no


web stuff wrote:

Hi!
First, let me apologize for the length of this message. I wanted to
include as much relevant info as I could and it got a bit lengthy.

For reasons that I won't bother to detail here, I ended up
volunteering to upgrade the server at my kids school. It's a small
private school with an all-volunteer tech support staff (me!). We
currently have about 40 computers serving about 150 people. The
server's primary function is a file server/domain controller, but we
also use it to serve up the school website. If I can get things
working properly, we would also like to use it as a proxy server.

The server was running Red Hat 9 with Samba 3.0.10. After a bit of
research, I decided to use Ubuntu Server 7.10 along with the latest
Samba package available with the distro (3.0.26a) I am a total rookie
when it comes to Linux/Samba, so I set up a test system at home to
learn how to make it all work. After a couple weeks of
reading/trying/testing, I felt like I had a good enough understanding
to try the upgrade on the school server. Well, I've been able to get
it about 98% correct, but the last little bit is driving me nuts!

The problem I'm having is that I can't get the Windows roaming
profiles to be saved to the server. I have been searching the net and
reading everything I can find related to this problem, but everything
I have tried only seems to make things worse.

The server is set up as a PDC and users can log in just fine. They can
access all the shares I set up just fine. They can read/write to their
home share just fine. I've even proven that they can read/write to the
location where I want the profiles stored (I've even tried having the
system store their profiles in their home directory). When they log in
and the Windows OS creates a new profile for them, they can modify the
profile in all the normal ways just fine. When they log out, the
server does not save that profile.

I realize that roaming profiles aren't necessarily the best way to
operate a , but for now I feel it's the best way for the school
to operate. When I learn more about how to work with Samba and Windows
profiles, I might change that.

Some of the settings were carried over from the previous setup because
I was worried about breaking the web server functionality. I'm still
learning about all this and I'm not sure which things I can change and
which I can't.

Thanks for any help you can provide!
Bob Bolhuis

Some info about the machines/logins:
Server name = bcs_linebacker  (Is the _ character in the server name
a problem? I've seen references to that being an illegal character.)
Machine used for login testing = lab06
Login used to create the log files below = tech
Domain name = BC_SCHOOL

Configuration settings generated by using testparm:

Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
[global]
 workgroup = BC_SCHOOL
 server string = BCS Server
 passdb backend = tdbsam
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n
*passwd:*password\supdated\ssuccessfully* .
 unix password sync = Yes
 log file = /var/log/samba/log.%m
 max log size = 1000
 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
 add machine script = /usr/sbin/useradd -d /samba-clients -g
samba-clients -s /bin/false %u
 logon script = map_network_drives.bat
 logon path = \\%L\profiles\%U
 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 dns proxy = No
 idmap uid = 15000-2
 idmap gid = 15000-2
 admin users = @root, @ntadmin, @tech, tech
 hosts allow = 192.168.110.
 profile acls = Yes

[netlogon]
 path = /home/netlogon
 admin users = tech
 read only = No
 guest ok = Yes
 browseable = No

[profiles]
 path = /data/profiles
 read only = No
 create mask = 0600
 directory mask = 0700
 hide files = /desktop.ini/outlook*.lnk/*Briefcase*
 store dos attributes = Yes
 browseable = No

[homes]
 read only = No
 browseable = No


Below are various log files, some of which may be irrelevant, but I
don't know enough about the inner workings to know which of these have
significance.



log.lab06:

[2008/03/27 22:27:18, 1] 

[Samba] Need help getting roaming profiles to work

2008-03-28 Thread web stuff
Hi!
First, let me apologize for the length of this message. I wanted to
include as much relevant info as I could and it got a bit lengthy.

For reasons that I won't bother to detail here, I ended up
volunteering to upgrade the server at my kids school. It's a small
private school with an all-volunteer tech support staff (me!). We
currently have about 40 computers serving about 150 people. The
server's primary function is a file server/domain controller, but we
also use it to serve up the school website. If I can get things
working properly, we would also like to use it as a proxy server.

The server was running Red Hat 9 with Samba 3.0.10. After a bit of
research, I decided to use Ubuntu Server 7.10 along with the latest
Samba package available with the distro (3.0.26a) I am a total rookie
when it comes to Linux/Samba, so I set up a test system at home to
learn how to make it all work. After a couple weeks of
reading/trying/testing, I felt like I had a good enough understanding
to try the upgrade on the school server. Well, I've been able to get
it about 98% correct, but the last little bit is driving me nuts!

The problem I'm having is that I can't get the Windows roaming
profiles to be saved to the server. I have been searching the net and
reading everything I can find related to this problem, but everything
I have tried only seems to make things worse.

The server is set up as a PDC and users can log in just fine. They can
access all the shares I set up just fine. They can read/write to their
home share just fine. I've even proven that they can read/write to the
location where I want the profiles stored (I've even tried having the
system store their profiles in their home directory). When they log in
and the Windows OS creates a new profile for them, they can modify the
profile in all the normal ways just fine. When they log out, the
server does not save that profile.

I realize that roaming profiles aren't necessarily the best way to
operate a domain, but for now I feel it's the best way for the school
to operate. When I learn more about how to work with Samba and Windows
profiles, I might change that.

Some of the settings were carried over from the previous setup because
I was worried about breaking the web server functionality. I'm still
learning about all this and I'm not sure which things I can change and
which I can't.

Thanks for any help you can provide!
Bob Bolhuis

Some info about the machines/logins:
Server name = bcs_linebacker  (Is the _ character in the server name
a problem? I've seen references to that being an illegal character.)
Machine used for login testing = lab06
Login used to create the log files below = tech
Domain name = BC_SCHOOL

Configuration settings generated by using testparm:

Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
[global]
 workgroup = BC_SCHOOL
 server string = BCS Server
 passdb backend = tdbsam
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n
*passwd:*password\supdated\ssuccessfully* .
 unix password sync = Yes
 log file = /var/log/samba/log.%m
 max log size = 1000
 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
 add machine script = /usr/sbin/useradd -d /samba-clients -g
samba-clients -s /bin/false %u
 logon script = map_network_drives.bat
 logon path = \\%L\profiles\%U
 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 dns proxy = No
 idmap uid = 15000-2
 idmap gid = 15000-2
 admin users = @root, @ntadmin, @tech, tech
 hosts allow = 192.168.110.
 profile acls = Yes

[netlogon]
 path = /home/netlogon
 admin users = tech
 read only = No
 guest ok = Yes
 browseable = No

[profiles]
 path = /data/profiles
 read only = No
 create mask = 0600
 directory mask = 0700
 hide files = /desktop.ini/outlook*.lnk/*Briefcase*
 store dos attributes = Yes
 browseable = No

[homes]
 read only = No
 browseable = No


Below are various log files, some of which may be irrelevant, but I
don't know enough about the inner workings to know which of these have
significance.



log.lab06:

[2008/03/27 22:27:18, 1] smbd/service.c:make_connection_snum(1033)
 lab06 (192.168.110.220) connect to service pc06 initially as user
tech (uid=0, gid=527) (pid 5347)


[2008/03/27 22:27:21, 1] smbd/service.c:close_cnum(1230)
 lab06 (192.168.110.220) closed connection to service pc06
[2008/03/27 22:27:42, 0] auth/auth_util.c:create_builtin_administrators(792)


 create_builtin_administrators: Failed to create Administrators
[2008/03/27 22:27:42, 0] auth/auth_util.c:create_builtin_users(758)
 create_builtin_users: Failed to create Users
[2008/03/27 22:27:42, 1] smbd/service.c:make_connection_snum(1033)


 lab06 (192.168.110.220) connect to service tech initially as user
tech (uid=0, gid=527) (pid 5347)
[2008/03/27 22:27:42, 0] auth/auth_util.c:create_builtin_administrators(792)


 

[Samba] Need help upgrading from 3.0.4 to 3.0.28

2008-02-20 Thread Joe

I have a FreeBSD 5.2.1 machine running Samba 3.0.4.  I am going to
upgrade Samba to 3.0.28.  The process I would follow would be...

download source
configure
make
make install

My questions are...

1. Can I make install with users connected to the samba
   server and using shares?

2. Can I just restart nmbd and smbd to run the new version?
   What happens to connected users if I restart nmbd and smbd?

2. Will I need to change anything in smb.conf?

3. Will any of the samba databases (users) get destroyed/erased/
   changed?

Sorry for all the questions, I'm just nervous about creating
a big mess during the upgrade.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Need help upgrading from 3.0.4 to 3.0.28

2008-02-20 Thread Douglas VanLeuven
Joe wrote:
 I have a FreeBSD 5.2.1 machine running Samba 3.0.4.  I am going to
 upgrade Samba to 3.0.28.  The process I would follow would be...
 
 download source
 configure
 make
 make install
 
 My questions are...
 
 1. Can I make install with users connected to the samba
server and using shares?

Only if you're an optimist.  It's a rare day one can migrate that many
releases without some changes in config file syntax or interpretation.

 
 2. Can I just restart nmbd and smbd to run the new version?
What happens to connected users if I restart nmbd and smbd?

You could.  Your users would get (optimistically) momentarily
disconnected.  The windows offline files balloon pops up or a message
no longer connected to 

 
 2. Will I need to change anything in smb.conf?

Probably.  I know some of the defaults have changed, but I don't have a
list handy.

 
 3. Will any of the samba databases (users) get destroyed/erased/
changed?
Shouldn't, but someone else would have to say definitively.  I've
personally wiped and reinitialized most of them several times only
keeping the private tdb files secrets  passdb while regenerating the
printer tdb's and mappings.

 
 Sorry for all the questions, I'm just nervous about creating
 a big mess during the upgrade.

If it's at all possible, your best course is to setup a test machine
(real or virtual) and test the new version in your current setup by
joining it to your domain and connecting from users.  Alternatively,
duplicate the existing OS  samba version with a different machine name
and perform the upgrade on it.  Your experience doing that is the only
real way to self answer some of your questions and make the production
upgrade as smooth as possible.

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


Re: [Samba] Need help with SWAT

2008-01-09 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please keep replies on-list, for various reasons.

What message do you get after a telnet to port 901? Always give
messages. For example, can't connect could mean connection refused or
connection timed out -- completely different problems. Provide ALL
information if you want a good answer. Sometimes folks will think they
can help, but can't be bothered to draw this information out and will
ignore the message.

If it is running via inetd, you should not expect to see swat. Look for
messages in your syslog/messages file. Look at the documentation for
SWAT to see if there is a debug mode to launch it in (probably an option
you'd throw in inetd). inetd does not require a reboot, just a kill
- -HUP/kill -1 or on some platforms inetd -c. There are other ways.

Make sure SWAT is listening on 127.0.0.1. It may be listening only on
your machine's public interface.

Some things to start you off. Others can chime in (provided the replies
stay on-list!) :)

Donald Woeltje wrote:
 Just one system. No other systems. Swat is installed on the same
 system that is running samba. I'm just trying to use the web browser
 on that system to go to http://localhost:901/ or
 http://ipaddress:901/ and I'm unable to get into swat. With swat
 supposed to be started by inetd, with the correct entry in the
 inetd.conf file, I would think that all I'd need to do is reboot and
 inetd should start swat. But if I do a ps -A and look through the
 list, swat isn't running. So, let's say that inetd doesn't start swat
 until a call is made to tcp port 901. That being the case, when I try
 to connect with telnet or the web browser, inetd should start swat
 and I should get a response. But I don't. I even tried starting swat
 manually (I'm used to the Windows environment, where I can start
 applications or services manually) but maybe that's not possible to
 do because when I tried it, it just sat there and sat there and sat
 there and then it finally said, Alarm clock and went back to a
 console prompt.
 
 Maybe there a re library files that it needs, to be able to run, and
 even though they may be on my system, it's not able to locate them,
 so it can't start? I know I had that problem when I installed KDE and
 tried to start it from the dtlogin screen. Then someone gave me some
 commands to put into the startkde file, for debugging purposes (the
 debugging output went into a log file), and I was able to find out
 what library files were missing, one by one, until I had them all
 installed and KDE started working. I don't know if that could be the
 same issue here.and I don't even know how to go about checking to
 see if that is the problem.
 
 -Original Message- From: Ryan Novosielski
 [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 23:01 To:
 Donald Woeltje Cc: samba@lists.samba.org Subject: Re: [Samba] Need
 help with SWAT
 
 
 
 Donald Woeltje wrote:
 No matter what I try, I cannot get SWAT to work. No, I'm new to 
 solaris, so maybe I'm not doing something that should be done prior
 to trying to use SWAT. Samba does seem to be working, somewhat. I
 can connect to a share using the smbclient on the same solaris
 system that I installed samba onbut I cannot connect to the
 share on the solaris system with my Windows XP system. Since it is
 part of a domain, it's possible that the sysadmins may have some
 sort of AD policy in affect that is preventing me from connecting
 to the solaris system's Windows-compatible resources. So, until I
 try at home, I can't say definitively that Windows to Samba
 functionality isn't working at all. It just isn't working from my
 Windows client to my Solaris Samba network shares. But the
 smbclient program does connect to the shares successfully.
 
 But no matter what I do, I cannot get SWAT to work. I've read the 
 FAQ's and HOWTO's; I can't find anything on troubleshooting SWAT 
 problems. Maybe I don't have inetd setup properly? Or maybe there
 is something else I've missed.
 
 I could really use some help.
 
 Can't get SWAT to work is very non-specific. It does not tell me what
 to say for you to lead off with. You need to try the standard UNIX
 tests (telnet to the port it's supposed to be running on, etc.) and
 see what exactly is not happening.
 

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhPfxmb+gadEcsb4RAp4SAJ9LR/aStf5pAhkzCJhGTitN4u4zywCfeWMt
v8TdqqnY7yNhamQ1YD4C1RU=
=43rv
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Need help with SWAT

2008-01-09 Thread Vickie L. Kidder
 
 trouble getting the smbd working, but it is working now)
 
 And I found this in the log.nmbd:
 
 [2008/01/07 11:19:35, 0] nmbd/nmbd.c:main(697)
   Netbios nameserver version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 11:25:01, 0] nmbd/nmbd_become_lmb.c:
 become_local_master_stage2(396)
   *
 
   Samba name server ISSNSSX86SLRS is now a local master browser for 
 workgroup ISSNSSSOLARIS on subnet public ip address
 
   *
 [2008/01/07 11:53:02, 0] nmbd/nmbd.c:process(559)
   Got SIGHUP dumping debug info.
 [2008/01/07 11:53:02, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
   dump_workgroups()
dump workgroup on subnet  public ip address: netmask= 
255.255.255.0:
 CJC(8) current master browser = CJC10151646
 ISS(7) current master browser = ISS10150894
 ISSNAS(6) current master browser = MPORTER
 WORKGROUP(5) current master browser = CAITLIN001
 PBCFL(4) current master browser = ISS10130079
 PBCGOV(3) current master browser = ISS10160459
 MSHOME(2) current master browser = ISSXX
 ISSNSSSOLARIS(1) current master browser = ISSNSSX86SLRS
 ISSNSSX86SLRS 40849a03 (Solaris Samba Server V3.0.6)
 [2008/01/07 11:55:45, 0] nmbd/nmbd.c:main(697)
   Netbios nameserver version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 11:55:45, 0] /bigdisk/SOURCES/I9/samba-3.0.
 25a/source/lib/pidfile.c:pidfile_create(111)
   ERROR: nmbd is already running. File 
 /usr/local/samba/var/locks/nmbd.pid exists and process id 642 is 
running.
 [2008/01/07 13:47:19, 0] nmbd/nmbd.c:main(697)
   Netbios nameserver version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 14:51:09, 0] nmbd/nmbd.c:process(559)
   Got SIGHUP dumping debug info.
 [2008/01/07 14:51:09, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
   dump_workgroups()
dump workgroup on subnet  public ip address: netmask= 
255.255.255.0:
 ISSNSSSLRS(1) current master browser = UNKNOWN
 ISSNSSX86SLRS 40809a03 (Solaris Samba Server V3.0.6)
 
 How do you get swat to listen on 127.0.0.1?
 
 -Original Message-
 From: Ryan Novosielski [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 09, 2008 11:36
 To: Donald Woeltje; samba
 Subject: Re: [Samba] Need help with SWAT
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Please keep replies on-list, for various reasons.
 
 What message do you get after a telnet to port 901? Always give 
 messages. For example, can't connect could mean connection refused
 or connection timed out -- completely different problems. Provide 
 ALL information if you want a good answer. Sometimes folks will 
 think they can help, but can't be bothered to draw this information 
 out and will ignore the message.
 
 If it is running via inetd, you should not expect to see swat. Look 
 for messages in your syslog/messages file. Look at the documentation
 for SWAT to see if there is a debug mode to launch it in (probably 
 an option you'd throw in inetd). inetd does not require a reboot, just a 
kill
 - -HUP/kill -1 or on some platforms inetd -c. There are other ways.
 
 Make sure SWAT is listening on 127.0.0.1. It may be listening only 
 on your machine's public interface.
 
 Some things to start you off. Others can chime in (provided the 
 replies stay on-list!) :)
 
 Donald Woeltje wrote:
  Just one system. No other systems. Swat is installed on the same
  system that is running samba. I'm just trying to use the web browser
  on that system to go to http://localhost:901/ or
  http://ipaddress:901/ and I'm unable to get into swat. With swat
  supposed to be started by inetd, with the correct entry in the
  inetd.conf file, I would think that all I'd need to do is reboot and
  inetd should start swat. But if I do a ps -A and look through the
  list, swat isn't running. So, let's say that inetd doesn't start swat
  until a call is made to tcp port 901. That being the case, when I try
  to connect with telnet or the web browser, inetd should start swat and
  I should get a response. But I don't. I even tried starting swat
  manually (I'm used to the Windows environment, where I can start
  applications or services manually) but maybe that's not possible to do
  because when I tried it, it just sat there and sat there and sat there
  and then it finally said, Alarm clock and went back to a console
  prompt.
 
  Maybe there a re library files that it needs, to be able to run, and
  even though they may be on my system, it's not able to locate them, so
  it can't start? I know I had that problem when I installed KDE and
  tried to start it from the dtlogin screen. Then someone gave me some
  commands to put into the startkde file, for debugging purposes (the
  debugging output went into a log file), and I was able to find out
  what library files were missing, one by one, until I had them all
  installed and KDE started

RE: [Samba] Need help with SWAT

2008-01-09 Thread Donald Woeltje
 
ISSNSSSOLARIS on subnet public ip address

  *
[2008/01/07 11:53:02, 0] nmbd/nmbd.c:process(559)
  Got SIGHUP dumping debug info.
[2008/01/07 11:53:02, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
  dump_workgroups()
   dump workgroup on subnet  public ip address: netmask=  255.255.255.0:
CJC(8) current master browser = CJC10151646
ISS(7) current master browser = ISS10150894
ISSNAS(6) current master browser = MPORTER
WORKGROUP(5) current master browser = CAITLIN001
PBCFL(4) current master browser = ISS10130079
PBCGOV(3) current master browser = ISS10160459
MSHOME(2) current master browser = ISSXX
ISSNSSSOLARIS(1) current master browser = ISSNSSX86SLRS
ISSNSSX86SLRS 40849a03 (Solaris Samba Server V3.0.6)
[2008/01/07 11:55:45, 0] nmbd/nmbd.c:main(697)
  Netbios nameserver version 3.0.25a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2008/01/07 11:55:45, 0] 
/bigdisk/SOURCES/I9/samba-3.0.25a/source/lib/pidfile.c:pidfile_create(111)
  ERROR: nmbd is already running. File /usr/local/samba/var/locks/nmbd.pid 
exists and process id 642 is running.
[2008/01/07 13:47:19, 0] nmbd/nmbd.c:main(697)
  Netbios nameserver version 3.0.25a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2008/01/07 14:51:09, 0] nmbd/nmbd.c:process(559)
  Got SIGHUP dumping debug info.
[2008/01/07 14:51:09, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
  dump_workgroups()
   dump workgroup on subnet  public ip address: netmask=  255.255.255.0:
ISSNSSSLRS(1) current master browser = UNKNOWN
ISSNSSX86SLRS 40809a03 (Solaris Samba Server V3.0.6)

How do you get swat to listen on 127.0.0.1?

-Original Message-
From: Ryan Novosielski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 11:36
To: Donald Woeltje; samba
Subject: Re: [Samba] Need help with SWAT

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please keep replies on-list, for various reasons.

What message do you get after a telnet to port 901? Always give messages. For 
example, can't connect could mean connection refused or connection timed 
out -- completely different problems. Provide ALL information if you want a 
good answer. Sometimes folks will think they can help, but can't be bothered to 
draw this information out and will ignore the message.

If it is running via inetd, you should not expect to see swat. Look for 
messages in your syslog/messages file. Look at the documentation for SWAT to 
see if there is a debug mode to launch it in (probably an option you'd throw in 
inetd). inetd does not require a reboot, just a kill
- -HUP/kill -1 or on some platforms inetd -c. There are other ways.

Make sure SWAT is listening on 127.0.0.1. It may be listening only on your 
machine's public interface.

Some things to start you off. Others can chime in (provided the replies stay 
on-list!) :)

Donald Woeltje wrote:
 Just one system. No other systems. Swat is installed on the same
 system that is running samba. I'm just trying to use the web browser
 on that system to go to http://localhost:901/ or
 http://ipaddress:901/ and I'm unable to get into swat. With swat
 supposed to be started by inetd, with the correct entry in the
 inetd.conf file, I would think that all I'd need to do is reboot and
 inetd should start swat. But if I do a ps -A and look through the
 list, swat isn't running. So, let's say that inetd doesn't start swat
 until a call is made to tcp port 901. That being the case, when I try
 to connect with telnet or the web browser, inetd should start swat and
 I should get a response. But I don't. I even tried starting swat
 manually (I'm used to the Windows environment, where I can start
 applications or services manually) but maybe that's not possible to do
 because when I tried it, it just sat there and sat there and sat there
 and then it finally said, Alarm clock and went back to a console
 prompt.

 Maybe there a re library files that it needs, to be able to run, and
 even though they may be on my system, it's not able to locate them, so
 it can't start? I know I had that problem when I installed KDE and
 tried to start it from the dtlogin screen. Then someone gave me some
 commands to put into the startkde file, for debugging purposes (the
 debugging output went into a log file), and I was able to find out
 what library files were missing, one by one, until I had them all
 installed and KDE started working. I don't know if that could be the
 same issue here.and I don't even know how to go about checking to
 see if that is the problem.

 -Original Message- From: Ryan Novosielski
 [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 23:01 To:
 Donald Woeltje Cc: samba@lists.samba.org Subject: Re: [Samba] Need
 help with SWAT



 Donald Woeltje wrote:
 No matter what I try, I cannot get SWAT to work. No, I'm new to
 solaris, so maybe I'm not doing something that should be done prior
 to trying

RE: [Samba] Need help with SWAT

2008-01-09 Thread Donald Woeltje
From my inetd.conf file in etc:

# SWAT is the Samba Web Administration Tool
swatstreamtcpnowait.400root/usr/local/samba/sbinswat
(looks like I have a piece missing there; I forgot the /swat at the end of sbin 
- I'll edit and retry)

From my services file in /etc:

swat   901/tcp# 
Samba Web Administration Tool


From: Vickie L. Kidder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 12:53
To: Donald Woeltje
Cc: samba@lists.samba.org
Subject: RE: [Samba] Need help with SWAT


Do you have entries for swat in
/etc/services file?
swat901/tcp

/etc/inetd.conf file?
swatstream  tcp nowait.400  root/usr/local/samba/sbin/swat swat


[EMAIL PROTECTED] wrote on 01/09/2008 11:34:53 AM:

  Telnet attempt returned Connection to public ip address closed
 by foreign host. When I attempted the same thing to the loopback
 address, I got the same thing (just a different IP address, of
 course); Connection to 127.0.0.1 closed by foreign host.

 As for documentation on swat, there is precious little of it that I
 could find. No significant details or detailed explanations of swat
 command line options or information about any swat logfiles. I
 checked all the files in /var/log (including all iterations of
 syslog) and no entries mentioning swat. Nor could I find (or find
 any mention of in any doc) any swat configuration file. There is an
 smb.conf but that is for samba configuration (I also could not find
 a man page or doc that describes and explains ALL of the various
 entries that can be put into the smb.conf file).

 After rooting around, though, I did find in /usr/local/samba/var a
 log file called log.swat. Here is what I found in it:

  [2008/01/07 15:38:37, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:38:37, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 15:39:39, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:39:39, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] lib/access.c:check_access(327)
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:32:11, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:32:12, 0] lib/access.c:check_access(327)
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:57:00, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:57:00, 0] lib/access.c:check_access(327)
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 10:32:26, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 10:32:26, 0] lib/access.c:check_access(327)
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)

 I also found this in the log.smbd file:

 [2008/01/07 11:18:51, 0] smbd/server.c:main(944)
   smbd version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(241)
   startsmbfilepwent_internal: file

RE: [Samba] Need help with SWAT

2008-01-09 Thread Donald Woeltje
Thanks, everyone (especially Ryan and Vickie). That correction in my inetd.conf 
file took care of the problem. I hand the path but not path/filename in the 
swat entry in inetd.conf. Once I corrected that, it started working. I 
appreciate all the help.


From: Vickie L. Kidder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 12:53
To: Donald Woeltje
Cc: samba@lists.samba.org
Subject: RE: [Samba] Need help with SWAT


Do you have entries for swat in
/etc/services file?
swat901/tcp

/etc/inetd.conf file?
swatstream  tcp nowait.400  root/usr/local/samba/sbin/swat swat


[EMAIL PROTECTED] wrote on 01/09/2008 11:34:53 AM:

  Telnet attempt returned Connection to public ip address closed
 by foreign host. When I attempted the same thing to the loopback
 address, I got the same thing (just a different IP address, of
 course); Connection to 127.0.0.1 closed by foreign host.

 As for documentation on swat, there is precious little of it that I
 could find. No significant details or detailed explanations of swat
 command line options or information about any swat logfiles. I
 checked all the files in /var/log (including all iterations of
 syslog) and no entries mentioning swat. Nor could I find (or find
 any mention of in any doc) any swat configuration file. There is an
 smb.conf but that is for samba configuration (I also could not find
 a man page or doc that describes and explains ALL of the various
 entries that can be put into the smb.conf file).

 After rooting around, though, I did find in /usr/local/samba/var a
 log file called log.swat. Here is what I found in it:

  [2008/01/07 15:38:37, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:38:37, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 15:39:39, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:39:39, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] lib/access.c:check_access(327)
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:32:11, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:32:12, 0] lib/access.c:check_access(327)
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:57:00, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:57:00, 0] lib/access.c:check_access(327)
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 10:32:26, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 10:32:26, 0] lib/access.c:check_access(327)
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)

 I also found this in the log.smbd file:

 [2008/01/07 11:18:51, 0] smbd/server.c:main(944)
   smbd version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(241)
   startsmbfilepwent_internal: file
 /usr/local/samba/private/smbpasswd did not exist. File successfully created.
 [2008/01/07 11:18:51, 1] lib/account_pol.c:account_policy_get(286

Re: [Samba] Need help with SWAT

2008-01-09 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No problem. In that case, it was probably trying to exec the directory
(which unsurprisingly did not work).

Donald Woeltje wrote:
 Thanks, everyone (especially Ryan and Vickie). That correction in my 
 inetd.conf file took care of the problem. I hand the path but not 
 path/filename in the swat entry in inetd.conf. Once I corrected that, it 
 started working. I appreciate all the help.
 
 
 From: Vickie L. Kidder [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 09, 2008 12:53
 To: Donald Woeltje
 Cc: samba@lists.samba.org
 Subject: RE: [Samba] Need help with SWAT
 
 
 Do you have entries for swat in
 /etc/services file?
 swat901/tcp
 
 /etc/inetd.conf file?
 swatstream  tcp nowait.400  root/usr/local/samba/sbin/swat 
 swat
 
 
 [EMAIL PROTECTED] wrote on 01/09/2008 11:34:53 AM:
 
  Telnet attempt returned Connection to public ip address closed
 by foreign host. When I attempted the same thing to the loopback
 address, I got the same thing (just a different IP address, of
 course); Connection to 127.0.0.1 closed by foreign host.

 As for documentation on swat, there is precious little of it that I
 could find. No significant details or detailed explanations of swat
 command line options or information about any swat logfiles. I
 checked all the files in /var/log (including all iterations of
 syslog) and no entries mentioning swat. Nor could I find (or find
 any mention of in any doc) any swat configuration file. There is an
 smb.conf but that is for samba configuration (I also could not find
 a man page or doc that describes and explains ALL of the various
 entries that can be put into the smb.conf file).

 After rooting around, though, I did find in /usr/local/samba/var a
 log file called log.swat. Here is what I found in it:

  [2008/01/07 15:38:37, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:38:37, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 15:39:39, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 15:39:39, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/07 16:22:09, 0] lib/access.c:check_access(327)
 [2008/01/07 16:22:09, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:32:11, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:32:12, 0] lib/access.c:check_access(327)
 [2008/01/08 08:32:12, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 08:57:00, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 08:57:00, 0] lib/access.c:check_access(327)
 [2008/01/08 08:57:00, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)
 [2008/01/08 10:32:26, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
 [2008/01/08 10:32:26, 0] lib/access.c:check_access(327)
 [2008/01/08 10:32:26, 0] lib/util_sock.c:get_peer_addr(1232)
   getpeername failed. Error was Socket operation on non-socket
   Denied connection from  (0.0.0.0)

 I also found this in the log.smbd file:

 [2008/01/07 11:18:51, 0] smbd/server.c:main(944)
   smbd version 3.0.25a started.
   Copyright Andrew Tridgell and the Samba Team 1992-2007
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] printing/pcap.c:pcap_cache_reload(159)
   Unable to open printcap file /etc/printcap for read!
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] lib/debug.c:reopen_logs(625)
   Unable to open new log file /usr/local/samba/log/log.smbd: No such
 file or directory
 [2008/01/07 11:18:51, 0] passdb

[Samba] Need help with SWAT

2008-01-08 Thread Donald Woeltje
No matter what I try, I cannot get SWAT to work. No, I'm new to solaris, so 
maybe I'm not doing something that should be done prior to trying to use SWAT. 
Samba does seem to be working, somewhat. I can connect to a share using the 
smbclient on the same solaris system that I installed samba onbut I cannot 
connect to the share on the solaris system with my Windows XP system. Since it 
is part of a domain, it's possible that the sysadmins may have some sort of AD 
policy in affect that is preventing me from connecting to the solaris system's 
Windows-compatible resources. So, until I try at home, I can't say definitively 
that Windows to Samba functionality isn't working at all. It just isn't working 
from my Windows client to my Solaris Samba network shares. But the smbclient 
program does connect to the shares successfully.

But no matter what I do, I cannot get SWAT to work. I've read the FAQ's and 
HOWTO's; I can't find anything on troubleshooting SWAT problems. Maybe I don't 
have inetd setup properly? Or maybe there is something else I've missed.

I could really use some help.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


  1   2   >