From owner-freebsd-current Fri Jan 15 12:18:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA05285 for freebsd-current-outgoing; Fri, 15 Jan 1999 12:18:15 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from singularity.enigami.com (singularity.enigami.com [208.140.182.42]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA05280 for ; Fri, 15 Jan 1999 12:18:12 -0800 (PST) (envelope-from ckempf@singularity.enigami.com) Received: (from ckempf@localhost) by singularity.enigami.com (8.9.2/8.9.1) id PAA19179; Fri, 15 Jan 1999 15:18:10 -0500 (EST) To: freebsd-current@FreeBSD.ORG Subject: umount: permission denied as root? From: Cory Kempf Date: 15 Jan 1999 15:18:10 -0500 In-Reply-To: Brian Feldman's message of "Fri, 15 Jan 1999 14:56:54 -0500 (EST)" Message-ID: Lines: 28 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I recently purchased an optical drive for doing backups. After doing a backup, I naturally flipped the switch to write protect. At a later point, I needed to restore some files from the backup, and so, stuck the disk back in, and mounted it. When I was done, the disk wouldn't unmount. When I tried, umount came back with a 'permission denied'. At the time, I was root. (If root doesn't have permission, who does?!) The problem was in my /etc/fstab file, I had the following: /dev/da1c /backup ufs rw 0 0 OK, so it is my fault, I should have mounted it read-only. Unfortunately, it took a reboot to get the disk out of the drive! So, I am thinking that perhaps the code should be made more robust? +C -- Thinking of purchasing RAM from the Chip Merchant? Please read this first: Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message