Re: /cdrom for normal users?

2002-07-19 Thread Brian T . Schellenberger

On Thursday 18 July 2002 02:54 pm, Steve Mazerski wrote:
| On Thursday 18 July 2002 20:09, Daniel Bye wrote:
|  On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote:
|   By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD.
|   You can make it mountable by normal users by changing the /etc/fstab
|   entry to users,ro,noauto
|  
|   /dev/acd0c  /cdrom  cd9660 users,ro,noauto   0
|   0
| 
|  Hmm, just edited my /etc/fstab to look like this, and I get a different
|  message:
| 
|  cd9660: -o users: option not supported

Right.  That's because you can't do that in FreeBSD.  I wish you could, too.
At least, it's never worked for me.


|  However, google brought me this:
| 
|  http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOP
| PY MOUNT

That's ok if you can live with users being able to mount only into their own 
directories, but I found that rather awkward.

I use op (from the ports/packages) to permit ordinary users to mount the 
cdrom.  This is a sort of super sudo command that you use to give limited 
or full access with or without passwords to various commands.

It means that ordinary users would mount with

   op mount /cdrom

rather than just 

   mount /cdrom.

Myself, I alias 

   mount

to 

   op mount

in my ordinary user profile.


-- 
Brian, the man from Babble-On . . . .   [EMAIL PROTECTED] (personal)
http://www.babbleon.org

http://www.eff.org  http://www.programming-freedom.org 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: /cdrom for normal users?

2002-07-18 Thread Balaji, Pavan


By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You
can make it mountable by normal users by changing the /etc/fstab entry to
users,ro,noauto

/dev/acd0c  /cdrom  cd9660 users,ro,noauto   0   0

Pavan Balaji,
Intel Corporation

Only the Paranoid Survive  --  Andy Grove


 -Original Message-
 From: Steve Mazerski [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 5:14 PM
 To: [EMAIL PROTECTED]
 Subject: /cdrom for normal users?
 
 
 
 Is it the done thing in FreeBSD for normal users to mount CD-ROMs 
 in a local directory rather than /cdrom? 
 
 As a normal user all I get is this:
 
   localuser  mount /cdrom 
   cd9660: /dev/acd0c: Operation not permitted
 
 despite changing the permissions on both the CD-ROM device and /cdrom
 to 660 and ensuring the local user is in the relevant groups
 
 I can mount CD-ROMs in a directory owned by the normal user.
 
 I ask because in Linux, /cdrom is generally useable as a mount point
 by all users. It's not a problem, just wondering.
 
 For reference: 
 
 the relevant line in /etc/fstab:
 
   /dev/acd0c  /cdrom  cd9660  ro,noauto   
 0   0
 
 vfs.usermount is set to 1, and yes, I have read this page:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.htm
l#USER-FLOPPYMOUNT


S.Mazerski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /cdrom for normal users?

2002-07-18 Thread Steve Mazerski

On Thursday 18 July 2002 20:09, Daniel Bye wrote:
 On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote:
  By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You
  can make it mountable by normal users by changing the /etc/fstab entry to
  users,ro,noauto
 
  /dev/acd0c  /cdrom  cd9660 users,ro,noauto   0  
  0

 Hmm, just edited my /etc/fstab to look like this, and I get a different
 message:

 cd9660: -o users: option not supported

That's what I got when I borrowed the relevent line from my Linux
/etc/fstab. Being a hopeless beginner I presumed this was a naive
error on my part and discretely forgot to mention it.

 However, google brought me this:

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPY
MOUNT

Thanks, but been there, done that (see my original mail).

So, what's up? At the moment things look like this?

localuser@localhost  uname -a
FreeBSD localhost.local 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sun Jul 14 
17:14:44 CEST 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/KERNEL_1  
i386

(I recompiled the kernel for ext2fs support)

root# sysctl -a | fgrep vfs\.usermount
vfs.usermount: 1

localuser@localhost  ls -ld /cdrom
drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
localuser@localhost  ls -l /dev/acd0c
crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
localuser@localhost  groups
localuser wheel operator
localuser@localhost  cat /etc/fstab | fgrep cdrom
/dev/acd0c  /cdrom  cd9660  ro,noauto,users 0   0
localuser@localhost  mount /cdrom 
cd9660: -o users: option not supported
localuser@localhost   mount -t cd9660 /dev/acd0c  ~/cdrom 
localuser@localhost   ls ~/cdrom
EULAREADME  RedHat  autorun
GPL RPM-GPG-KEY TRANS.TBL

(well, it was the first one I had to hand ;-)

Any ideas? Just wondering...
(I may of course be overlooking something).

S.Mazerski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /cdrom for normal users?

2002-07-18 Thread Adam Weinberger

there is no such parameter passable to mount called users. it needs to
be removed. if you can mount it from the command line, you should make
the fstab line agree with it, and i see no reason why it wouldn't then
work.

keep in mind that in your fstab, you are attempting to mount the CDROM
onto /cdrom. on the command-line, you mounted it onto ~/cdrom. does
localuser have permissions on /cdrom? what are those permissions right
now?

so, in fstab:
/dev/acd0c  /home/localuser/cdrom   cd9660  ro,noauto 0 0

should work fine.

change permissions on /cdrom and i'd assume:
/dev/acd0c  /cdrom  cd9660  ro,noauto 0 0

should work fine.

-Adam


 (07.18.2002 @ 1154 PST): Steve Mazerski said, in 2.1K: 
 On Thursday 18 July 2002 20:09, Daniel Bye wrote:
  On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote:
   By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You
   can make it mountable by normal users by changing the /etc/fstab entry to
   users,ro,noauto
  
   /dev/acd0c  /cdrom  cd9660 users,ro,noauto   0  
   0
 
  Hmm, just edited my /etc/fstab to look like this, and I get a different
  message:
 
  cd9660: -o users: option not supported
 
 That's what I got when I borrowed the relevent line from my Linux
 /etc/fstab. Being a hopeless beginner I presumed this was a naive
 error on my part and discretely forgot to mention it.
 
  However, google brought me this:
 
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPY
 MOUNT
 
 Thanks, but been there, done that (see my original mail).
 
 So, what's up? At the moment things look like this?
 
 localuser@localhost  uname -a
 FreeBSD localhost.local 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sun Jul 14 
 17:14:44 CEST 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/KERNEL_1  
 i386
 
 (I recompiled the kernel for ext2fs support)
 
 root# sysctl -a | fgrep vfs\.usermount
 vfs.usermount: 1
 
 localuser@localhost  ls -ld /cdrom
 drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
 localuser@localhost  ls -l /dev/acd0c
 crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
 localuser@localhost  groups
 localuser wheel operator
 localuser@localhost  cat /etc/fstab | fgrep cdrom
 /dev/acd0c  /cdrom  cd9660  ro,noauto,users 0   0
 localuser@localhost  mount /cdrom 
 cd9660: -o users: option not supported
 localuser@localhost   mount -t cd9660 /dev/acd0c  ~/cdrom 
 localuser@localhost   ls ~/cdrom
 EULAREADME  RedHat  autorun
 GPL RPM-GPG-KEY TRANS.TBL
 
 (well, it was the first one I had to hand ;-)
 
 Any ideas? Just wondering...
 (I may of course be overlooking something).
 
 S.Mazerski
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 end of Re: /cdrom for normal users? from Steve Mazerski 


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]
http://vectors.cx


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /cdrom for normal users?

