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
[-- Attachment #1 --] 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 [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <META content=text/html;charset=iso-8859-1 http-equiv=Content-Type> <META content='"MSHTML 4.72.3110.7"' name=GENERATOR> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT color=#000000 size=2>Hi,</FONT></DIV> <DIV><FONT color=#000000 size=2></FONT> </DIV> <DIV><FONT size=2>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</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT color=#000000 size=2>mount_msdos /dev/afd0s4 /zip<BR>mount_msdos: /dev/afd0s4: Operation not permitted<BR></FONT><FONT size=2></FONT></DIV> <DIV><FONT size=2>Mounting the device as root works just fine.</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2>Trying to run the mount command from a suid script (root/wheel) produces the same"operation not permitted error"</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2>Also trying to run the eject afd0 command always fails with an unknown error:</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2></FONT><FONT color=#000000 size=2>eject -v afd0<BR>eject: using device /dev/rafd0c<BR>eject: ejecting media from afd0<BR>eject: Unknown error: -3<BR></FONT></DIV> <DIV><FONT color=#000000 size=2>Please reply directly as I'm not subscribed to this list at the moment.</FONT></DIV> <DIV><FONT color=#000000 size=2></FONT> </DIV> <DIV><FONT size=2>Thanks</FONT></DIV> <DIV><FONT size=2>Dave</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT color=#000000 size=2>David Clarke <A href="http://www.cm-solutions.co.nz">www.cm-solutions.co.nz</A> <A href="http://www.sportsnz.co.nz">www.sportsnz.co.nz</A><BR>Director - Technology</FONT></DIV> <DIV><FONT color=#000000 size=2></FONT> </DIV> <DIV><FONT color=#000000 size=2>Custom Made Solutions Ltd<BR>PO Box 10-819, Wellington<BR>Tel +64-4-384-7922 Fax +64-4-384-7924</FONT></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501bfca16$089a89a0$0201a8c0>
