[Samba] Is this a bug in smbclient?

2012-09-06 Thread Traugott Simon
Hi there,
im trying to backup a Windows Server 2003  64Bit with Amanda. It uses the 
smbclient for backing up a Windows Share. 

So far so good, but on large shares I do get a lot of error messages which I 
can not explain.

? NT_STATUS_OK opening remote file \Daten\Titelseite\153x215.ai 
(\Daten\Titelseite\)
  ? NT_STATUS_IO_TIMEOUT listing \Daten\Titelseite\*

  ? NT_STATUS_OK opening remote file \Daten\MÀdchen.jpg (\Daten\)
  ? NT_STATUS_IO_TIMEOUT listing \Daten\Bilder_Fotos und Logos\Fotolia\*

Im using the smbclient 3.6.6 which comes with Debian Wheezy.Is there anything I 
can do or test about it?

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

Re: [Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!

2012-09-06 Thread Andrew Bartlett
On Thu, 2012-09-06 at 12:21 -0700, Scott Classen wrote:
> --Apple-Mail=_EF688A1F-3D62-46EE-AA22-200A356E88BF
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
>   charset=us-ascii
> 
> I am attempting to upgrade from the samba version distributed with =
> CentOS 5 to the latest stable samba release
> 
> CentOS version is 3.0.33
> 
> I removed the distro version and then:
> 
> cd /usr/local/src
> wget http://www.samba.org/samba/ftp/stable/samba-3.6.7.tar.gz
> tar -zxvf samba-3.6.7.tar.gz
> cd samba-3.6.7/source3
> ./configure --with-configdir=3D/etc/samba
> make
> make install
> 
> I am using my original smb.conf file which has some deprecated options, =
> but still passed the testparm test

Given you have such major failure, stripping back the smb.conf to
exactly what you need would be a good start.  Specifically give
attention to 'unix charset'.

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] Samba upgrade problem with ADS

2012-09-06 Thread Andrew Bartlett
On Fri, 2012-09-07 at 01:41 +, Nitin Thakur wrote:
> is it possible to  run samba with ad  without winbind?

It isn't recommended, and won't help the issue you are having.

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] Samba upgrade problem with ADS

2012-09-06 Thread Nitin Thakur
is it possible to  run samba with ad  without winbind?

Nitin Thakur


---Original Message---
From: "Andrew Bartlett" 
Sent: 6/9/2012 20:42
To: nitintha...@hotmail.com
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba upgrade problem with ADS

On Wed, 2012-09-05 at 12:07 +, Nitin Thakur wrote:
> how about i get rid of secrets file all together?

You can delete secrets.tdb and secrets.ldb if either exists. 

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] Samba upgrade problem with ADS

2012-09-06 Thread Andrew Bartlett
On Wed, 2012-09-05 at 12:07 +, Nitin Thakur wrote:
> how about i get rid of secrets file all together?

You can delete secrets.tdb and secrets.ldb if either exists. 

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] replication error?

2012-09-06 Thread Steve Thompson

On Wed, 29 Aug 2012, Steve Thompson wrote:


Samba4 beta6. CentOS 6.3.

I have a CentOS client, using sssd, bound to a samba4 domain. The sssd 
configuration uses GSSAPI to bind to the directory. In both scenarios below, 
kerberos is fine, DNS is fine, I can use ldapsearch and bind to the directory 
with GSSAPI just fine, etc.


If I have just one DC, everything works perfectly well for weeks on end.

If I have two or more DC's, everything works fine when the machine is first 
bound to the domain. Sssd caches the login info, but eventually this times 
out and another call to Samba has to be made to refresh the cache. The SASL 
bind to the directory fails with:


 (Wed Aug 29 11:40:56 2012) [sssd[be[SAMBA4]]] [sasl_bind_send] (0x0020):
 ldap_sasl_bind failed (49)[Invalid credentials]

Some time later, it starts working again, presumably because the first DC
popped up in the name resolution order once again. The client configuration 
is unchanged from the first (working) scenario.


After much weeping and gnashing of teeth, it appears that this one is down 
to sssd. I had specified ldap_uri in sssd.conf as pointing to the 
round-robin DNS entry:


ldap_uri = ldap://realm.foo.bar.baz

where realm.foo.bar.baz is created in DNS by samba4, and points to six IP 
addresses (two DC's with three interfaces each). It turns out that this is 
not supported by sssd (really, wtf?). By changing it to point to the IP 
addresses:


ldap_uri = ldap://,ldap://

with two corresponding kdc entries in krb5.conf, it now appears to work 
(including if I shut down dc1).


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


[Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!

2012-09-06 Thread Scott Classen
I am attempting to upgrade from the samba version distributed with CentOS 5 to 
the latest stable samba release

CentOS version is 3.0.33

I removed the distro version and then:

cd /usr/local/src
wget http://www.samba.org/samba/ftp/stable/samba-3.6.7.tar.gz
tar -zxvf samba-3.6.7.tar.gz
cd samba-3.6.7/source3
./configure --with-configdir=/etc/samba
make
make install

I am using my original smb.conf file which has some deprecated options, but 
still passed the testparm test

when I attempt to start smbd from the command line

/usr/local/samba/sbin/smbd -i -d 1

I get the following output and smbd does not start/

smbd version 3.6.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
ndr_pull_error(5): Bad character conversion
svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - 
NT_STATUS_RPC_CALL_FAILED
rpc_srv_register: Failed to call the svcctl init function!




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

Re: [Samba] FW: Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Gala Dragos
Which means YOU don't have eth0 !?

I also subscribe against Ubuntu as server (maybe as a toy), try something 
better (Fedora, Arch Linux, Gentoo).

One mode thing, the chkconfig response tells you that the smbd service is 
enabled only in runlevel 3, as I recall Ubuntu started in runlevel 5 by default.



 From: L.P.H. van Belle 
To: "samba@lists.samba.org"  
Sent: Thursday, September 6, 2012 5:03 PM
Subject: [Samba] FW:  Samba is not starting automatically on boot, installed on 
Ubuntu
 
Onderwerp: RE: [Samba] Samba is not starting automatically on boot, installed 
on Ubuntu

Forgot to mention. 

Disable these settings and samba starts on boot. 

interfaces = lo eth0
bind interfaces only = Yes 

Louis


>-Oorspronkelijk bericht-
>Van: be...@bazuin.nl [mailto:samba-boun...@lists.samba.org] 
>Namens L.P.H. van Belle
>Verzonden: donderdag 6 september 2012 15:38
>Aan: samba@lists.samba.org
>Onderwerp: Re: [Samba] Samba is not starting automatically on 
>boot, installed on Ubuntu
>
>Hai, 
>
>i also dont recommend ubuntu as server, but your script is correct. 
>
>Did you remove upstart ? or did you install a non ubuntu package. 
>Im running samba also on ubuntu and debian, as pdc and no problem. 
>
>setup dependency based boot sequencing 
>http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html
>
>Louis
>
>>-Oorspronkelijk bericht-
>>Van: smb...@chrissmith.org 
>>[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
>>Verzonden: donderdag 6 september 2012 15:02
>>Aan: Eitan Orgil
>>CC: samba@lists.samba.org
>>Onderwerp: Re: [Samba] Samba is not starting automatically on 
>>boot, installed on Ubuntu
>>
>>Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
>>cannot recommend it as a server where Samba is a critical package.
>>
>>On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
>> wrote:
>>> Hi,
>>>
>>> I have installed an Ubuntu server 12.04.01 with Smba 3.6.3
>>>
>>> I have configured it to be a file server as well as a PDC.
>>>
>>> When I restart the Linux system, the Samba service will not
>>> start automatically.
>>>
>>> I tried using: "chkconfig smbd 3", for that I got a lot of 
>>"... missing LSB
>>> tags and overrides" messages.
>>> Then when I run:  chkconfig smbd  I get: smbd 3
>>> Rebooting the Linux, the service is up, but not responding, 
>>restarting the
>>> smbd service and it is OK.
>>>
>>> I also tryed to ussysv-rc-confe with the same resoults,the 
>>service is up,
>>> but not responding, restarting the smbd service and it is OK.
>>>
>>> Can anybody help?
>>>
>>>
>>> --
>>> Best regards
>>> Orgil Eitan
>>> ??? please consider the environment before printing this email.
>>> --
>>> 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
>
>


-- 
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] FW: Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread L . P . H . van Belle
Onderwerp: RE: [Samba] Samba is not starting automatically on boot, installed 
on Ubuntu

Forgot to mention. 

Disable these settings and samba starts on boot. 

interfaces = lo eth0
bind interfaces only = Yes 

Louis
 

>-Oorspronkelijk bericht-
>Van: be...@bazuin.nl [mailto:samba-boun...@lists.samba.org] 
>Namens L.P.H. van Belle
>Verzonden: donderdag 6 september 2012 15:38
>Aan: samba@lists.samba.org
>Onderwerp: Re: [Samba] Samba is not starting automatically on 
>boot, installed on Ubuntu
>
>Hai, 
>
>i also dont recommend ubuntu as server, but your script is correct. 
>
>Did you remove upstart ? or did you install a non ubuntu package. 
>Im running samba also on ubuntu and debian, as pdc and no problem. 
>
>setup dependency based boot sequencing 
>http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html
>
>Louis
>
>>-Oorspronkelijk bericht-
>>Van: smb...@chrissmith.org 
>>[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
>>Verzonden: donderdag 6 september 2012 15:02
>>Aan: Eitan Orgil
>>CC: samba@lists.samba.org
>>Onderwerp: Re: [Samba] Samba is not starting automatically on 
>>boot, installed on Ubuntu
>>
>>Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
>>cannot recommend it as a server where Samba is a critical package.
>>
>>On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
>> wrote:
>>> Hi,
>>>
>>> I have installed an Ubuntu server 12.04.01 with Smba 3.6.3
>>>
>>> I have configured it to be a file server as well as a PDC.
>>>
>>> When I restart the Linux system, the Samba service will not
>>> start automatically.
>>>
>>> I tried using: "chkconfig smbd 3", for that I got a lot of 
>>"... missing LSB
>>> tags and overrides" messages.
>>> Then when I run:  chkconfig smbd  I get: smbd 3
>>> Rebooting the Linux, the service is up, but not responding, 
>>restarting the
>>> smbd service and it is OK.
>>>
>>> I also tryed to ussysv-rc-confe with the same resoults,the 
>>service is up,
>>> but not responding, restarting the smbd service and it is OK.
>>>
>>> Can anybody help?
>>>
>>>
>>> --
>>> Best regards
>>> Orgil Eitan
>>> ??? please consider the environment before printing this email.
>>> --
>>> 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
>
>


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


Re: [Samba] Changed PDC IP, all hell broke lose

2012-09-06 Thread Robert Adkins II

Great to see!

--

Regards,
Robert Adkins 
 

> -Original Message-
> From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] 
> Sent: Thursday, September 06, 2012 9:45 AM
> To: Robert Adkins II
> Cc: samba@lists.samba.org
> Subject: RE: [Samba] Changed PDC IP, all hell broke lose
> 
> 
> I emailed the admins and they said they "removed the old IP address"
> from the WINS server and that seemed to fix things.
> 
> -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> 
> 
> 
> On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote:
> 
> > I think you can/should have them remove the PDC from their 
> WINS entry 
> > on their end and then you can rejoin the network with the 
> new IP Address.
> >
> > Outside of that, I can only suggest looking into how to 
> send an update 
> > to a record on a WINS server from a Samba PDC. I'm unsure 
> if that is 
> > possible as I have only run a fully Windows or a Linux/Samba with 
> > Windows Clients as a network.
> >
> >
> > --
> >
> > Regards,
> > Robert Adkins
> >
> >
> >
> >> -Original Message-
> >> From: samba-boun...@lists.samba.org
> >> [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
> >> Sent: Tuesday, September 04, 2012 2:24 PM
> >> To: samba@lists.samba.org
> >> Subject: Re: [Samba] Changed PDC IP, all hell broke lose
> >>
> >>
> >> It is definitely an issue with the WINS server which 
> returns the old 
> >> IP address
> >>
> >> # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
> >> querying MRIRESEARCH on 172.27.88.81
> >> 132.183.202.95 MRIRESEARCH<1b>
> >>
> >> SO it is not automatically picking up the IP change which 
> happened 4 
> >> days ago and I have restarted samba on my PDC several 
> times.  The old 
> >> IP is definitely not in /etc/hosts anymore or anywhere in 
> smb.conf.  
> >> It only shows up in gencache.tdb in the files /var/lib/samba even 
> >> though I keep deleting that file when I restart.
> >>
> >> WINS is a total mystery to me.  How is this supposed to work?
> >>
> >> -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> >>
> >>
> >>
> >> On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:
> >>
> >>> I have no idea what the WINS server is except that I am sure it 
> >>> running on Windows since they are totally Windows-based
> >> organization.
> >>> So the WINS server is definitely the problem?  When I talk
> >> to them and
> >>> mention I am using Samba on Linux they may totally just say
> >> "we don't support it" and hang up.
> >>>
> >>> It seems a strange design that a WINS server can take
> >> precedence over
> >>> my explicit "password server" setting in my smb.conf file.
> >>>
> >>> -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> >>>
> >>>
> >>>
> >>> On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:
> >>>
>  More information is required.
> 
>  What is the WINS server running OS wise? Can you work 
> with the IT 
>  Staff in charge of that WINS Server?
> 
>  --
> 
>  Regards,
>  Robert Adkins
> 
> 
> 
> > -Original Message-
> > From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
> > Sent: Tuesday, September 04, 2012 11:16 AM
> > To: Robert Adkins II
> > Cc: samba@lists.samba.org
> > Subject: RE: [Samba] Changed PDC IP, all hell broke lose
> >
> >
> > I am not running winbindd on the server.  I am using the
> >> WINS server
> > of my hospital which I have no control over.
> >
> > I have already tried deleting browse.dat (I do not see
> >> the other two
> > files anywhere) to no avail.
> >
> > So my fear is that this is all happening because the WINS
> >> server is
> > refusing to recognize the change since I cannot do 
> anything about 
> > it. Is that the issue?  Is there anyway to force a WINS 
> server to 
> > change the IP it has a for domain master browser?
> >
> > -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> >
> >
> >
> > On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:
> >
> >> It's most likely that your server has the old IP Address
> > Cached in the
> >> wins.dat, browse.dat, browse.tdb.
> >>
> >> I recommend the following:
> >>
> >> Shutdown the windbind, nmbd and smbd services.
> >>
> >> Back up each of the above mentioned files.
> >>
> >> Delete the original above named files.
> >>
> >> Restart your services and then see if you can connect.
> >>
> >> You may also need to edit your samba configuration file
> >> to point to
> >> the new server IP Address as the PDC Master Browser.
> >> (Assuming you
> >> didn't already do
> >> that.)
> >>
> >> The problem is that your server is telling clients to
> > attempt to find
> >> it on a network that no longer exists.
> >>
> >> --
> >>
> >> Regards,
> >> Robert Adkins II
> >>
> >>
> >>
> >>> -Original Message-
> >>> From: samba-boun...@lists.samba.org 
> >>> [m

Re: [Samba] Changed PDC IP, all hell broke lose

2012-09-06 Thread Paul Raines


I emailed the admins and they said they "removed the old IP address"
from the WINS server and that seemed to fix things.

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote:


I think you can/should have them remove the PDC from their WINS entry on
their end and then you can rejoin the network with the new IP Address.

Outside of that, I can only suggest looking into how to send an update to a
record on a WINS server from a Samba PDC. I'm unsure if that is possible as
I have only run a fully Windows or a Linux/Samba with Windows Clients as a
network.


--

Regards,
Robert Adkins




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
Sent: Tuesday, September 04, 2012 2:24 PM
To: samba@lists.samba.org
Subject: Re: [Samba] Changed PDC IP, all hell broke lose


It is definitely an issue with the WINS server which returns
the old IP address

# nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
querying MRIRESEARCH on 172.27.88.81
132.183.202.95 MRIRESEARCH<1b>

SO it is not automatically picking up the IP change which
happened 4 days ago and I have restarted samba on my PDC
several times.  The old IP is definitely not in /etc/hosts
anymore or anywhere in smb.conf.  It only shows up in
gencache.tdb in the files /var/lib/samba even though I keep
deleting that file when I restart.

WINS is a total mystery to me.  How is this supposed to work?

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:


I have no idea what the WINS server is except that I am sure it
running on Windows since they are totally Windows-based

organization.

So the WINS server is definitely the problem?  When I talk

to them and

mention I am using Samba on Linux they may totally just say

"we don't support it" and hang up.


It seems a strange design that a WINS server can take

precedence over

my explicit "password server" setting in my smb.conf file.

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:


More information is required.

What is the WINS server running OS wise? Can you work with the IT
Staff in charge of that WINS Server?

--

Regards,
Robert Adkins




-Original Message-
From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
Sent: Tuesday, September 04, 2012 11:16 AM
To: Robert Adkins II
Cc: samba@lists.samba.org
Subject: RE: [Samba] Changed PDC IP, all hell broke lose


I am not running winbindd on the server.  I am using the

WINS server

of my hospital which I have no control over.

I have already tried deleting browse.dat (I do not see

the other two

files anywhere) to no avail.

So my fear is that this is all happening because the WINS

server is

refusing to recognize the change since I cannot do anything about
it. Is that the issue?  Is there anyway to force a WINS server to
change the IP it has a for domain master browser?

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:


It's most likely that your server has the old IP Address

Cached in the

wins.dat, browse.dat, browse.tdb.

I recommend the following:

Shutdown the windbind, nmbd and smbd services.

Back up each of the above mentioned files.

Delete the original above named files.

Restart your services and then see if you can connect.

You may also need to edit your samba configuration file

to point to

the new server IP Address as the PDC Master Browser.

(Assuming you

didn't already do
that.)

The problem is that your server is telling clients to

attempt to find

it on a network that no longer exists.

--

Regards,
Robert Adkins II




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
Sent: Tuesday, September 04, 2012 10:41 AM
To: samba@lists.samba.org
Subject: [Samba] Changed PDC IP, all hell broke lose


I had to move my RedHat 5 box acting as a PDC to a new IP

address. It

is running samba 3.5.10.  After the move, none of my

windows or linux

samba clients worked anymore.  I tried rejoining some to

the domain,

but would get error

Unable to find a suitable server
Join to domain 'MRIRESEARCH' is not valid


The old PDC IP address is 132.183.202.95 and nothing is

at that IP

anymore (for 4 days now).  The new IP is 172.21.21.35

I ran 'net -d 10 join' and would see it was still trying

to connect

to the old IP address.  I tried 'net cache flush' to no

avail.  I

shut down samba, removed every file in /var/cache/samba

and still no

change.
It tries to go to the old IP address.

On the PDC box, I increase 'os level' from 60 to 70,

stopped the nmbd

and smbd processes, did a 'net flush cache' and

restarted nmbd and

smbd. Still it fails and the nmbd log as the following.

==
[2012/09/04 10:09:25,  0] nmbd/nmbd.c:857(main)
   nmbd version 3.5.10-0.110.el5_8 started.
   Copyright Andre

Re: [Samba] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread L . P . H . van Belle
Hai, 

i also dont recommend ubuntu as server, but your script is correct. 

Did you remove upstart ? or did you install a non ubuntu package. 
Im running samba also on ubuntu and debian, as pdc and no problem. 

setup dependency based boot sequencing 
http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html

Louis

>-Oorspronkelijk bericht-
>Van: smb...@chrissmith.org 
>[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
>Verzonden: donderdag 6 september 2012 15:02
>Aan: Eitan Orgil
>CC: samba@lists.samba.org
>Onderwerp: Re: [Samba] Samba is not starting automatically on 
>boot, installed on Ubuntu
>
>Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
>cannot recommend it as a server where Samba is a critical package.
>
>On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
> wrote:
>> Hi,
>>
>> I have installed an Ubuntu server 12.04.01 with Smba 3.6.3
>>
>> I have configured it to be a file server as well as a PDC.
>>
>> When I restart the Linux system, the Samba service will not
>> start automatically.
>>
>> I tried using: "chkconfig smbd 3", for that I got a lot of 
>"... missing LSB
>> tags and overrides" messages.
>> Then when I run:  chkconfig smbd  I get: smbd 3
>> Rebooting the Linux, the service is up, but not responding, 
>restarting the
>> smbd service and it is OK.
>>
>> I also tryed to ussysv-rc-confe with the same resoults,the 
>service is up,
>> but not responding, restarting the smbd service and it is OK.
>>
>> Can anybody help?
>>
>>
>> --
>> Best regards
>> Orgil Eitan
>> ??? please consider the environment before printing this email.
>> --
>> 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] Changed PDC IP, all hell broke lose

2012-09-06 Thread Robert Adkins II
I think you can/should have them remove the PDC from their WINS entry on
their end and then you can rejoin the network with the new IP Address.

Outside of that, I can only suggest looking into how to send an update to a
record on a WINS server from a Samba PDC. I'm unsure if that is possible as
I have only run a fully Windows or a Linux/Samba with Windows Clients as a
network.


--

Regards,
Robert Adkins

 

> -Original Message-
> From: samba-boun...@lists.samba.org 
> [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
> Sent: Tuesday, September 04, 2012 2:24 PM
> To: samba@lists.samba.org
> Subject: Re: [Samba] Changed PDC IP, all hell broke lose
> 
> 
> It is definitely an issue with the WINS server which returns 
> the old IP address
> 
> # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
> querying MRIRESEARCH on 172.27.88.81
> 132.183.202.95 MRIRESEARCH<1b>
> 
> SO it is not automatically picking up the IP change which 
> happened 4 days ago and I have restarted samba on my PDC 
> several times.  The old IP is definitely not in /etc/hosts 
> anymore or anywhere in smb.conf.  It only shows up in 
> gencache.tdb in the files /var/lib/samba even though I keep 
> deleting that file when I restart.
> 
> WINS is a total mystery to me.  How is this supposed to work?
> 
> -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> 
> 
> 
> On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:
> 
> > I have no idea what the WINS server is except that I am sure it 
> > running on Windows since they are totally Windows-based 
> organization.  
> > So the WINS server is definitely the problem?  When I talk 
> to them and 
> > mention I am using Samba on Linux they may totally just say 
> "we don't support it" and hang up.
> >
> > It seems a strange design that a WINS server can take 
> precedence over 
> > my explicit "password server" setting in my smb.conf file.
> >
> > -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> >
> >
> >
> > On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:
> >
> >> More information is required.
> >> 
> >> What is the WINS server running OS wise? Can you work with the IT 
> >> Staff in charge of that WINS Server?
> >> 
> >> --
> >> 
> >> Regards,
> >> Robert Adkins
> >> 
> >> 
> >> 
> >>> -Original Message-
> >>> From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
> >>> Sent: Tuesday, September 04, 2012 11:16 AM
> >>> To: Robert Adkins II
> >>> Cc: samba@lists.samba.org
> >>> Subject: RE: [Samba] Changed PDC IP, all hell broke lose
> >>> 
> >>> 
> >>> I am not running winbindd on the server.  I am using the 
> WINS server 
> >>> of my hospital which I have no control over.
> >>> 
> >>> I have already tried deleting browse.dat (I do not see 
> the other two 
> >>> files anywhere) to no avail.
> >>> 
> >>> So my fear is that this is all happening because the WINS 
> server is 
> >>> refusing to recognize the change since I cannot do anything about 
> >>> it. Is that the issue?  Is there anyway to force a WINS server to 
> >>> change the IP it has a for domain master browser?
> >>> 
> >>> -- Paul Raines (http://help.nmr.mgh.harvard.edu)
> >>> 
> >>> 
> >>> 
> >>> On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:
> >>> 
>  It's most likely that your server has the old IP Address
> >>> Cached in the
>  wins.dat, browse.dat, browse.tdb.
>  
>  I recommend the following:
>  
>  Shutdown the windbind, nmbd and smbd services.
>  
>  Back up each of the above mentioned files.
>  
>  Delete the original above named files.
>  
>  Restart your services and then see if you can connect.
>  
>  You may also need to edit your samba configuration file 
> to point to 
>  the new server IP Address as the PDC Master Browser. 
> (Assuming you 
>  didn't already do
>  that.)
>  
>  The problem is that your server is telling clients to
> >>> attempt to find
>  it on a network that no longer exists.
>  
>  --
>  
>  Regards,
>  Robert Adkins II
>  
>  
>  
> > -Original Message-
> > From: samba-boun...@lists.samba.org 
> > [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
> > Sent: Tuesday, September 04, 2012 10:41 AM
> > To: samba@lists.samba.org
> > Subject: [Samba] Changed PDC IP, all hell broke lose
> > 
> > 
> > I had to move my RedHat 5 box acting as a PDC to a new IP
> >>> address. It
> > is running samba 3.5.10.  After the move, none of my
> >>> windows or linux
> > samba clients worked anymore.  I tried rejoining some to
> >>> the domain,
> > but would get error
> > 
> > Unable to find a suitable server
> > Join to domain 'MRIRESEARCH' is not valid
> > 
> > 
> > The old PDC IP address is 132.183.202.95 and nothing is 
> at that IP 
> > anymore (for 4 days now).  The new IP is 172.21.21.35
> > 
> > I ran 'net -d 10 join' and would see it was still trying
> >>> to connect

Re: [Samba] Hide empty Samba shares?

2012-09-06 Thread Sam Bulka

--- Forwarded message ---
From: "Volker Lendecke" 

Well, what we might be able to do is to add a scripting
interface to the "available" parameter that is checked every
time the share is about to be accessed. This would give a
flexible interface to whatever the OS provides.

Volker

Thanks Volker,

Hope you're engaged in Samba development and eager to implement your  
approach to address this issue. Who would be able to use this scripting  
interface and how - some example? I'm indeed stupid, but not THAT MUCH as  
Stan seems to imply. :)


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


Re: [Samba] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Chris Smith
Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
cannot recommend it as a server where Samba is a critical package.

On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil  wrote:
> Hi,
>
> I have installed an Ubuntu server 12.04.01 with Smba 3.6.3
>
> I have configured it to be a file server as well as a PDC.
>
> When I restart the Linux system, the Samba service will not
> start automatically.
>
> I tried using: "chkconfig smbd 3", for that I got a lot of "... missing LSB
> tags and overrides" messages.
> Then when I run:  chkconfig smbd  I get: smbd 3
> Rebooting the Linux, the service is up, but not responding, restarting the
> smbd service and it is OK.
>
> I also tryed to ussysv-rc-confe with the same resoults,the service is up,
> but not responding, restarting the smbd service and it is OK.
>
> Can anybody help?
>
>
> --
> Best regards
> Orgil Eitan
>  please consider the environment before printing this email.
> --
> 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] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Serge Fonville
Hi,

Could you share the actual commands, their output and the steps you took?

Since chkconfig provides a lot of useful output.

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table



2012/9/6 Eitan Orgil 

> Hi,
>
> I have installed an Ubuntu server 12.04.01 with Smba 3.6.3
>
> I have configured it to be a file server as well as a PDC.
>
> When I restart the Linux system, the Samba service will not
> start automatically.
>
> I tried using: "chkconfig smbd 3", for that I got a lot of "... missing LSB
> tags and overrides" messages.
> Then when I run:  chkconfig smbd  I get: smbd 3
> Rebooting the Linux, the service is up, but not responding, restarting the
> smbd service and it is OK.
>
> I also tryed to ussysv-rc-confe with the same resoults,the service is up,
> but not responding, restarting the smbd service and it is OK.
>
> Can anybody help?
>
>
> --
> Best regards
> Orgil Eitan
>  please consider the environment before printing this email.
> --
> 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] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Eitan Orgil
Hi,

I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

I have configured it to be a file server as well as a PDC.

When I restart the Linux system, the Samba service will not
start automatically.

I tried using: "chkconfig smbd 3", for that I got a lot of "... missing LSB
tags and overrides" messages.
Then when I run:  chkconfig smbd  I get: smbd 3
Rebooting the Linux, the service is up, but not responding, restarting the
smbd service and it is OK.

I also tryed to ussysv-rc-confe with the same resoults,the service is up,
but not responding, restarting the smbd service and it is OK.

Can anybody help?


-- 
Best regards
Orgil Eitan
 please consider the environment before printing this email.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] [SOLVED] Still mandatory profiles, every user same profile

2012-09-06 Thread Ulrich Schinz

Hi there,

Here the question I had:

1.) Every user in my System should use the same profile. In dsa.msc I 
gave every user as profile-path \\samba4\profiles\stud
2.) The users should not be able to change anything in that profile (I 
think changing ntuser.dat to ntuser.man should do the job, proposed i 
got step one managed )



ok, here we go. There are 2 different (semi-official) approaches.

BUT... the third one worked for me

I describe the scenarios in my testenvironment:

1.) Approach
I have a Default User.V2 profile in my netlongon share.

