LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2003, 06:07 AM   #1
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Talking Samba As a Domain Controler questions


Hi,

I've setup samba 2.2.7 to be a primary domain controller. i've added two windows XP clients to it and all is working ok. I added the machine and user accounts using smbpasswd -a . Here's my question :

I keep getting the error "cannot open passdb" when i use the smbpasswd command to add users or machines. I've just done a straight ./configure, make, make install. No extra commands. I'm just wondering whats going on.

Secondly, i've heard that if you place a logon.bat in your [netlogon] share that you cam pre map network drives for users by doing somthing like "net use e: \\RHbox\share". I've tried this and nothing happened when i logged in??? Whats gone wrong?

Thanks.

Ade
 
Old 01-20-2003, 09:43 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
For "cannot open passdb" when i use the smbpasswd are you running it as root? think of it like an NT machine (which is what samba is emulating) not everyone can add new users, only the administrator can.

And for the logon script you said XP but is it home or pro because besides the $100 difference the home version lets you do only peer networking which is what we do when we share files and printers and see ourselves in network neighborhood but only the pro version lets you do domain networking which is what you are doing when you add a computer account to your server or "log into" a machine causing you to run logon scripts. If you have home it may appear that you "log into" the samba machine but what you are actually doing is share level or peer networking. So the best thing you can do is persistant drive mapping ie check the box for map this drive on reboot or whatever it's called.
 
Old 01-20-2003, 04:23 PM   #3
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
Im using XP pro, i know Home has no domain support. I work in IT and have done for 10 yrs now.

and yes i'm running the commands logged in as root. Obviously the users do get added to the database, as i can add the machines to the domain and i can login to my new HOME domain. All information in network neighbourhood is now blank, i lost the shares that i had when i was in workgroup mode. But i can do a straight map to my shares. So i know they exist.. This suggests i'm not just peer to peer. as i wanted it to be.

I understand how i've setup samba, but i cant get my head around the fact im getting errors and it's still working.

If i look in the passwd file, i see all my users fine, if i look in the samba password file, all i see are the two machines i added and not the users. This suggests to me somthing is wrong, and the cannot access db seems to suggest the users cant be added for some reason. What im asking is why??? whats wrong that it wont work, should i have compiled samba with options i'm not aware of?? And more annoying, if somthing is wrong, why is it working at all? surely i should not be allowed a logon. if i try a normal user that has'nt hadd the smbpasswd run on it it won't work, which i think is as it should be. ???

Im tearing my hair out here lol
 
Old 01-20-2003, 07:08 PM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Thumbs up

what are the permissions on smbpasswd? I think it should be 640 or 600 and owner root:root Also make sure you are looking at the right smbpasswd file, in my downloaded 2.2.7a I have a /usr/local/samba/lib/smbpasswd file that is size 0 and /usr/local/samba/private/smbpasswd is what samba is using, this is how it defaulted when I built it. If that doesn't help with the passdb errors (and it probably won't) then I'm not sure what else to say besides check all the docs in the source tree.

to get your network neighborhood to work see my posts in http://www.linuxquestions.org/questi...threadid=42070 for what protocols to take out in winXP (you probably have it that way anyhow.)
Then for your 3 computer network you can make samba a wins server as mentioned in that post or just make it a pushy SMB client with these settings in smb.conf:

wins support = no
#wins server = xx.xx.xx.xx
#wins proxy = yes
os level = 50
domain master = yes
local master = yes
preferred master = yes

And finally the logon script, if it's not working check the PDC and BDC docs in the samba source tree samba-2.2.7a/docs/htmldocs/Samba-PDC-HOWTO.html and Samba-BDC-HOWTO.html which has more info on it than I can offer

(gee RTFM, check previous posts, RTFM...now don't I sound pushy for a 2 day old member)
 
Old 01-22-2003, 05:19 AM   #5
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
Yes i've been RTFMing for about 2 weeks now, but when you get these little niggles that don't make sence, i like other people's opinions, people who may have been there and got the T-shit. May i point out thats what opensource is all about!!! People helping people?

For instance, you mention permissions on the password file. I've not seen that anywhere, and it may indeed be the problem. I'll check later when i finish work.

I find its also an issue finding error related help on the web. I searched for the exact phrase that the error reported and did'nt get anything really helpfull.

Thanks anyway )
 
  


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
ldap/samba domain controler berrance Linux - Networking 0 02-02-2005 09:18 AM
Samba Domain Questions ghight Linux - Networking 3 04-28-2004 03:52 PM
Samba as windows domain controler SolidSnake Linux - Networking 3 01-27-2004 10:59 AM
Noobe Domain Controler Setup freezer Linux - Networking 10 12-09-2003 10:02 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 08:07 AM


All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration