Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Mon, 2004-01-05 at 13:53, Stacey Roberts wrote: > Hello, > Thanks for the reply. > > - Original Message - > From: "Tom McLaughlin <[EMAIL PROTECTED]>" > To: To Stacey Roberts > Date: Sun, 04 Jan, 2004 21:54 GMT > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > On Sun, 2004-01-04 at 08:31, Stacey Roberts wrote: > > > Hello, > > > Thanks for the reply. > > > > > > - Original Message - > > > From: "Tom McLaughlin <[EMAIL PROTECTED]>" > > > To: To Stacey Roberts > > > Date: Sun, 04 Jan, 2004 05:48 GMT > > > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > > > > > > Stacey, what are permissions of /dev/acd0c? The handbook example > > > > changes the permissions of a SCSI cdrom. I made the mistake of not > > > > noticing this when I first tried to do make my cdrom user mountable. > > > > > > > > > > $ ls -la /dev/acd* > > > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0a > > > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0c > > > $ > > > > > > That's what the permissions are like after running through the procedure in the > > > HandBook. On that note, fr the record, on all machines, there are IDE CDROM > > > drives and one IDE CD-RW drive that I've got here. > > > > > > Thanks again. > > > > > > Regards, > > > > > > Stacey > > > > > > > Tom > > > > > > > > Stacey, do `chmod 666 /dev/acd0c`. That will give the first IDE cdrom > > drive the correct permissions. You should be able to pop in a disk and > > mount it in your directory then. > > > > [EMAIL PROTECTED] tom]$ ls -al /dev/acd* > > crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0a > > crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0c > > ... > > crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1a > > crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1c > > > > Yes., I tried this in the end (well., 644 instead of 666) and I am now able to mount > the cd-rw drive as an ordinary user, as well as the cdrom drives on the others.., > > However, this *does* seem to make the whole deal about adding users to the operator > group kind of redundant, it appears.., I could have left users where they were and > done the above and it would have worked all the same.., > > Also, if the HandBook has only procedures that would work for only SCSI drives, who > do I contact in order for some procedure relevant to those users in the community > that would want to / need to do the same for hosts with IDE drives? > > Thanks again for taking the time, and the patience.., > > Regards, > > Stacey > You might want to change the permissions to 666 so a user can write to the cd-rw. Also, section two of the same chapter goes over disk naming convention. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-naming.html I missed that too in the beginning. I actually gave up temporarily the first time I tried to make my cdroms and floppy user mountable. I started in on trying to add my other drive mounts and came across that section when trying to figure out what the disks were called. I've found a few times when doing things based on the handbook that I needed to start from the beginning of the chapter since it's written to be a read like book and not an FAQ. Tom ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hello, Thanks for the reply. - Original Message - From: "Tom McLaughlin <[EMAIL PROTECTED]>" To: To Stacey Roberts Date: Sun, 04 Jan, 2004 21:54 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > On Sun, 2004-01-04 at 08:31, Stacey Roberts wrote: > > Hello, > > Thanks for the reply. > > > > - Original Message - > > From: "Tom McLaughlin <[EMAIL PROTECTED]>" > > To: To Stacey Roberts > > Date: Sun, 04 Jan, 2004 05:48 GMT > > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > > > On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > > > > Hello, > > > > Thanks for the reply.., > > > > > > > > - Original Message - > > > > From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" > > > > To: To Stacey Roberts > > > > Date: Sun, 04 Jan, 2004 00:59 GMT > > > > Subject: Re: Mount /cdrom as non-root user - does this actually work for > > > > anyone? > > > > > > > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > > > > Hello, > > > > > > 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 > > > > > > ~ $ > > > > > > > > > > chmod +s /sbin/umount /sbin/mount > > > > > > > > > > works fine for me (without any other changes necessary). Don't know > > > > > if it's the recommended procedure though. > > > > > > > > > > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., > > > > Given that the HandBook provides what I thought would have been > > > > straight-forward instructions on what (presumably) is I hoped is a simple > > > > procedure.., I'd not want to start making undocumented config changes. > > > > > > > > Thanks all the same for taking the time to respond. > > > > > > > > Regards, > > > > > > > > Stacey > > > > > > > > > Gautam > > > > > > > > > > > Stacey, what are permissions of /dev/acd0c? The handbook example > > > changes the permissions of a SCSI cdrom. I made the mistake of not > > > noticing this when I first tried to do make my cdrom user mountable. > > > > > > > $ ls -la /dev/acd* > > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0a > > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0c > > $ > > > > That's what the permissions are like after running through the procedure in the > > HandBook. On that note, fr the record, on all machines, there are IDE CDROM drives > > and one IDE CD-RW drive that I've got here. > > > > Thanks again. > > > > Regards, > > > > Stacey > > > > > Tom > > > > > Stacey, do `chmod 666 /dev/acd0c`. That will give the first IDE cdrom > drive the correct permissions. You should be able to pop in a disk and > mount it in your directory then. > > [EMAIL PROTECTED] tom]$ ls -al /dev/acd* > crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0a > crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0c > ... > crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1a > crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1c > Yes., I tried this in the end (well., 644 instead of 666) and I am now able to mount the cd-rw drive as an ordinary user, as well as the cdrom drives on the others.., However, this *does* seem to make the whole deal about adding users to the operator group kind of redundant, it appears.., I could have left users where they were and done the above and it would have worked all the same.., Also, if the HandBook has only procedures that would work for only SCSI drives, who do I contact in order for some procedure relevant to those users in the community that would want to / need to do the same for hosts with IDE drives? Thanks again for taking the time, and the patience.., Regards, Stacey > > Tom > -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sun, 2004-01-04 at 08:31, Stacey Roberts wrote: > Hello, > Thanks for the reply. > > - Original Message - > From: "Tom McLaughlin <[EMAIL PROTECTED]>" > To: To Stacey Roberts > Date: Sun, 04 Jan, 2004 05:48 GMT > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > > > Hello, > > > Thanks for the reply.., > > > > > > - Original Message - > > > From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" > > > To: To Stacey Roberts > > > Date: Sun, 04 Jan, 2004 00:59 GMT > > > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > > > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > > > Hello, > > > > > 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 > > > > > ~ $ > > > > > > > > chmod +s /sbin/umount /sbin/mount > > > > > > > > works fine for me (without any other changes necessary). Don't know > > > > if it's the recommended procedure though. > > > > > > > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., Given > > > that the HandBook provides what I thought would have been straight-forward > > > instructions on what (presumably) is I hoped is a simple procedure.., I'd not > > > want to start making undocumented config changes. > > > > > > Thanks all the same for taking the time to respond. > > > > > > Regards, > > > > > > Stacey > > > > > > > Gautam > > > > > > > > Stacey, what are permissions of /dev/acd0c? The handbook example > > changes the permissions of a SCSI cdrom. I made the mistake of not > > noticing this when I first tried to do make my cdrom user mountable. > > > > $ ls -la /dev/acd* > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0a > crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0c > $ > > That's what the permissions are like after running through the procedure in the > HandBook. On that note, fr the record, on all machines, there are IDE CDROM drives > and one IDE CD-RW drive that I've got here. > > Thanks again. > > Regards, > > Stacey > > > Tom > > Stacey, do `chmod 666 /dev/acd0c`. That will give the first IDE cdrom drive the correct permissions. You should be able to pop in a disk and mount it in your directory then. [EMAIL PROTECTED] tom]$ ls -al /dev/acd* crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0a crw-rw-rw- 4 root operator 117, 0 Dec 18 00:53 /dev/acd0c ... crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1a crw-rw-rw- 4 root operator 117, 8 Dec 18 00:53 /dev/acd1c Tom ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sun, 4 Jan 2004 00:53:52 + Stacey Roberts <[EMAIL PROTECTED]> probably wrote: > 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: > http://www.freebsd.org/doc/en_US.IS...SER-FLOPPYMOUNT does *not* work > for me at all.., [snip] Why not use sudo (from the ports) and allow yourself (and anyone who needs) to mount the cdrom? Here's what I have in my sudoers file: df ALL=NOPASSWD: /sbin/umount /cdrom,\ /sbin/mount_cd9660 -o nosuid\,nodev /dev/acd0c /cdrom This means `df' can mount and unmount the cdrom. And I have a couple of scripts, `cdrom+' and `cdrom-', which contain the allowed commands above. As you see, I don't need a password or anything to mount the cdrom (NOPASSWD). HTH. > Regards, > > Stacey > -- > Stacey Roberts > B. Sc (HONS) Computer Science > > Web: www.vickiandstacey.com > -- DoubleF The penalty for laughing in a courtroom is six months in jail; if it were not for this penalty, the jury would never hear the evidence. -- H. L. Mencken pgp0.pgp Description: PGP signature
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hello, Thanks for the reply. - Original Message - From: "Tom McLaughlin <[EMAIL PROTECTED]>" To: To Stacey Roberts Date: Sun, 04 Jan, 2004 05:48 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > > Hello, > > Thanks for the reply.., > > > > - Original Message - > > From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" > > To: To Stacey Roberts > > Date: Sun, 04 Jan, 2004 00:59 GMT > > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > > Hello, > > > > 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 > > > > ~ $ > > > > > > chmod +s /sbin/umount /sbin/mount > > > > > > works fine for me (without any other changes necessary). Don't know > > > if it's the recommended procedure though. > > > > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., Given > > that the HandBook provides what I thought would have been straight-forward > > instructions on what (presumably) is I hoped is a simple procedure.., I'd not want > > to start making undocumented config changes. > > > > Thanks all the same for taking the time to respond. > > > > Regards, > > > > Stacey > > > > > Gautam > > > > > Stacey, what are permissions of /dev/acd0c? The handbook example > changes the permissions of a SCSI cdrom. I made the mistake of not > noticing this when I first tried to do make my cdrom user mountable. > $ ls -la /dev/acd* crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0a crw-r- 4 root operator 117, 0 Nov 9 14:21 /dev/acd0c $ That's what the permissions are like after running through the procedure in the HandBook. On that note, fr the record, on all machines, there are IDE CDROM drives and one IDE CD-RW drive that I've got here. Thanks again. Regards, Stacey > Tom > -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com pgp0.pgp Description: PGP signature
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sat, 2004-01-03 at 20:13, Stacey Roberts wrote: > Hello, > Thanks for the reply.., > > - Original Message - > From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" > To: To Stacey Roberts > Date: Sun, 04 Jan, 2004 00:59 GMT > Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > Hello, > > > 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 > > > ~ $ > > > > chmod +s /sbin/umount /sbin/mount > > > > works fine for me (without any other changes necessary). Don't know > > if it's the recommended procedure though. > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., Given > that the HandBook provides what I thought would have been straight-forward > instructions on what (presumably) is I hoped is a simple procedure.., I'd not want > to start making undocumented config changes. > > Thanks all the same for taking the time to respond. > > Regards, > > Stacey > > > Gautam > > Stacey, what are permissions of /dev/acd0c? The handbook example changes the permissions of a SCSI cdrom. I made the mistake of not noticing this when I first tried to do make my cdrom user mountable. Tom ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hello, Thanks for the kind reply.., - Original Message - From: "Joerg Pernfuss <[EMAIL PROTECTED]>" To: To [EMAIL PROTECTED] Date: Sun, 04 Jan, 2004 03:44 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > Hi > > On Sun, 4 Jan 2004 01:13:13 + > Stacey Roberts <[EMAIL PROTECTED]> wrote: > > > Hello, > > Thanks for the reply.., > > > > > [] > > > > > > chmod +s /sbin/umount /sbin/mount > > > > > > works fine for me (without any other changes necessary). Don't know > > > if it's the recommended procedure though. > > > > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., > > [] > > The setuid bit on mount/umount should also enable mounting/unmounting of > fixed disks, not only removeable media. Not sure if this is what you > intended at first hand... > Well., what I intended is to follow the instructions as laid out in the HandBook - which isn't working for me. > (4:31:01) [EMAIL PROTECTED]: ~> sysctl -a |grep usermount > vfs.usermount: 1 > (4:31:44) [EMAIL PROTECTED]: ~> id > uid=1001(elessar) gid=3000(users) groups=3000(users), 0(wheel), 5(operator), > 191(trusted), 666(ssh) > (4:31:48) [EMAIL PROTECTED]: ~> ll /dev/cd0c > crw-r- 1 root operator 15, 0 Jan 2 19:19 /dev/cd0c > (4:32:02) [EMAIL PROTECTED]: ~> ll -a cdrom/ > total 6 > drwxr-xr-x 2 elessar users 512 Oct 13 20:04 . > drwx-- 46 elessar users 2560 Jan 3 16:04 .. > (4:35:03) [EMAIL PROTECTED]: ~> ll /sbin/mount_cd9660 > -r-xr-xr-x 1 root wheel 85812 Dec 24 11:49 /sbin/mount_cd9660 > (4:35:16) [EMAIL PROTECTED]: ~> mount_cd9660 /dev/cd0c cdrom/ > (4:35:52) [EMAIL PROTECTED]: ~> ls cdrom/ > 5.1-RELEASE INSTALL.HTM bootcompat22floppiessrc > EARLY.HTM INSTALL.TXT boot.catalogcompat3xgames tools > EARLY.TXT README.HTM catpagescompat4xinfo > ERRATA.HTM README.TXT cdrom.inf crypto manpages > ERRATA.TXT RELNOTES.HTMcompat1xdictpackages > HARDWARE.HTMRELNOTES.TXTcompat20doc ports > HARDWARE.TXTbasecompat21docbook.css proflibs > (4:35:59) [EMAIL PROTECTED]: ~> umount cdrom/ > (4:36:07) [EMAIL PROTECTED]: ~> ls cdrom/ > (4:36:20) [EMAIL PROTECTED]: ~> > > This is from a RELENG_5_1 machine but I never had problems with > usermount on 4.x up to 4.8 either. Did you maybe change the permissions > on /sbin? I haven't touched anything to do with the cdrom devices on *any* of the machines here, nor have I ever had any cause to edit the permissions on any of the bin dirs.., Please understand my position here.., I don't *ever* stray away from standard installations, application configs, etc.., For the very reason that you have asked about "whether or not I've changed something"., Everything on this system is as stock as can be.., barring the userland appliacations for Gnome-2.4 Thanks again for the reply. Regards, Stacey > Just a guess for I cannot see an obvious error. > > Regards, > Joerg -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hi On Sun, 4 Jan 2004 01:13:13 + Stacey Roberts <[EMAIL PROTECTED]> wrote: > Hello, > Thanks for the reply.., > > > [] > > > > chmod +s /sbin/umount /sbin/mount > > > > works fine for me (without any other changes necessary). Don't know > > if it's the recommended procedure though. > > > > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., > [] The setuid bit on mount/umount should also enable mounting/unmounting of fixed disks, not only removeable media. Not sure if this is what you intended at first hand... (4:31:01) [EMAIL PROTECTED]: ~> sysctl -a |grep usermount vfs.usermount: 1 (4:31:44) [EMAIL PROTECTED]: ~> id uid=1001(elessar) gid=3000(users) groups=3000(users), 0(wheel), 5(operator), 191(trusted), 666(ssh) (4:31:48) [EMAIL PROTECTED]: ~> ll /dev/cd0c crw-r- 1 root operator 15, 0 Jan 2 19:19 /dev/cd0c (4:32:02) [EMAIL PROTECTED]: ~> ll -a cdrom/ total 6 drwxr-xr-x 2 elessar users 512 Oct 13 20:04 . drwx-- 46 elessar users 2560 Jan 3 16:04 .. (4:35:03) [EMAIL PROTECTED]: ~> ll /sbin/mount_cd9660 -r-xr-xr-x 1 root wheel 85812 Dec 24 11:49 /sbin/mount_cd9660 (4:35:16) [EMAIL PROTECTED]: ~> mount_cd9660 /dev/cd0c cdrom/ (4:35:52) [EMAIL PROTECTED]: ~> ls cdrom/ 5.1-RELEASE INSTALL.HTM bootcompat22floppiessrc EARLY.HTM INSTALL.TXT boot.catalogcompat3xgames tools EARLY.TXT README.HTM catpagescompat4xinfo ERRATA.HTM README.TXT cdrom.inf crypto manpages ERRATA.TXT RELNOTES.HTMcompat1xdictpackages HARDWARE.HTMRELNOTES.TXTcompat20doc ports HARDWARE.TXTbasecompat21docbook.css proflibs (4:35:59) [EMAIL PROTECTED]: ~> umount cdrom/ (4:36:07) [EMAIL PROTECTED]: ~> ls cdrom/ (4:36:20) [EMAIL PROTECTED]: ~> This is from a RELENG_5_1 machine but I never had problems with usermount on 4.x up to 4.8 either. Did you maybe change the permissions on /sbin? Just a guess for I cannot see an obvious error. Regards, Joerg pgp0.pgp Description: PGP signature
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hello, - Original Message - From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" To: To Chris Pressey Date: Sun, 04 Jan, 2004 01:11 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > On Sat, Jan 03, 2004 at 05:12:41PM -0800, Chris Pressey wrote: > > On Sun, 4 Jan 2004 11:59:29 +1100 > > Gautam Gopalakrishnan <[EMAIL PROTECTED]> wrote: > > > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > > Hello, > > > > 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 > > > > ~ $ > > > > > > chmod +s /sbin/umount /sbin/mount > > > > > > works fine for me (without any other changes necessary). Don't know > > > if it's the recommended procedure though. > > > > > > Gautam > > > > I worked around this a different way: I chown'd /dev/acd0c to the uid of > > the user. Probably *not* the recommended procedure :) > > I guess a cleaner solution is to add the user to the operator group > and chmod to 664. > Err.., but this *is* part of the procedure in the HandBook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT) that does not work for me.., Regards, Stacey > Gautam > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com pgp0.pgp Description: PGP signature
Re: Mount /cdrom as non-root user - does this actually work for anyone?
Hello, Thanks for the reply.., - Original Message - From: "Gautam Gopalakrishnan <[EMAIL PROTECTED]>" To: To Stacey Roberts Date: Sun, 04 Jan, 2004 00:59 GMT Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone? > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > Hello, > > 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 > > ~ $ > > chmod +s /sbin/umount /sbin/mount > > works fine for me (without any other changes necessary). Don't know > if it's the recommended procedure though. > Nor I, to be honest.., I'm not sure about setting the suid bit on mount.., Given that the HandBook provides what I thought would have been straight-forward instructions on what (presumably) is I hoped is a simple procedure.., I'd not want to start making undocumented config changes. Thanks all the same for taking the time to respond. Regards, Stacey > Gautam > -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com pgp0.pgp Description: PGP signature
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sat, Jan 03, 2004 at 05:12:41PM -0800, Chris Pressey wrote: > On Sun, 4 Jan 2004 11:59:29 +1100 > Gautam Gopalakrishnan <[EMAIL PROTECTED]> wrote: > > > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > > Hello, > > > 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 > > > ~ $ > > > > chmod +s /sbin/umount /sbin/mount > > > > works fine for me (without any other changes necessary). Don't know > > if it's the recommended procedure though. > > > > Gautam > > I worked around this a different way: I chown'd /dev/acd0c to the uid of > the user. Probably *not* the recommended procedure :) I guess a cleaner solution is to add the user to the operator group and chmod to 664. Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sun, 4 Jan 2004 11:59:29 +1100 Gautam Gopalakrishnan <[EMAIL PROTECTED]> wrote: > On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > > Hello, > > 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 > > ~ $ > > chmod +s /sbin/umount /sbin/mount > > works fine for me (without any other changes necessary). Don't know > if it's the recommended procedure though. > > Gautam I worked around this a different way: I chown'd /dev/acd0c to the uid of the user. Probably *not* the recommended procedure :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: > Hello, > 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 > ~ $ chmod +s /sbin/umount /sbin/mount works fine for me (without any other changes necessary). Don't know if it's the recommended procedure though. Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Mount /cdrom as non-root user - does this actually work for anyone?
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: http://www.freebsd.org/doc/en_US.IS...SER-FLOPPYMOUNT does *not* work for me at all.., Here's what I keep getting: Checking groups to which the user belongs: $ id stacey uid=1001(stacey) gid=1001(stacey) groups=1001(stacey), 0(wheel), 5(operator) ~ $ 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 -- Stacey Roberts B. Sc (HONS) Computer Science Web: www.vickiandstacey.com pgp0.pgp Description: PGP signature