Linux - NetworkingThis 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.
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.
You are going to have users login to the Samba machine as a PDC, and have the home directories setup as shares on the server. You will also have a simple logon script that runs the "net use" command to mount the shared directory as U:.
The Samba website is the best source of documentation for this. I wouldn't suggest buying a whole book for this one project, but that is up to you.
I read recently how to do this. The samba config sets all users to have an automatic share, and the login script which is provided by samba ,when run on the xp box maps the drive.
Now, where did i read this. It was one of two places:
Sams teach yourself Samba in 24 hours / Gerald Carter with Richard Sharpe
or
Using Samba, 2nd Edition By Jay Ts, Robert Eckstein, and David Collier-Brown
the latter of which is available in full text on line.
1. Add the user accounts in Linux
2. Edit the smb.conf (then restart Samba)
3. Run "smbpasswd -a username" for all the users you made in step 1
4. Add Windows XP machine to the domain you just created
5. Login to the Samba server from Windows XP
6. Hope for the best
Your domain is whatever you put in for "workgroup =", not the hostname of the server.
So on XP, put in the workgoup name you setup in Samba as the domain, and you should be able to join the domain.
Oh, and I didn't mention this before, but you need to do:
smbpasswd -a root
You need to do this because when you try and join the XP machine to the domain, it is going to ask you for a username and password for a user that is allowed to add machines to the domain, this would be the root acount.
If it still doesn't allow you on the domain, check your Samba logs. It may say something about there not being an account for the computer that tried to join the domain, in which case do:
well i still get the same error
" a domain controller for the domain MSHOME could not be contacted "
then i thought maybe it had some problem with being the same workgroup so i changed it to domaintest
" a domain controller for the domain domaintest could not be contacted "
i did everything you said...
i check the samba log
after i rebooted the server
bing failed on port 139 socket_addr = 0.0.0.0.
Error - Adress allready in use
Alright, stop Samba, delete the 2 long files (smbd.log, nmbd.log) and then start Samba again.
After Samba starts, check the log files. See if they are starting properly. There shouldn't be any errors, it should say that it is starting, and give you some status messages.
The error you posted makes it seem like Samba isn't starting properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.