system refuse to mount CDROMs from ordinary users

2003-01-23 Thread oscar wicks
hello,

my system refuses to mount remobable medias as  floppies and CDROMs,

tells me this:

%mount -t cd9660 /dev/acd0c /cdrom
cd9660: /dev/acd0c: Operation not permitted
%

info that may help to figure up this scenario is:

%uname -a
FreeBSD kris 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 
2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
%
i follow instructions that shows in :
/usr/share/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT
(BTW i replace for my this example by my real devs)
and user info is:
%id marcus
uid=1001(marcus) gid=1001(marcus) groups=1001(marcus), 0(wheel), 5(operator)
%

toto# pw groupshow operator
operator:*:5:marcus
toto# ls -l /dev/acd0c
crw-r-  4 root  operator  117,   0 Jan 17 06:08 /dev/acd0c

toto# sysctl -a
kern.ostype: FreeBSD
kern.osrelease: 4.7-RELEASE
kern.osrevision: 199506
kern.version: FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC

kern.maxvnodes: 8179
kern.maxproc: 932
kern.maxfiles: 1864
kern.argmax: 65536
kern.securelevel: -1
kern.hostname: toto
kern.hostid: 0
[...]
vfs.usermount: 1
[...]

any idea?

oscar wicks

P.D. Please send any answer to this email address,  i'm not suscriber of 
this mail list.








_
MSN. Más Útil Cada Día  http://www.msn.es/intmap/


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


Re: system refuse to mount CDROMs from ordinary users

2003-01-23 Thread Lowell Gilbert
oscar wicks [EMAIL PROTECTED] writes:

 my system refuses to mount remobable medias as  floppies and CDROMs,
 
 tells me this:
 
 %mount -t cd9660 /dev/acd0c /cdrom
 cd9660: /dev/acd0c: Operation not permitted
 %

other information snipped

Looks like the user doesn't own /cdrom.

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



Re: system refuse to mount CDROMs from ordinary users

2003-01-23 Thread Lowell Gilbert
oscar wicks [EMAIL PROTECTED] writes:

 From: Lowell Gilbert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], oscar wicks [EMAIL PROTECTED]
 Subject: Re: system refuse to mount CDROMs from ordinary users
 Date: 23 Jan 2003 17:51:03 -0500
 
 oscar wicks [EMAIL PROTECTED] writes:
 
   my system refuses to mount remobable medias as  floppies and CDROMs,
  
   tells me this:
  
   %mount -t cd9660 /dev/acd0c /cdrom
   cd9660: /dev/acd0c: Operation not permitted
   %
 
 other information snipped
 
 Looks like the user doesn't own /cdrom.
 
 thanks for RE:
 
 great! works now, but... how can i share with other normal users (not
 only marcus) /cdrom owner WAS root and group
 WAS wheel,  if group and ownership changes to marcus only root and
 marcus can use  cdrom,

Yes.  That's a feature, not a bug:  it means the person mounting the
device has control of the permissions on the base of the mounted
filesystem.  

There are a number of common approaches, but the two most common are
to either have the users mount the devices within their own
filesystems, or use fbtab(5) (or Xsetup, etc., as appropriate) to give
the console user the ownership of /cdrom.

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