From owner-freebsd-questions Wed Aug 7 10:35: 6 2002 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 4DD2637B477 for ; Wed, 7 Aug 2002 10:34:54 -0700 (PDT) Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9136543E42 for ; Wed, 7 Aug 2002 10:34:53 -0700 (PDT) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.Physik.Uni-Mainz.DE (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by klima.physik.uni-mainz.de (8.12.5/8.12.5) with ESMTP id g77HYqd2019842 for ; Wed, 7 Aug 2002 19:34:52 +0200 (CEST) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Wed, 7 Aug 2002 19:34:52 +0200 (CEST) From: "Hartmann, O." To: freebsd-questions@freebsd.org Subject: amd help Message-ID: <20020807192507.N15894-100000@klima.physik.uni-mainz.de> 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 Hello. I try to allow a user on a local FreeBSD 4.6 workstation to mount its own CDROM/DVD. It is not suitable to allow mounts via root access, so I thought AMD cpuld be the best solution. I'm really new to amd and therefor I appreciate any hint or tip. My primary intention is to allow a simple CDROM mount by a user by inserting the CDROM and dismounting the CDROM after a while of inactivity. I found a lot of stuff in the newsgroups, but I haver some trouble in understanding what amd tries to do. It seems, that a device mount is only possible via the type:=program option, but this does not work due to the fact I misunderstand how amd tries to mount the device. I have installed a simple standard /etc/amd.conf with this mapping row: # DEFINE AN AMD MOUNT POINT [/amd] map_name = amd.map The appropriate amd.map file is located in /usr/local/etc/amd/amdmaps and contains the following: /defaults host==stud09;opts:=ro,grpid,nosuid,intr,utimeout=12000 cdrom fs:=/cdrom;dev:=/dev/acd0a;type:=program;\ mount:="/sbin/mount -t cd9660 -o ro /dev/acd0a ${fs}";\ unmount:="/sbin/umount ${fs}" cdrw fs:=/cdrw;dev:=/dev/acd1a;type:=program;\ mount:="/sbin/mount -t cd9660 -o ro /dev/acd1a ${fs}";\ unmount:="/sbin/umount ${fs}" Intention is to mount CDROM on /cdrom when accessing /amd/cdrom. But this seems to fail with an (Operation not permitted) failure message. Can anyone help or has a fast solution for those problems? Thanks. -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ------------------------------------------------------------------ IT-Administration des Institutes fuer Physik der Atmosphaere (IPA) ------------------------------------------------------------------ Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinenraum) Tel: +496131/3924144 (Buero) FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message