Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-24-2005, 03:19 AM
|
#1
|
Member
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Rep:
|
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
|
|
|
08-25-2005, 05:27 PM
|
#2
|
LQ Newbie
Registered: Aug 2005
Posts: 1
Rep:
|
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]
|
|
|
08-29-2005, 10:04 AM
|
#3
|
Member
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Original Poster
Rep:
|
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?
|
|
|
09-09-2005, 04:36 AM
|
#4
|
Member
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|