Greg Zartman <[EMAIL PROTECTED]> said:
> You probably think I'm nuts for pounding this so far into the ground, > but I just can't take things just hanging like this.... No comment ;-> Greg, here is what happens and of course this word wraps the longer lines: # [12adduers] # Added for correct Windows domain user account set up # Updated script used (dmc-machine-account-create) add user script = /sbin/e-smith/db accounts set %u machine ; \ /etc/e-smith/events/actions/dmc-machine-account-create create-machine- account %u NOTE: %u 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 inside samba. To add a machine to the domain, the above would actually look like this if entered on the command-line: /sbin/e-smith/db accounts set $machineName$ machine /usr/sbin/useradd -c "Hostname account for $machineName$" - d /noexistingpath -s /bin/false $machineName$ /usr/bin/passwd -l $machineName$ /usr/bin/smbpasswd -a -m $machineName$ AFAIK there is no 'samba' way to remove a machine from a domain once it is added. You can remove the machine by doing the reverse to the above directly via the command-line: /usr/bin/smbpasswd -x $machineName$ /usr/bin/passwd -d $machineName$ /usr/sbin/userdel $machineName$ /sbin/e-smith/db accounts delete $machineName$ As an example to remove a machine named STATION1 you would enter: [root@e-smith /root]# /usr/bin/smbpasswd -x station1$ Deleted user station1$. [root@e-smith /root]# /usr/bin/passwd -d station1$ Changing password for user station1$ Removing password for user station1$ passwd: Success [root@e-smith /root]# /usr/sbin/userdel station1$ [root@e-smith /root]# /sbin/e-smith/db accounts delete station1$ I'm going to add this in my Howto and post online as soon as convenient. Regards, -- Darrell May DMC Netsourced.com http://netsourced.com http://myEZserver.com -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org
