LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-17-2005, 09:16 PM   #1
jrmontg
Member
 
Registered: Nov 2004
Posts: 58

Rep: Reputation: 15
Samba as PDC problem


I am going to use my fedora computer as a pdc.

I am just about there but I cannot log in with my Windows XP. I put in the domain name and a username and password prompt comes up and I put in admin and mypassword and it gives me the error

Logon failure: unknow user name or bod pasword

I have root as the username "admin" for smb

Here is my smb.conf file:

# Global parameters
[global]
netbios name = mako
workgroup = LAFAYETTE
; encrypt passwords = yes
domain master = yes
local master = yes
preferred master = yes
os level = 65
; security = user
domain logons = yes
logon path = \\%L\profiles\%u\%m
logon script = logon.bat
logon drive = H:
logon home = \\%L\%u\.win_profile\%m
time server = yes
domain admin group = root jeffm
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
username map = /etc/samba/smbusers
[netlogon]
path = /etc/samba/netlogon
; writeable = no
browseable = no

[profiles]
path = /home/samba-ntprof
browseable = no
writeable = yes
create mask = 0600
directory mask = 0700

[homes]
writeable = yes
browseable = no
; guest ok = no
map archive = yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[HP]
comment = HP
path = /var/spool/samba
writeable = yes
guest ok = Yes
printable = Yes
printer name = HP
oplocks = No
share modes = No
 
Old 07-17-2005, 10:15 PM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
well i'm not saying i know what the problem is but we can start narrowing down what is might be


just add and user and give it an samba password and try and log on as it

[root@fedora /]# useradd guestuser
[root@fedora /]# smbpasswd -a guestuser
New SMB password:
Retype new SMB password:
[root@fedora /]#

if that doesn't work, have you added your machine trust with a '$' at the end of the name,

i know these are the basics but it's always good to start there.
 
Old 07-17-2005, 10:34 PM   #3
jrmontg
Member
 
Registered: Nov 2004
Posts: 58

Original Poster
Rep: Reputation: 15
the guestuser did not work.

The machine trust work. The documentation that I was reading said that was for NT4 machines. Mine is a XP so I skipped that step.

It said welcome to the domain. I rebooted and now it is saying that it cannot find the domain server when you do a ctrl+alt+del and try to login.

Last edited by jrmontg; 07-17-2005 at 10:40 PM.
 
Old 07-17-2005, 11:35 PM   #4
dev_rhce
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 1
change add user script to add machine script and restart the service.
and uncomment the security=user line.
it will surely work.

//Mod Edit...
and i have started new forum called
http://forum.xxxxxx
u can ask me any linux related issues.
the plus point will be is that ur reply will surely given by two exp. RHCE persons.
ok.
ok.//Mod Edit..


Following the rules of this forum..
The forum rules do not permit advertising. Please visit http://www.linuxquestions.org/advertising/ for more information on advertising. Feel free to contact the forum admin if you have any questions about this policy.



Last edited by peter_robb; 07-18-2005 at 07:06 AM.
 
Old 07-17-2005, 11:40 PM   #5
dev_rhce
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 1
and u cant give admin right like
domain admin group = admin
coz this was working with samba 2
in samba 3 u can give admin right to prticular group in following way.

net groupmap modify ntgroup="Domain Admins" unixgroup=admin

ok.
 
Old 07-18-2005, 06:41 PM   #6
jrmontg
Member
 
Registered: Nov 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by dev_rhce
change add user script to add machine script and restart the service.
and uncomment the security=user line.
it will surely work.
I changed that but it still does not want to login.
# Global parameters
[global]
netbios name = mako
workgroup = LAFAYETTE
; encrypt passwords = yes
domain master = yes
local master = yes
preferred master = yes
os level = 65
security = user
domain logons = yes
logon path = \\%L\profiles\%u\%m
logon script = logon.bat
logon drive = H:
logon home = \\%L\%u\.win_profile\%m
time server = yes
domain admin group = root jeffm
add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
username map = /etc/samba/smbusers
 
Old 07-19-2005, 11:31 AM   #7
jrmontg
Member
 
Registered: Nov 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Also, do I need to uncomment encrypt passwords?
 
Old 07-19-2005, 02:53 PM   #8
thekat
Member
 
Registered: Oct 2003
Location: /dev/null > Oklahoma
Distribution: Mepis 3.3.2-test 3, CC Home 3.0, OpenBSD 3.8
Posts: 64

Rep: Reputation: 15
Leave the passwords encrypted.. (only Windows 95, 98? use unencrypted pw)

chekc out this
link

older but the concepts are still the same..

hth
 
  


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 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Samba PDC Problem daveboyle Linux - Software 1 01-16-2006 07:55 AM
Samba PDC problem mwj Linux - Software 0 01-27-2004 11:52 PM
Problem with Samba as a PDC bluedude2288 Linux - Networking 11 12-27-2003 11:09 AM
Samba as PDC problem raven Linux - Networking 2 06-20-2003 05:33 PM

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

All times are GMT -5. The time now is 12:44 AM.

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