From owner-freebsd-questions Wed Nov 7 16:41:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from angui.sh (angui.sh [216.27.181.149]) by hub.freebsd.org (Postfix) with ESMTP id 7228937B416 for ; Wed, 7 Nov 2001 16:41:09 -0800 (PST) Received: from localhost (wfroning@localhost) by angui.sh (8.11.6/8.11.4) with ESMTP id fA80fPF99067; Wed, 7 Nov 2001 16:41:25 -0800 (PST) (envelope-from wfroning@angui.sh) Date: Wed, 7 Nov 2001 16:41:25 -0800 (PST) From: Will Froning To: Cc: Subject: amd_map_program in rc.conf Message-ID: <20011107162010.P92860-100000@angui.sh> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG OS: FreeBSD 4.3 I noticed the option in rc.conf to have amd pull it's config file from NIS. I'd like to implement that options, but I've run into a small problem. When I add the map to NIS it doesn't convert the file correctly. It drops about 1/3 of the lines in the file. I've attached the file and the output of ypcat -k amd.master. I gues the real question would be what sed/awk options do I need to pass to yp_mkdb and how do I make yp accept that each of the yp "keys" are unique. Thanks, Will Please reply to me as well. I'm not on the list. ****OUTPUT**** cd1# cat amd.conf # GLOBAL OPTIONS SECTION [ global ] normalize_hostnames = no print_pid = no restart_mounts = yes auto_dir = /.amd_mnt log_options = all plock = no selectors_on_default = yes map_type = file search_path = /etc:/etc/amdmaps browsable_dirs = no # DEFINE AMD MOUNT POINTS [ /net ] map_name = amd.map map_type = file [ /host ] map_name = amd.map map_type = file [ /home ] map_name = amd.home map_type = nis [ /devel ] map_name = amd.home map_type = nis [ /scotty ] map_name = amd.scotty map_type = nis [ /testing_grounds ] map_name = amd.lab map_type = nis map_options = type:=direct [ /svnlogs ] map_name = amd.lab map_type = nis map_options = type:=direct [ /svnlogs2 ] map_name = amd.lab map_type = nis map_options = type:=direct cd1# yp_mkdb amd.conf amd.master yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '#' - skipping yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: duplicate key 'map_options' - skipping yp_mkdb: bad input -- no white space: yp_mkdb: duplicate key '[' - skipping yp_mkdb: duplicate key 'map_name' - skipping yp_mkdb: duplicate key 'map_type' - skipping yp_mkdb: duplicate key 'map_options' - skipping cd1# yp_mkdb -u amd.master print_pid = no plock = no map_options = type:=direct normalize_hostnames = no restart_mounts = yes search_path = /etc:/etc/amdmaps browsable_dirs = no # GLOBAL OPTIONS SECTION [ global ] YP_MASTER_NAME cd1.corp124.com YP_LAST_MODIFIED 1005179813 selectors_on_default = yes log_options = all map_name = amd.map auto_dir = /.amd_mnt map_type = file -- Will Froning Unix Sys. Admin. wfroning@angui.sh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message