LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba Issues (https://www.linuxquestions.org/questions/linux-networking-3/samba-issues-37227/)

TheTrexx 12-03-2002 04:28 PM

Samba Issues
 
If anyone here knows Samba, please help me. Well, here's my dilemma: I've used it to connect my Red Hat Linux 8 and Windows XP. However, on the Linux computer, when I try to make it a PDC, using the smbpasswd -j DOMAIN command, it says that it cannot find the domain controller for domain DOMAIN. here's the file, as best i could remember it, for smb.conf:


[global]
domain master=yes
local master=yes
preferred master=yes
win support=yes
workgroup=DOMAIN
os level=32
announce level=4.0
security=user

[public]
path=/tmp
writeable=yes

A book I have said that I had to join the domain controller to DOMAIN, using the smbpasswd -j DOMAIN command, and supposed to get the message "Joining DOMAIN as PDC" or something like that. But instead, I only get the message above.


On the side note, I can't access SWAT in Mozilla. It says "Connection 127.0.0.1:901 refused". Any ideas on this, or does it have any connection to my above problem?


Can anyone please help me? Also, I'm new to this. Thanks in advance.

KevinJ 12-03-2002 05:23 PM

I could be wrong... but I think that is the command to get a CLIENT to join a domain. I think that if you configure smb.conf properly, and bring the PDC up FIRST... your machine pretty much IS the domain until you start joining clients to it.

http://de.samba.org/samba/ftp/docs/h...a-pdc-faq.html
and
http://us1.samba.org/samba/ftp/docs/...PDC-HOWTO.html

for more info



-KevinJ

balam 12-06-2002 04:06 PM

OK
if you want a "samba domain"
here is my advice.
1 set the smb.conf
I see tat you have almost all set up. but you forgot this
netbios name = XXXwhateveryouwanthereXXX
domain logons = yes

after this is done restart samba by this command ( as root)

/etc/rc.d/init.d/smb restart

then
open you user manager and create a group called machines
remember a group not a user

after issue this command, is very important to be login as root (ex. logoff and log in the system as root, other wise the comand will not run and you get a error messages)

/usr/sbin/useradd -g machines -d /dev/null -c "here-a -pc-description-your-call" -s /bin/false here-netbios name of pc-to-join$

is very importat to add the dollar sing at the end ex. laptop$

so it will look something like this

/usr/sbin/useradd -g machines -d /dev/null -c "machines descriptions " -s /bin/false machine-name$

this command tell the system to create a user on the machines groups, that will not have a home sience we do not need a home for the machines just for user accounts

the issues this command

passwd -l machine-name$

again change the machine-name to the name of the pc ( netbios name)
after that
create a account on the samba server for the machines using this command

smbpasswd -a m machine-name

then create user accojnts on the samba server
with this command

smbpasswd -a here-a-user-that-exist-on-the-linux-server

type the same password as the linux box


ok

to join a client to a domain here more info


with pictures on how to

http://www.mandrakeuser.org/docs/connect/csamba6.html


please perdon my english is my second lenguaje.

keep us up to date

sudo 12-07-2002 06:40 PM

just to let u know..
the "smbpasswd -j DOMAIN " is used for joining a samba server to a NT domain!!

mhernandez 12-16-2002 12:30 PM

Joining Samba to NT Domain
 
I get the message "change_trust_account: unable to read the machine account password for the domain westline. Unable to join the domain.

In the smb.conf I put in:

[global]
wins support = no
wins server = 10.x.x.x

# workgroup = NT-Domain-Name or Workgroup-Name
; workgroup = MYGROUP
workgroup = westline

I look for all the places master browser was referenced and changed it to not be the master browser since we have an NT domain.

In NT I added the server to Server manager. I can see it the WINS database. I can ping from the linx box the pdc both by ip address and dns name. I put in an entry for the server in the hosts file on the linux box and the host file on the NT box. We are not using DNS nor LMHosts. I restarted the smb service. I can see the server in network neighborhood, but I can't browse to it. I then typed smbpasswd -r pdc name -j domain.com.

What am I doing wrong. I looked at the samba.org but I am just not sure what do. Any ideas at all.

Thank you


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