Linux - SoftwareThis 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
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.
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?
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.
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. ???
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.