Configuration:
- in AD three users are added: vartest1, vartest2, vartest3
- all users have profile-paths: \\samba4\profiles\vartest[1-3] (three 
different profiles-paths...)

- netlogon share is "read only = yes" and  "profile acls = true"
- profile directory security settings is set to "authenticated users -> 
full access"
- profile ntuser.dat security settings via regedit -> load hive is set 
to "authenticated users -> full access"

- profiles-share is set to "atuhtenticated users -> full access"

In this configuration every user gets same profile. Each profile is 
created in profiles-share.


But if I'm trying to change ntuser.dat to ntuser.man the Default User.V2 
profile is not being loaded. The Default User-profile of the local 
machine is chosen instead...


So I only can produce changeable profiles.

2.) Approach
I have a Default User.V2 profile in my netlongon share.

Configuration:
- in AD three users are added: statest1, statest2, statest3
- all users have one and the same profile-path: 
\\samba4\profiles\statest (all have the same profile-path)

- netlogon share is "read only = yes" and  "profile acls = true"
- profile directory security settings is set to "authenticated users -> 
full access"
- profile ntuser.dat security settings via regedit -> load hive is set 
to "authenticated users -> full access"

- profiles-share is set to "atuhtenticated users -> full access"

In this configuration the profile can't be used by other users. It's 
clear why, the first loged in user has all rights, no other

users are allowed and so on...


What I wanted to have is one profile for every user, i.e. same 
profile-path for every user in my system. So I have only one profile in my

profiles directory. AND: the profile should not be changeable.

3.) So my approach to this was following:

I created a share "profiles" :

[profiles]
path = /home/samba/profiles
vfs objects = fake_perms
read only = Yes
writeable = No

There i stored a profile.
- Directory security settings: full access to authenticated users
- ntuser.man: security settings (regedit -> load hive): full access to 
authenticated users.
These settings were made in a writeable share, and I copied (cp -a ) the 
directory in linux to the profiles (read only) share.


This way I have, what I wanted. All users share the same profile and 
they can't change it.


I hope I mentioned every needed detail of my setup... I tried days, 
setup samba maybe 7-8 times (other os, other architecture -> x86, x64 
and so on) and

I didn't write down every step... So if anything is unclear, just ask...

I'm not sure, whether this way is very elegant (it doesn't seem to be, 
andrew mentioned that fake_perms is ugly...), but it was the only way 
for me to get this working.


So thanks for your help @andrew barlett!

Maybe some people have tried similar setups, every feedback or 
suggestion to get a better setup is very welcome.


Kind regards
Uli




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