LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba problem (https://www.linuxquestions.org/questions/linux-networking-3/samba-problem-366728/)

oasisbhrnw99 09-24-2005 07:33 PM

Samba problem
 
Hi all, I am running Suse Linux Enterprise Server 9 with samba verstion 3.0.4, and winxp clients.

When I attempt to join computer to my samba NT domain it prompts me for my username and password. I use root as the user, however it then says that "the username could not be found." Even though I know the root samba user exists as I added him with the

"smbpasswd -a root" command

Also, I am sure that it is checking the correct smbpasswd file, as if I try to join a computer to a domain using one of my other samba users it says "acces denied."

So, can anyone help me out with...

1. Getting root to be recognized as a samba user.

or

2. Getting another user that I add to my sama server to be able to join computers to the domain.

Any help is appreciated, thanks.

fotoguy 09-25-2005 02:31 AM

Sounds like its not making the machine account for the computer that's joining, computers are added as users under samba. Are you manually adding the machine account or are you creating in on the fly through your smb.conf file?

If not you can add this line to your smb.conf which will add the machine account on the fly, only root can add a machine to the domain controller for the very first time, after that anyone can use that computer to access the domain controller.

add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false
-M %u

amitsharma_26 09-25-2005 11:05 AM

Almost complete procedure other then configuring smb.conf
 
I'll tell you a simple procedure & necessary steps for precaution too :

1. First create machine account over to your samba server..

useradd -g machines -d /dev/null -s /bin/false <machine-name>$

2. Add very same machine account to smbpassword

smbpasswd -a -e -m <machine-name>
-a - add user
-e - enable user
-m - machine

So in return it wont ask you for any password.

3. Next add the user you want to run over XP clients... I guess you must have done that.. Do enable your users in smbpasswd after adding them.

4. Add root for smbpasswd & enable it.

5. Do disable the XP- internal firewall.

6. Now do it , if problem still persists, feedback.. I'll help you.


All times are GMT -5. The time now is 09:27 PM.