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.
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112
Rep:
xp login to samba
when i try to join the domain provided my my linux box, from an xp pro machine, i get the error "the user name could not be found" i know root is in the smb.passwd file, i checked it manually. what do i do?
There are aa few things you must keep an eye on it when doing such things.
1. Deactivate in WiinXP the option that encrypts the connection to the domain controller. samba 2 wont deal with it.
2. You need to add a machine trust account to the domain controller
3. you must then logon with the user "root" to the domain controller
4. forget the account "root" you cant use it after adding the machine to the domain. use some other user.
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112
Original Poster
Rep:
noob mistake... for all the other noobs out there, i will explain how i fixed the problem
you must first create a machine account using useradd ( i knew this much ) in the /etc/passwd and shadow files, find the machine account. some versions of linux will put a $ behind the name. if there is not one, you must put one there. ex if the machine is named beta change beta to beta$... in the passwd and shadow files.
useradd -d /dev/null -s /bin/false %computer name% ...i think that was the command...
once that is done, type smbpasswd -am %computer name%
this will tell samba that the user you are adding is a machine, not a normal user.
if you skip the first step, you will get something like
can not write to file bla bla beta$
can not create user beta$
that's not exactly what it does, but just to know what to look for. once that is done, go to the box you wish to log in with, change the domain name, use root for the user and whatever password you told samba to use... you have to have set up root as a user and supplied it with a password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.