Date: Sun, 4 Jan 2004 00:53:52 +0000 From: Stacey Roberts <stacey@vickiandstacey.com> To: freebsd-questions@FreeBSD.ORG Subject: Mount /cdrom as non-root user - does this actually work for anyone? Message-ID: <20040104005352.GI6131@crom.vickiandstacey.com>
next in thread | raw e-mail | index | archive | help
--/9ZOS6odDaRI+0hI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I've just realised that I am unable to mount a cdrom disk as a non-root= user for *any* of my machines. All hosts concerned are running FreeBSD-4.9Stable, and running through: htt= p://www.freebsd.org/doc/en_US.IS...SER-FLOPPYMOUNT does *not* work for me a= t all.., Here's what I keep getting: Checking groups to which the user belongs: $ id stacey uid=3D1001(stacey) gid=3D1001(stacey) groups=3D1001(stacey), 0(wheel), 5(op= erator) ~ $ Checking to see if the vfs.usermount sysctl parameter is set: # sysctl -a | grep -i usermount vfs.usermount: 1 #mount /cdrom #ls /cdrom acrobat ds.dll intel pcplus95.inf setup.exe autorun.inf ds32.dll language pwrchute.ico setup16.exe demo.dbd install.txt manuals readme.txt win95 #exit As root I can mount and read the CD fine.., checking for non-root user: exit ~ $ mount /cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ mount -t cd9660 /dev/acd0c ~/cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ Attempting to mount to mount-point in user home dir: ~ $ cd ~ ~ $ pwd /home/stacey ~ $ ls -ltra cdrom total 6 drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./ drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../ ~ $ mount -t cd9660 /dev/acd0c ~/cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ This doesn't work either for me.., Checking device in /etc/fstab: ~ $ cat /etc/fstab # See the fstab(5) manual page for important information on automatic mounts # of network filesystems before modifying this file. # # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad1s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad1s1e /home ufs rw 2 2 /dev/ad0s1f /usr ufs rw 2 2 /dev/ad0s1e /var ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 ~ $ Is there some step that I've neglected somewhere along the way? This is the= same failure I see on all hosts.., doesn't matter which one.., Regards, Stacey --=20 Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com --/9ZOS6odDaRI+0hI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUBP/dkHX3Q4C/Onfd9AQHHzgf/YG2E1LolX0YR9Xb3lvRbwgOscJI38Kg0 PdFH0RqBn2s+T+I+sSpLY0uhoDrrxufcf4G4QNr6Vv25lgeZWNhGP4i8oSv1aXWa TKMxoSXOdkwhv482jiKj3MaPu6uC2cJrPr0dBOBkTVIblqTS/xZ7NTjwxrVP5rte wS9Prnkd+TSkZGoeTjkXpIARD5KWFeMKEm5/k3mMVHs8XgIKQxCdgYM0Sjiil7xm Yig+VPrBQrE7zXOEHxAhDB4us2kr9P8mbncTDN1/yn60b3IRpfYBrXfw9DbgiEqv Wc9Zckz5ZDDn4sHf1X51QvQ35x9JMs3fgcOzenxgVPmdGKB1BDm4eg== =+tu5 -----END PGP SIGNATURE----- --/9ZOS6odDaRI+0hI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040104005352.GI6131>