[Samba] FreeBSD

Martyn Ranyard ranyardm at lineone.net
Fri Feb 1 08:58:07 GMT 2002


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





More information about the samba mailing list