Difference between revisions of "Talk:Advanced Samba"

From SME Server
Jump to navigationJump to search
m (Removing all content from page)
Line 1: Line 1:
 +
== Not documented - remove a machine from domain if you don-t have access to the machine any-more  ==
  
 +
found on old wiki
 +
 +
Problem1:  You want to remove a machine from a domain.
 +
Problem2:  A domain machine account currently exists but the computer has been removed from the domain.  You want to reconnect this same computer or you have replaced the computer and want to reconnect to the domain using the same computer (netbios) name.
 +
 +
NOTE:  when issued inside samba appends the $ to $machineName to create $machineName$. For instance if the computer netbios name is STATION1 then it becomes station1$. NOTE: uppercase netbios names are converted to lowercase.
 +
 +
STEP 1: To remove a machine from a domain once it is added you may follow these command-line steps:
 +
 +
# /usr/bin/smbpasswd -x $machineName$
 +
# /usr/bin/passwd -d $machineName$
 +
# /usr/sbin/userdel $machineName$
 +
# /sbin/e-smith/db accounts delete $machineName$
 +
 +
I think is worth to be in the wiki further on
 +
 +
--[[User:Larieu|Larieu]] ([[User talk:Larieu|talk]]) 22:46, 27 March 2015 (CET)

Revision as of 22:46, 27 March 2015

Not documented - remove a machine from domain if you don-t have access to the machine any-more

found on old wiki

Problem1: You want to remove a machine from a domain. Problem2: A domain machine account currently exists but the computer has been removed from the domain. You want to reconnect this same computer or you have replaced the computer and want to reconnect to the domain using the same computer (netbios) name.

NOTE: when issued inside samba appends the $ to $machineName to create $machineName$. For instance if the computer netbios name is STATION1 then it becomes station1$. NOTE: uppercase netbios names are converted to lowercase.

STEP 1: To remove a machine from a domain once it is added you may follow these command-line steps:

# /usr/bin/smbpasswd -x $machineName$
# /usr/bin/passwd -d $machineName$ 
# /usr/sbin/userdel $machineName$
# /sbin/e-smith/db accounts delete $machineName$

I think is worth to be in the wiki further on

--Larieu (talk) 22:46, 27 March 2015 (CET)