From owner-freebsd-questions Tue May 30 2: 1:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from deborah.paradise.net.nz (deborah.paradise.net.nz [203.96.152.32]) by hub.freebsd.org (Postfix) with ESMTP id B8F2837B90B for ; Tue, 30 May 2000 02:01:27 -0700 (PDT) (envelope-from djclarke@cm-solutions.co.nz) Received: from eskimo (smtp.epizza.co.nz [203.96.144.146]) by deborah.paradise.net.nz (8.10.0/8.10.0) with SMTP id e4U91Nt05032 for ; Tue, 30 May 2000 21:01:23 +1200 Message-ID: <001501bfca16$089a89a0$0201a8c0@eskimo.cm-solutions.co.nz> Reply-To: "David Clarke" From: "David Clarke" To: Subject: mounting ZIP Drive as ordinary user Date: Tue, 30 May 2000 21:04:13 +1200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01BFCA7A.9BE10720" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0012_01BFCA7A.9BE10720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to run a backup script as an ordinary user which copies = files to a 250MB ZIP drive (/dev/afd0s4) but an ordinary user cannot = mount the device mount_msdos /dev/afd0s4 /zip mount_msdos: /dev/afd0s4: Operation not permitted Mounting the device as root works just fine. Trying to run the mount command from a suid script (root/wheel) produces = the same"operation not permitted error" Also trying to run the eject afd0 command always fails with an unknown = error: eject -v afd0 eject: using device /dev/rafd0c eject: ejecting media from afd0 eject: Unknown error: -3 Please reply directly as I'm not subscribed to this list at the moment. Thanks Dave David Clarke www.cm-solutions.co.nz www.sportsnz.co.nz Director - Technology Custom Made Solutions Ltd PO Box 10-819, Wellington Tel +64-4-384-7922 Fax +64-4-384-7924 ------=_NextPart_000_0012_01BFCA7A.9BE10720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am trying to run a backup script as an ordinary = user which=20 copies files to a 250MB ZIP drive (/dev/afd0s4) but an ordinary user = cannot=20 mount the device
 
mount_msdos /dev/afd0s4 = /zip
mount_msdos:=20 /dev/afd0s4: Operation not permitted
Mounting the device as root works just = fine.
 
Trying to run the mount command from a suid script=20 (root/wheel) produces the same"operation not permitted=20 error"
 
Also trying to run the eject afd0 command always = fails with an=20 unknown error:
 
eject -v = afd0
eject:=20 using device /dev/rafd0c
eject: ejecting media from afd0
eject: = Unknown=20 error: -3
Please reply directly as I'm not = subscribed to=20 this list at the moment.
 
Thanks
Dave
 
David Clarke   www.cm-solutions.co.nz  = www.sportsnz.co.nz
Director -=20 Technology
 
Custom Made Solutions Ltd
PO Box = 10-819,=20 Wellington
Tel = +64-4-384-7922        Fax=20 +64-4-384-7924
------=_NextPart_000_0012_01BFCA7A.9BE10720-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message