1819897 Members
3021 Online
109607 Solutions
New Discussion юеВ

SAMBA -JOIN DOMAIN

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

SAMBA -JOIN DOMAIN

I am setting up a dev SAMBA box for our Prod testing. I cant remember the command to join the domain. I believe I use the sbmpasswd command but I cant remember the syntax and my man pages are corrupt right now. Any help on the command syntax is helpful.

10x
RPM
UNIX IS GOOD
4 REPLIES 4
Alexander Chuzhoy
Honored Contributor

Re: SAMBA -JOIN DOMAIN

If your /etc/samba/smb.conf file is configure correctly (workgroup is set to a domain name and in password server there's an IP of a server ) then
net join -U username
when username is the username of a person with permissions to join computers
Nobody's Hero
Valued Contributor

Re: SAMBA -JOIN DOMAIN

Thanks,
Can you look at the smbpasswd command? The '-j' option. Shouldn't I be using this command?
UNIX IS GOOD
Alexander Chuzhoy
Honored Contributor
Solution

Re: SAMBA -JOIN DOMAIN

OK, they've changed it in version 3-what I gave you .
If you use previous version-try:
smbpasswd -j Domainname -r x.x.x.x -U username


where x.x.x.x is the address of DC
username is the username of a person with permissions to join

in order to make this command -you have to edit your smb.conf file and to set security to domain i.e security = domain
and encrypted passwords to yes (this is the default.
Steven E. Protter
Exalted Contributor

Re: SAMBA -JOIN DOMAIN

I always have an account set up for the server on the Primary Domain Controller.

All I've ever done is change the smb.conf file as noted above and restarted samba.

The machine suddenly shows up on the network and is browseable if you have run the smbpasswd -a command earlier.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com