LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2007, 07:31 AM   #1
ferradura
Member
 
Registered: Jun 2006
Location: PT
Distribution: CRUX & Slackware
Posts: 100

Rep: Reputation: 15
login error on samba pdc


I have had a windows xp machine to my pdc domain (using samba)
after i restarted windows and try to login a get a error message saying that the machine is not on the pdc or the password/username are wrong.

My smb.conf
Code:
[global]
    workgroup = samba
    netbios name = server
    server string = Samba PDC
    domain master = yes
    preferred master = yes 
    local master = yes
    domain logons = yes
    logon script = netlogon.bat
    logon home = \\%L\%U\.profiles
	logon path = \\%L\profiles\%U
    security = user
    encrypt passwords = yes
    os level = 100
[netlogon]
    comment = Servico de Logon
    path = /var/samba/netlogon
    guest ok = Yes
    browseable = No
[homes]
    comment = Directorio Home
    valid users = %S
    guest ok = Yes
    browseable = No
[profiles]
    path = /var/profiles
    writeable = Yes
    browseable = No
    create mask = 0600
    directory mask = 0700
[producao]
    comment = Servico de Logon
    valid users = %S
    path = /home/producao
    guest ok = Yes
    browseable = No
my log
Code:
[2007/09/26 12:18:13, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/09/26 12:18:13, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:18:13, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:18:13, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(241)
  startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not exist. File successfully created.
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
[2007/09/26 12:18:13, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
[2007/09/26 12:24:17, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:24:17, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:24:17, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:24:17, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:40:54, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/09/26 12:40:54, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:40:54, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:46:39, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:46:39, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:47:55, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/09/26 12:47:55, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:47:55, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:51:19, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:51:19, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:52:57, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/09/26 12:52:57, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:52:57, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:57:07, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:57:07, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 12:57:11, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 10.0.0.13. Error Connection reset by peer
[2007/09/26 12:57:11, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2007/09/26 12:57:17, 1] smbd/service.c:make_connection_snum(1033)
  sagitario (10.0.0.13) connect to service roliveira initially as user roliveira (uid=1000, gid=1000) (pid 2115)
[2007/09/26 12:57:22, 1] smbd/service.c:close_cnum(1230)
  sagitario (10.0.0.13) closed connection to service roliveira
[2007/09/26 13:05:26, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/09/26 13:05:26, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 13:05:26, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 13:09:08, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 13:09:08, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 13:12:15, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 10.0.0.13. Error Connection reset by peer
[2007/09/26 13:12:15, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2007/09/26 13:23:19, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/26 13:23:19, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
Any ideias on what i am doing wrong?
 
Old 09-27-2007, 11:53 PM   #2
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Rep: Reputation: 15
have you added the machine name to samba's password list?

eg: the steps i take when adding a pc to my PDC is:

Useradd –d /dev/null –s /bin/false machine\$
Passwd machine\$
Smbpasswd –a –m machine\$
NOTE: the machine name is the already existing windows name. You must also do the same thing for the new name of the system if you are changing the name of the computer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba PDC and linux client login teo Linux - Networking 1 09-06-2012 05:48 AM
Its possible login one linux+winbind in one PDC Samba +LDAP? xcore_on Linux - Newbie 1 06-13-2007 10:59 PM
SuSE 9.2 PDC login problem (SAMBA) sane Linux - Software 4 06-09-2005 06:31 PM
Canīt login on a domain setted up with samba 3 as pdc! emilioestevezz Linux - Networking 2 05-06-2004 04:04 AM
Non-Root login on Samba 3 PDC jmoutdoors Linux - Networking 0 10-30-2003 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration