From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 10:41:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67C8316A4BF for ; Fri, 29 Aug 2003 10:41:33 -0700 (PDT) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BBA743FE1 for ; Fri, 29 Aug 2003 10:41:31 -0700 (PDT) (envelope-from desmond.lee@shaw.ca) Received: from pd5mr4so.prod.shaw.ca (pd5mr4so-qfe3.prod.shaw.ca [10.0.141.168]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKE00B0Q691ZS@l-daemon> for freebsd-questions@freebsd.org; Fri, 29 Aug 2003 11:36:37 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKE00G0D691Y8@l-daemon> for freebsd-questions@FreeBSD.ORG; Fri, 29 Aug 2003 11:36:37 -0600 (MDT) Received: from croydon (h24-83-94-81.vs.shawcable.net [24.83.94.81]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKE0031L68RW6@l-daemon> for freebsd-questions@FreeBSD.ORG; Fri, 29 Aug 2003 11:36:37 -0600 (MDT) Date: Fri, 29 Aug 2003 10:36:27 -0700 From: Desmond Lee In-reply-to: <3F4F84C8.4020303@mac.com> To: freebsd-questions@freebsd.org Message-id: <001e01c36e54$164e14f0$6501a8c0@croydon> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Subject: some problems with automount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 17:41:33 -0000 Hello I'm trying to use amd or the automount so that removable media such as floppies, zip disks and cdroms will be mounted when needed. My goal is to put 'amd_enable="YES"' in the /etc/rc.conf file so that mounting is taken care of when the OS is booted. I've read the man pages for amd, amd.conf and also some stuff on the web. I'm still have some problems and was hoping someone out there could point out some mistakes. So, my this is what my amd.conf file looks like: # GLOBAL OPTIONS SECTION [ global ] normalize_hostnames = no print_pid = no #pid_file = /var/run/amd.pid restart_mounts = yes #unmount_on_exit = yes auto_dir = / log_file = /var/log/amd log_options = all #debug_options = all plock = no selectors_in_defaults = yes # config.guess picks up "sunos5" and I don't want to edit my maps yet os = sos5 # if you print_version after setting up "os", it will show it. print_version = no map_type = file search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib browsable_dirs = yes fully_qualified_hosts = no # DEFINE AN AMD MOUNT POINT [ /floppy ] map_name = amd.floppy [ /zip ] map_name = amd.zip [ /cdrom] map_name = amd.cdrom So, my first problem is that ' selectors_in_defaults = yes ' should be a valid global flag: http://www.am-utils.org/am-utils_11.html#SEC128. I get the following message when executing the command 'bash-2.05$ amd -F /etc/amd.conf' conf: unknown global key: "selectors_in_defaults" AMDCONF: syntax error on line 13 (section global) If I comment out the 'selectors_in defaults=yes' then I get the following output when I execute ' bash-2.05$ amd -F /etc/amd.conf': Aug 29 00:31:53 manchester amd[823]/info: using configuration file /etc/amd.conf Aug 29 00:31:53 manchester amd[823]/user: /var/log/amd: Can't open logfile: Permission denied Aug 29 00:31:53 manchester amd[823]/user: Cannot switch logfile Aug 29 00:31:53 manchester amd[823]/info: AM-UTILS VERSION INFORMATION: Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1997-1999 Erez Zadok Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 Jan-Simon Pendry Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 Imperial College of Science, Technology & Medicine Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 The Regents of the University of California. Aug 29 00:31:53 manchester amd[823]/info: am-utils version 6.0.3s1 (build 480102). Aug 29 00:31:53 manchester amd[823]/info: Built by root@manchester.langley.net on date Sat Aug 23 15:03:51 PDT 2003. Aug 29 00:31:53 manchester amd[823]/info: cpu=i386 (little-endian), arch=i386, karch=i386. Aug 29 00:31:53 manchester amd[823]/info: full_os=freebsd4.4-RELEASE, os=sos5, osver=4.4-RELEASE, vendor=unknown. Aug 29 00:31:53 manchester amd[823]/info: Map support for: root, passwd, union, nis, ndbm, file, error. Aug 29 00:31:53 manchester amd[823]/info: AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, inherit, ufs, Aug 29 00:31:53 manchester amd[823]/info: lofs, cdfs, pcfs, auto, direct, toplvl, error. Aug 29 00:31:53 manchester amd[823]/info: FS: cd9660, lofs, mfs, nfs, nfs3, null, msdos, ufs, umap, union. Aug 29 00:31:53 manchester amd[823]/info: Network: wire="192.168.1.0" (netnumber=192.168.1). Aug 29 00:31:53 manchester amd[823]/info: My ip addr is 192.168.1.102 Aug 29 00:31:53 manchester amd[823]/fatal: Must be root to mount filesystems (euid = 1001) Aug 29 00:31:53 manchester amd[823]/info: Finishing with status 1 Now, some of this output is weird, cause it says my OS is freeBSD 4.4 but I've upgraded to 4.8. Also, it says that only root can mount, but I've changed the setup so that any one can do mounts now. Also, am I suppose to create the following directories: /etc/amdmaps /usr/lib/amd /usr/local/AMD/lib Also, at the end of my amd.conf file I have: # DEFINE AN AMD MOUNT POINT [ /floppy ] map_name = amd.floppy [ /zip ] map_name = amd.zip [ /cdrom] map_name = amd.cdrom How do I go bout creating these amd.xxx files and where should I put them. in the /etc/amdmaps directory. Right not I don't have any amd.map files for the floppy, zip or cdrom so I'm guessing that's why nothing gets mounted when I do an 'amd -F /etc/amd.conf'. Thanks in advance Desmond