I am wondering if anyone has been able to get the add user script to work with 'adduser'? I've seen a lot of messages from Linux users guessing how it *should work, but it always runs interactively for me. :) # adduser --help usage: adduser [-check_only] [-class login_class] [-config_create] [-dotdir dotdir] [-group login_group] [-h|-help] [-home home] [-message message_file] [-noconfig] [-shell shell] [-s|-silent|-q|-quiet] [-uid uid_start] [-v|-verbose] home=/home shell=tcsh dotdir=/usr/share/skel login_group=user login_class= message_file=no uid_start=1000 Other question - I've been searching for "failed to find a DC in the specified domain" without success. Log at bottom. Any info would be greatly appreciated... -Mike 01/31 14:26:41 ----------------------------------------------------------------- 01/31 14:26:41 NetpValidateName: checking to see if 'backtrack' is valid as type 3 name 01/31 14:26:41 NetpCheckDomainNameIsValid [ Exists ] for 'backtrack' returned 0x0 01/31 14:26:41 NetpValidateName: name 'backtrack' is valid for type 3 01/31 14:26:46 ----------------------------------------------------------------- 01/31 14:26:46 NetpDoDomainJoin 01/31 14:26:46 NetpMachineValidToJoin: 'HALO' 01/31 14:26:46 NetpGetLsaPrimaryDomain: status: 0x0 01/31 14:26:46 NetpMachineValidToJoin: status: 0x0 01/31 14:26:46 NetpJoinDomain 01/31 14:26:46 Machine: HALO 01/31 14:26:46 Domain: backtrack 01/31 14:26:46 MachineAccountOU: (NULL) 01/31 14:26:46 Account: backtrack\root 01/31 14:26:46 Options: 0x27 01/31 14:26:46 OS Version: 5.0 01/31 14:26:46 Build number: 2195 01/31 14:26:46 ServicePack: Service Pack 2 01/31 14:26:46 NetpValidateName: checking to see if 'backtrack' is valid as type 3 name 01/31 14:26:46 NetpCheckDomainNameIsValid [ Exists ] for 'backtrack' returned 0x0 01/31 14:26:46 NetpValidateName: name 'backtrack' is valid for type 3 01/31 14:26:46 NetpDsGetDcName: trying to find DC in domain 'backtrack', flags: 0x1020 01/31 14:26:53 NetpDsGetDcName: failed to find a DC in the specified domain: 0x54b 01/31 14:26:53 NetpDoDomainJoin: status: 0x54b -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 540 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020131/59545c8f/attachment.bin
Just a thought : on Slackware Linux (similar to BSD I believe), adduser always runs interactive, because it calls useradd. I believe what you want to do is use useradd rather than adduser. Martyn At 02:33 PM 1/31/02 -0700, Mike A. Oligny wrote:>I am wondering if anyone has been able to get the add user >script to work with 'adduser'? I've seen a lot of messages >from Linux users guessing how it *should work, but it always >runs interactively for me. :) > > # adduser --help > usage: adduser > [-check_only] > [-class login_class] > [-config_create] > [-dotdir dotdir] > [-group login_group] > [-h|-help] > [-home home] > [-message message_file] > [-noconfig] > [-shell shell] > [-s|-silent|-q|-quiet] > [-uid uid_start] > [-v|-verbose] > > home=/home shell=tcsh dotdir=/usr/share/skel > login_group=user login_class= message_file=no > uid_start=1000 > > >Other question - I've been searching for "failed to find a >DC in the specified domain" without success. Log at bottom. > >Any info would be greatly appreciated... > >-Mike > > >01/31 14:26:41 >----------------------------------------------------------------- >01/31 14:26:41 NetpValidateName: checking to see if 'backtrack' is valid >as type 3 name >01/31 14:26:41 NetpCheckDomainNameIsValid [ Exists ] for 'backtrack' >returned 0x0 >01/31 14:26:41 NetpValidateName: name 'backtrack' is valid for type 3 >01/31 14:26:46 >----------------------------------------------------------------- >01/31 14:26:46 NetpDoDomainJoin >01/31 14:26:46 NetpMachineValidToJoin: 'HALO' >01/31 14:26:46 NetpGetLsaPrimaryDomain: status: 0x0 >01/31 14:26:46 NetpMachineValidToJoin: status: 0x0 >01/31 14:26:46 NetpJoinDomain >01/31 14:26:46 Machine: HALO >01/31 14:26:46 Domain: backtrack >01/31 14:26:46 MachineAccountOU: (NULL) >01/31 14:26:46 Account: backtrack\root >01/31 14:26:46 Options: 0x27 >01/31 14:26:46 OS Version: 5.0 >01/31 14:26:46 Build number: 2195 >01/31 14:26:46 ServicePack: Service Pack 2 >01/31 14:26:46 NetpValidateName: checking to see if 'backtrack' is valid >as type 3 name >01/31 14:26:46 NetpCheckDomainNameIsValid [ Exists ] for 'backtrack' >returned 0x0 >01/31 14:26:46 NetpValidateName: name 'backtrack' is valid for type 3 >01/31 14:26:46 NetpDsGetDcName: trying to find DC in domain 'backtrack', >flags: 0x1020 >01/31 14:26:53 NetpDsGetDcName: failed to find a DC in the specified >domain: 0x54b >01/31 14:26:53 NetpDoDomainJoin: status: 0x54b > >=============Martyn Ranyard
For some reason, people on this list don't reply *to the list* - so as much as I appreciate the seven direct replies I've received, this *is quite inefficient. Maybe I am just unaware of some strange rules governing SAMBA mailing lists? :) Some additional info on my questions in-line.> I am wondering if anyone has been able to get the add user > script to work with 'adduser'? I've seen a lot of messages > from Linux users guessing how it *should work, but it always > runs interactively for me. :)For the archives, I found this with Google: # $FreeBSD: src/usr.sbin/adduser/adduser.perl,v # 1.44.2.1 2001/04/23 06:55:24 dougb Exp $ # # addcomputer is a hacked version of adduser # specifically designed to add computer accounts # that work with Samba. Modified By Joseph Olt # <jolt-mail@nicholasofmyra.org> It works great. Thanks to everyone who replied. :)> Other question - I've been searching for "failed to find a > DC in the specified domain" without success. Log at bottom.Guess it doesn't work so well over VPN connections? I read something about this and tried with another computer that was on the LAN - it got further [XP Machine] - joined the domain, but after reboot I am unable to login to domain. As another user commented, there was no noticeable delay between clicking button and the error appearing. SignOrSeal requirement turned off. I searched and searched and kept finding other people having this problem... but not a single answer. Any ideas? -Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 540 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020201/46335e7a/attachment.bin