Thanks for replying. My smb.conf is below.

But I did get a bit further with this last night - I think the problem
may have been caused by me changing the netbios name of the server.

It was originally called BIGSERVER. The server I used as a temporary
BDC was called LITTLESERVER. When I copied everything back over to
BIGSERVER, I changed the 'netbios name' in the smb.conf from
LITTLESERVER to BIGSERVER.

Suspecting that this might have been connected to the problem, I
changed it back. This made no difference until I found a suggestion to
delete wins.dat and browse.dat. Once I'd done this (with samba
stopped), I found that user manager and server manager are now loading
up without errors, and LITTLESERVER appears correctly as "Windows NT
Primary".

But I still have some problems:

1. I'm still getting 'access denied' when I try to add/remove machines
in Server Manager, or modify user accounts in User Manager.

2. I somehow need to rename the server back to BIGSERVER, but I'm not
sure how to do this without breaking things again.

Thanks for any help anyone is able to give! I'm crossing my fingers
that I can get this fixed today... users will be back tomorrow!

Here's my smb.conf with all of the comments taken out..


[global]

  workgroup = MYDOMAIN
  netbios name = LITTLESERVER

  server string = %h server (Samba, Ubuntu)

  wins support = yes

  dns proxy = no

  log file = /var/log/samba/log.%m
  max log size = 1000

  syslog = 0

  panic action = /usr/share/samba/panic-action %d

  security = user
  encrypt passwords = true
  passdb backend = tdbsam
  passdb expand explicit = no
  obey pam restrictions = yes
  invalid users = root
  passwd program = /usr/bin/passwd %u
  passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully*
.
  domain logons = yes
  logon path =
  logon home =
  logon drive = P:
  logon script = logon.cmd
  add user script = /usr/sbin/useradd -m '%u'
  delete user script = /usr/sbin/userdel -r '%u'
  add group script = /usr/sbin/groupadd '%g'
  delete group script = /usr/sbin/groupdel '%g'
  add user to group script = /usr/sbin/usermod -G '%g' '%u'
  add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null '%u'
  load printers = yes
  printing = cups
  printcap name = cups
  printer admin = @lpadmin
  socket options = TCP_NODELAY
  domain master = Yes

[homes]
  comment = Home Directories
  browseable = no
  valid users = %S
  writable = yes
  create mask = 0600
  directory mask = 0700

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

[printers]
  comment = All Printers
  browseable = no
  path = /tmp
  printable = yes
  public = no
  writable = no
  create mode = 0700

[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, "@Domain Admins"

[server]
  comment = Documentation files and programs
  writable = no
  path = /data01/server
  create mask = 0600
  directory mask = 0700

[shared]
  comment = Shared data
  writable = yes
  path = /data01/shared
  create mask = 0664
  directory mask = 0775

[admin$]
  comment = Root directory
  writable = yes
  browseable = no
  path=/
  create mask=0600
  directory mask=0700
  valid users = "@Domain Admins"


On 2/11/07, Michael Gasch <[EMAIL PROTECTED]> wrote:
could you please post your smb.conf ?

micha

Martin Brook wrote:
> Hi all
>
> I'm a relative newcomer to samba, having a few problems with what I
> thought would be a fairly straightforward migration from an NT4 to a
> Samba PDC.
>
> Summary of what I've done so far:
>
> * Set up samba on a second PC and configured it as BDC.
> * VAMPIREd all of the accounts across to the BDC.
> * Shut down original NT PDC, installed Linux + Samba on same hardware.
> * Promoted second PC to PDC by modifying smb.conf appropriately.
> * Copied contents of /var/lib/samba, /etc/samba, and unix accounts
> across to new samba installation on the original PDC, and shut down
> samba on second PC.
>
> At this point I went off and messed around configuring shares,
> printers etc. Everything seemed to be working fine.
>
> However, when I try to run User Manager or Server Manager on one of
> the domain workstations to manage the domain, I'm getting error
> messages - 'could not find domain controller for this domain' or
> similar.
>
> Also, in Server Manager the PDC is shown as "Windows NT backup" rather
> than "Windows NT Primary". Any attempts to promote, and I get 'access
> denied'.
>
> I've spent the afternoon trying to get to the bottom of this, but I
> can't. Can anyone offer any suggestions?
>
> Thanks in advance.
> Martin

--
Michael Gasch
Max Planck Institute for Evolutionary Anthropology
Department of Human Evolution (IT Staff)
Deutscher Platz 6
D-04103 Leipzig
Germany

Phone: 49 (0)341 - 3550 137
        49 (0)341 - 3550 374

Fax:   49 (0)341 - 3550 399

http://www.eva.mpg.de/evolution/

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

Reply via email to