LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2002, 04:28 PM   #1
TheTrexx
LQ Newbie
 
Registered: Dec 2002
Posts: 10

Rep: Reputation: 0
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.
 
Old 12-03-2002, 05:23 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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
 
Old 12-06-2002, 04:06 PM   #3
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
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
 
Old 12-07-2002, 06:40 PM   #4
sudo
LQ Newbie
 
Registered: Dec 2002
Posts: 24

Rep: Reputation: 15
just to let u know..
the "smbpasswd -j DOMAIN " is used for joining a samba server to a NT domain!!
 
Old 12-16-2002, 12:30 PM   #5
mhernandez
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat 8.0
Posts: 3

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba issues trebek Linux - Networking 3 04-28-2005 03:10 PM
samba issues cham0169 Linux - Software 1 04-11-2005 08:37 AM
samba issues feldux Linux - Networking 1 08-12-2004 11:06 AM
Samba Issues jetfanroy Linux - Newbie 10 07-29-2003 08:25 AM
Samba issues chris Linux - General 4 11-22-2001 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration