LinuxQuestions.org
Register a domain and help support LQ
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 08-24-2005, 03:19 AM   #1
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Rep: Reputation: 15
Fedora Core 4 Smba unable to connect to the PDC


i have had a read of most of the Samba releated issues on this website, and implemented most of the fixes, but i am still having a problem,

I have 10 WinXP SP2 desktop Pc's and 1 Fedora Core 4 PC attached with an ethernet network. Each PC has a statically assigned IP Address 192.168.x.x and each machine can Ping each other machine (possible irrelevent however i thought i would share that the network is functioning)

On the Windows PC, if i go to network neighborhood and view all network, i can see the fedora PC, and the shares i setup in smb.conf and if i double click, i can login using the login ID from the linux Pc. So to that point i guess that Samaba is working fine, and is able to communicate between winXP and Linux..

I want to setup Samba as a PDC, so i followed the instructions and created the /etc/samba/smb.conf (see below) and went to the windows PC, i thne entered Regedit and assigned the RequireSignorSeal = 0 and signsecurechannel = 0 I thn opened gpedit.msc and enabled Do not check for user ownership of Roaming Profile Folders...

On the linux pc i entered smbpasswd -a root and entered the password letmein

Back to WinXP

I then went to the system area, changed from Workgroup to domain, entered the domain name, and as expected XP wants a top level login to attach to the domain, so i entered

root
letmein

And after several seconds the PC came back with User not found error message...

So i read some more, and possible i needed to do

smbpasswd -a -m root

This however came back with a message

Failed to initialise SAM_ACCOUNT for user root$ does this user exist in the Unix password database?

the Samba version is Samba 3.0 which comes with the FC4 DVD.. some other stuff worth noting...

When i run a testparm on the /etc/samba/smb.conf it comes back with

Unknown parameter encountered: "domain admin group"
Ignoring unknown parameter "domain admin group"

Now most of the smb.conf files i have seen on this site have the line
domain admin group = root david

the

smbpasswd file has a line in it

root:0:50FCB33E62052231AAD3B435B51404EE:CABA2D3F6756E7F729F969D849D6241F:[U ]:LCT-43042D2F:

so i guess thats ok..


So i guess my question is.. Samba obviously works, because i can access the linux shars from a WinXP machine. So what is the PDC authorisation login looking for? the most fustrating part is that i have had this working before...





/etc/samba/smb.conf file

[global]
netbios name = Rasami_ICT
workgroup = RASAMI
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:

time server = yes

domain admin group = root david

add user script = /usr/bin/userdadd -d /dev/null -g 100 -s /bin/false -M %u
username map = /etc/samba/smbusers

[net-logon]
path = /usr/local/samba/lib/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



Output from Testparm

[global]
workgroup = RASAMI
netbios name = RASAMI_ICT
username map = /etc/samba/smbusers
time server = Yes
add user script = /usr/bin/userdadd -d /dev/null -g 100 -s /bin/false -M %u
logon script = logon.bat
logon path = \\%L\profiles\%u\%m
logon drive = h:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes

[net-logon]
path = /usr/local/samba/lib/netlogon
browseable = No

[profiles]
path = /home/samba-ntprof
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[homes]
read only = No
browseable = No
 
Old 08-25-2005, 05:27 PM   #2
weha
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
1.)
smbpasswd -a -m root
generates a machine-account (the real name is now root$, not root), so delete the "root" line in the smbpasswd file and try

smbpasswd -a root


2.)
the name of the netlogon-share usually is [netlogon], not [net-logon]
 
Old 08-29-2005, 10:04 AM   #3
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Original Poster
Rep: Reputation: 15
deleted, renamed no joy,

could anyone explain to me what SHOULD happen, when the Windows XP workstation tries to contact the SMB PDC.. then maybe i can run Ethereal, and see what is actually happening?
 
Old 09-09-2005, 04:36 AM   #4
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Original Poster
Rep: Reputation: 15
I finally solved this in the typical linux way, candle wax and redbull, and a loss of hair..

I couldn't figure out where i was going wrong, and today i solved this problem...

for some reason i needed to add the machine name, the command line kept coming up with errors, so i reached for Webmin (fantastic software, best of breed)

And downloaded a mod for it, Samba Machine which appeared to do the trick, I added the machine names and we were cooking with Gas...

Some other commands which may also have had an effect were

useradd -g root -d /dev/null -s /dev/null administrator

and followed by

smbpasswd -a root

I had already done the last one..

Samba 3 didn't need any of the XP registry hacks it worked first time out...

So there you go, add the machine name, make sure root is a recongised user and now i'm off to figure out about Samba and LDAP and the best way to manage 140 students on a network..

http://www.emta.net/almateria/HAND/nicedaysticker2.JPG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora Core 3 as PDC dmarrows Fedora - Installation 7 12-01-2005 06:36 PM
Unable to connect to Dial-up internet using Fedora 3 balnair Linux - Software 5 04-30-2005 09:03 PM
Installing Polaroid PDC 2070 digital camera in Fedora Core 3. jigme Linux - Hardware 1 03-31-2005 12:50 AM
Installing Polaroid PDC 2070 webcam under Fedora Core 3 jigme Linux - Newbie 1 03-26-2005 10:45 PM
trust relationship between windows pdc and fedora core 2 rans Linux - Networking 0 09-10-2004 01:44 AM


All times are GMT -5. The time now is 05:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration