From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 14:19:38 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 11C6637B401 for ; Tue, 8 Apr 2003 14:19:37 -0700 (PDT) Received: from mail.indatacorp.com (mail.indatacorp.com [168.158.197.2]) by mx1.FreeBSD.org (Postfix) with SMTP id D73EF43FA3 for ; Tue, 8 Apr 2003 14:19:36 -0700 (PDT) (envelope-from rgrafton@indatacorp.com) Received: (qmail 65510 invoked from network); 8 Apr 2003 21:28:28 -0000 Received: from unknown (HELO ITDept) (192.168.100.119) by 0 with SMTP; 8 Apr 2003 21:28:28 -0000 From: "Randy Grafton" To: Date: Wed, 9 Apr 2003 14:15:37 -0700 Message-ID: <000b01c2fedd$2a46dd70$7764a8c0@ITDept> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: fbtab and cdrom 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: Tue, 08 Apr 2003 21:19:38 -0000 I've just installed 4.8 and am having some trouble with non-root users mounting cdroms. I have following entries in /etc/fbtab: /dev/ttyv0 0640 /dev/acd0c /dev/ttyv0 0700 /cdrom and my fstab has: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 When I log into the console as a standard user and perform: mount /cdrom The system then responds with an "operation not permitted" message. My next attempts included changing the ownership on the /cdrom directory = and the /dev/acd0c and changing the permissions on these to 0777. I have = also tried mount_cd9660 /dev/acd0c /cdrom=20 and mount_cd9660 /dev/acd0c /home/{logged-in-user}/cdrom=20 where /home/{logged-in-user}/cdrom is wholly owned by the = logged-in-user. All attempts have resulted in the same message, "operation not = permitted". However, if I log in as root I have no problems. I would really like to take the approach of using the fbtab file. My goal is that a non-root user can log in to the console and execute a script that mounts the cdrom, copies its contents to a folder on the = system and then unmounts the cdrom. Any and all help is appreciated. Thanks, -Randy P.S. I installed the eject program from the sysutils port and tried to implement it in my script, but I can't get that to behave either. Even trying it from the command line, the mounted cdrom won't eject.