Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant add XP client to samba PDC

Status
Not open for further replies.

spazz41

Technical User
Sep 13, 2005
149
US
When I try to add my XP workstation to my samba PDC I Get the error: The following error occured when trying to join the domain "lincux": Logon failure: unknown username or bad password. I have applied the XP registry patch for samba, and corrected the policy issues. I have also made sure that root has a smbpasswd setup. I am running FC4.
below is my conf file:

workgroup = lincux
netbios name = lincpdc
server string = Samba running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
passdb backend = smbpasswd
;pdc master browser settings
os level = 64
preferred master = yes
local master = yes
domain master = yes

;security and logging settings
security = user
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 127.0.0.1 192.168.2.0/255.255.255.0

;user profiles and home directory
logon home = \\%L\%U\
logon drive = h:
logon path = \\%L\profiles\%U
logon script = netlogon.bat

[homes]
comment = Home Directories
browseable = no
writeable = yes

[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
;created files are rwx for user only
create mask = 0600
directory mask = 0700

[netlogon]
path = /home/netlogon
read only = yes
browseable = no
write list = @admin root
 
And what are saying the samba logs ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
smbd.log :

[2000/01/17 02:06:25, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:06:30, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:06:30, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:06:34, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:06:37, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:21:26, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 02:21:27, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:21:59, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:22:00, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:22:43, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:22:43, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 02:23:00, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied

[2000/01/17 04:04:11, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 04:04:11, 2] param/loadparm.c:do_section(3435)
Processing section "[homes]"
[2000/01/17 04:04:11, 2] param/loadparm.c:do_section(3435)
Processing section "[profiles]"
[2000/01/17 04:04:11, 2] param/loadparm.c:do_section(3435)
Processing section "[netlogon]"
[2000/01/17 04:31:51, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 04:31:51, 2] param/loadparm.c:do_section(3435)
Processing section "[homes]"
[2000/01/17 04:31:51, 2] param/loadparm.c:do_section(3435)
Processing section "[profiles]"
[2000/01/17 04:31:51, 2] param/loadparm.c:do_section(3435)
Processing section "[netlogon]"
[2000/01/17 04:32:15, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 04:32:15, 2] param/loadparm.c:do_section(3435)
Processing section "[homes
]"
[2000/01/17 04:32:15, 2] param/loadparm.c:do_section(3435)
Processing section "[profiles]"
[2000/01/17 04:32:15, 2] param/loadparm.c:do_section(3435)
Processing section "[netlogon]"
[2000/01/17 04:49:19, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 04:49:19, 2] param/loadparm.c:do_section(3435)
Processing section "[homes]"
[2000/01/17 04:49:19, 2] param/loadparm.c:do_section(3435)
Processing section "[profiles]"
[2000/01/17 04:49:19, 2] param/loadparm.c:do_section(3435)
Processing section "[netlogon]"
[2000/01/17 05:42:52, 0] smbd/server.c:main(798)
smbd version 3.0.14a-2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2000/01/17 05:42:52, 2] param/loadparm.c:do_section(3435)

log.linc : (this is computer Im tryin to add)
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 21:02:50, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [root] -> [root] FAILED with error NT_STATUS_NO_SUCH_USER
[2000/01/17 21:02:50, 2] smbd/server.c:exit_server(609)
Closing connections
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.2.13)
[2000/01/17 21:02:50, 2] smbd/server.c:exit_server(609)
Closing connections
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2000/01/17 21:02:50, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(279)
startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Permission denied
.Unable to open passdb database.
[2000/01/17 21:02:50, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [root] -> [root] FAILED with error NT_STATUS_NO_SUCH_USER
[2000/01/17 21:02:50, 2] smbd/server.c:exit_server(609)
Closing connections


log.192.168.2.13:

[2000/01/17 21:02:50, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.2.13)
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(236)
netbios connect: name1=LINCPDC name2=LINC
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(243)
netbios connect: local=lincpdc remote=linc, name type = 0
[2000/01/17 21:02:50, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.2.13)
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(236)
netbios connect: name1=LINCPDC name2=LINC
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(243)
netbios connect: local=lincpdc remote=linc, name type = 0
[2000/01/17 21:02:50, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.2.13)
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(236)
netbios connect: name1=LINCPDC name2=LINC
[2000/01/17 21:02:50, 2] smbd/reply.c:reply_special(243)
netbios connect: local=lincpdc remote=linc, name type = 0
 
also I tried just accessing \\lincpdc and using root and the password I cant even get a listing of the shares.
 
What is effective user id of the nmbd and smbd process ?
you have permissions issue with /etc/samba/smbpasswd.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
uid is 0 for both processes.
permissions are set as root for owner and -rw---------

hope that helps
I cannot access the share with smbclient as root either says NT_STATUS_LOGON_FAILURE
 
I figure it out.
SELinux was installed and blocking access to the smbd service. disabled SELinux for that service and it works :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top