2002-07-18 Thread Steve Mazerski

On Thursday 18 July 2002 23:20, Adam Weinberger wrote:
 there is no such parameter passable to mount called users. it needs to
 be removed. if you can mount it from the command line, you should make
 the fstab line agree with it, and i see no reason why it wouldn't then
 work.

 keep in mind that in your fstab, you are attempting to mount the CDROM
 onto /cdrom. on the command-line, you mounted it onto ~/cdrom. does
 localuser have permissions on /cdrom? what are those permissions right
 now?

As posted in the prior mail:

  localuser@localhost  ls -ld /cdrom
  drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
  localuser@localhost  ls -l /dev/acd0c
  crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
  localuser@localhost  groups
  localuser wheel operator

setting /etc/fstab with

  /dev/acd0c/cdrom  cd9660  ro,noauto 0 0

produces:

localuser@localhost  mount /cdrom
cd9660: /dev/acd0c: Operation not permitted

Am I missing something, or is something missing me? ;-)

S.Mazerski


  (07.18.2002 @ 1154 PST): Steve Mazerski said, in 2.1K: 
 
  On Thursday 18 July 2002 20:09, Daniel Bye wrote:
   On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote:
By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD.
You can make it mountable by normal users by changing the /etc/fstab
entry to users,ro,noauto
   
/dev/acd0c  /cdrom  cd9660 users,ro,noauto   0
0
  
   Hmm, just edited my /etc/fstab to look like this, and I get a different
   message:
  
   cd9660: -o users: option not supported
 
  That's what I got when I borrowed the relevent line from my Linux
  /etc/fstab. Being a hopeless beginner I presumed this was a naive
  error on my part and discretely forgot to mention it.
 
   However, google brought me this:
  
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FL
  OPPY MOUNT
 
  Thanks, but been there, done that (see my original mail).
 
  So, what's up? At the moment things look like this?
 
  localuser@localhost  uname -a
  FreeBSD localhost.local 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sun Jul 14
  17:14:44 CEST 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/KERNEL_1
  i386
 
  (I recompiled the kernel for ext2fs support)
 
  root# sysctl -a | fgrep vfs\.usermount
  vfs.usermount: 1
 
  localuser@localhost  ls -ld /cdrom
  drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
  localuser@localhost  ls -l /dev/acd0c
  crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
  localuser@localhost  groups
  localuser wheel operator
  localuser@localhost  cat /etc/fstab | fgrep cdrom
  /dev/acd0c  /cdrom  cd9660  ro,noauto,users 0   0
  localuser@localhost  mount /cdrom
  cd9660: -o users: option not supported
  localuser@localhost   mount -t cd9660 /dev/acd0c  ~/cdrom
  localuser@localhost   ls ~/cdrom
  EULAREADME  RedHat  autorun
  GPL RPM-GPG-KEY TRANS.TBL
 
  (well, it was the first one I had to hand ;-)
 
  Any ideas? Just wondering...
  (I may of course be overlooking something).
 
  S.Mazerski
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 
  end of Re: /cdrom for normal users? from Steve Mazerski 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /cdrom for normal users?

