Date: Tue, 30 May 2000 21:04:13 +1200 From: "David Clarke" <djclarke@cm-solutions.co.nz> To: <freebsd-questions@freebsd.org> Subject: mounting ZIP Drive as ordinary user Message-ID: <001501bfca16$089a89a0$0201a8c0@eskimo.cm-solutions.co.nz>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <META content=3Dtext/html;charset=3Diso-8859-1 = http-equiv=3DContent-Type> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT color=3D#000000 size=3D2>Hi,</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT size=3D2>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</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>mount_msdos /dev/afd0s4 = /zip<BR>mount_msdos:=20 /dev/afd0s4: Operation not permitted<BR></FONT><FONT = size=3D2></FONT></DIV> <DIV><FONT size=3D2>Mounting the device as root works just = fine.</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Trying to run the mount command from a suid script=20 (root/wheel) produces the same"operation not permitted=20 error"</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Also trying to run the eject afd0 command always = fails with an=20 unknown error:</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>eject -v = afd0<BR>eject:=20 using device /dev/rafd0c<BR>eject: ejecting media from afd0<BR>eject: = Unknown=20 error: -3<BR></FONT></DIV> <DIV><FONT color=3D#000000 size=3D2>Please reply directly as I'm not = subscribed to=20 this list at the moment.</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Thanks</FONT></DIV> <DIV><FONT size=3D2>Dave</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>David Clarke <A=20 href=3D"http://www.cm-solutions.co.nz">www.cm-solutions.co.nz</A> = <A=20 href=3D"http://www.sportsnz.co.nz">www.sportsnz.co.nz</A><BR>Director -=20 Technology</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>Custom Made Solutions Ltd<BR>PO Box = 10-819,=20 Wellington<BR>Tel = +64-4-384-7922 Fax=20 +64-4-384-7924</FONT></DIV></BODY></HTML> ------=_NextPart_000_0012_01BFCA7A.9BE10720-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501bfca16$089a89a0$0201a8c0>