2002-07-18 Thread Adam Weinberger

user localhost doesn't have access to read from /dev/acd0c.

-Adam


 (07.18.2002 @ 1245 PST): Steve Mazerski said, in 3.5K: 
 On Thursday 18 July 2002 23:20, Adam Weinberger wrote:
  there is no such parameter passable to mount called users. it needs to
  be removed. if you can mount it from the command line, you should make
  the fstab line agree with it, and i see no reason why it wouldn't then
  work.
 
  keep in mind that in your fstab, you are attempting to mount the CDROM
  onto /cdrom. on the command-line, you mounted it onto ~/cdrom. does
  localuser have permissions on /cdrom? what are those permissions right
  now?
 
 As posted in the prior mail:
 
   localuser@localhost  ls -ld /cdrom
   drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
   localuser@localhost  ls -l /dev/acd0c
   crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
   localuser@localhost  groups
   localuser wheel operator
 
 setting /etc/fstab with
 
   /dev/acd0c  /cdrom  cd9660  ro,noauto 0 0
 
 produces:
 
 localuser@localhost  mount /cdrom
 cd9660: /dev/acd0c: Operation not permitted
 
 Am I missing something, or is something missing me? ;-)
 
 S.Mazerski
 
 
   (07.18.2002 @ 1154 PST): Steve Mazerski said, in 2.1K: 
  
   On Thursday 18 July 2002 20:09, Daniel Bye wrote:
On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote:
 By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD.
 You can make it mountable by normal users by changing the /etc/fstab
 entry to users,ro,noauto

 /dev/acd0c  /cdrom  cd9660 users,ro,noauto   0
 0
   
Hmm, just edited my /etc/fstab to look like this, and I get a different
message:
   
cd9660: -o users: option not supported
  
   That's what I got when I borrowed the relevent line from my Linux
   /etc/fstab. Being a hopeless beginner I presumed this was a naive
   error on my part and discretely forgot to mention it.
  
However, google brought me this:
   
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FL
   OPPY MOUNT
  
   Thanks, but been there, done that (see my original mail).
  
   So, what's up? At the moment things look like this?
  
   localuser@localhost  uname -a
   FreeBSD localhost.local 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sun Jul 14
   17:14:44 CEST 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/KERNEL_1
   i386
  
   (I recompiled the kernel for ext2fs support)
  
   root# sysctl -a | fgrep vfs\.usermount
   vfs.usermount: 1
  
   localuser@localhost  ls -ld /cdrom
   drwxrwxr-x  2 root  wheel  512 Jul 14 18:10 /cdrom
   localuser@localhost  ls -l /dev/acd0c
   crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c
   localuser@localhost  groups
   localuser wheel operator
   localuser@localhost  cat /etc/fstab | fgrep cdrom
   /dev/acd0c  /cdrom  cd9660  ro,noauto,users 0   0
   localuser@localhost  mount /cdrom
   cd9660: -o users: option not supported
   localuser@localhost   mount -t cd9660 /dev/acd0c  ~/cdrom
   localuser@localhost   ls ~/cdrom
   EULAREADME  RedHat  autorun
   GPL RPM-GPG-KEY TRANS.TBL
  
   (well, it was the first one I had to hand ;-)
  
   Any ideas? Just wondering...
   (I may of course be overlooking something).
  
   S.Mazerski
  
  
   To Unsubscribe: send mail to [EMAIL PROTECTED]
   with unsubscribe freebsd-questions in the body of the message
  
   end of Re: /cdrom for normal users? from Steve Mazerski 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 end of Re: /cdrom for normal users? from Steve Mazerski 


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]
http://vectors.cx


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /cdrom for normal users?

2002-07-18 Thread Steve Mazerski

On Friday 19 July 2002 00:15, Adam Weinberger wrote:
 user localhost doesn't have access to read from /dev/acd0c.

 -Adam

user localhost is in group operator, and /dev/acd0c
is readable by group operator:

  localuser@localhost  ls -l /dev/acd0c 
  crw-rw  4 root  operator  117,   0 Jul 14 18:15 /dev/acd0c

If I am missing something fundemental here, please say.

Setting /dev/acd0c to a+rw didn't make any difference.

vfs.usermount is set to 1, the CD-ROM works and I can
mount it in a directory _owned_ by localuser. I can
mount it on /cdrom if I chown it to localuser.


S.Mazerski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message