Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 22:30:10 +0100
From:      "Markie" <markie@notwentytwo.freeserve.co.uk>
To:        <freebsd-questions@freebsd.org>, "Randy Grafton" <rgrafton@indatacorp.com>
Subject:   Re: fbtab and cdrom
Message-ID:  <004c01c2fe16$0e7269b0$f300a8c0@mrblossom>
References:  <000b01c2fedd$2a46dd70$7764a8c0@ITDept> <004201c2fe15$6da407f0$f300a8c0@mrblossom>

next in thread | previous in thread | raw e-mail | index | archive | help
Also doesn't the cdrom drive have to be unmounted to eject? :)

----- Original Message -----
From: "Markie" <markie@notwentytwo.freeserve.co.uk>
To: "Randy Grafton" <rgrafton@indatacorp.com>
Cc: <freebsd-questions@freebsd.org>
Sent: Tuesday, April 08, 2003 10:25 PM
Subject: Re: fbtab and cdrom


> Probably need to set
>
> sysctl -w vfs.usermount=1
>
> as root :)
> Then the users should be able to mount things to any directory which is
> owned and executable? by them.
>
> Markie
>
> ----- Original Message -----
> From: "Randy Grafton" <rgrafton@indatacorp.com>
> To: <freebsd-questions@freebsd.org>
> Sent: Wednesday, April 09, 2003 10:15 PM
> Subject: fbtab and cdrom
>
>
> I've just installed 4.8 and am having some trouble with non-root users
> mounting cdroms. I have following entries in /etc/fbtab:
> /dev/ttyv0 0640 /dev/acd0c
> /dev/ttyv0 0700 /cdrom
>
> and my fstab has:
> /dev/acd0c /cdrom cd9660 ro,noauto 0 0
>
> When I log into the console as a standard user and perform: mount /cdrom
> The system then responds with an "operation not permitted" message.
> My next attempts included changing the ownership on the /cdrom directory
and
> the /dev/acd0c and changing the permissions on these to 0777. I have also
> tried mount_cd9660 /dev/acd0c /cdrom
> and
> mount_cd9660 /dev/acd0c /home/{logged-in-user}/cdrom
> where /home/{logged-in-user}/cdrom is wholly owned by the logged-in-user.
> All attempts have resulted in the same message, "operation not permitted".
> However, if I log in as root I have no problems.
> I would really like to take the approach of using the fbtab file.
> My goal is that a non-root user can log in to the console and execute a
> script that mounts the cdrom, copies its contents to a folder on the
system
> and then unmounts the cdrom.
> Any and all help is appreciated.
>
> Thanks,
> -Randy
>
> P.S. I installed the eject program from the sysutils port and tried to
> implement it in my script, but I can't get that to behave either. Even
> trying it from the command line, the mounted cdrom won't eject.
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004c01c2fe16$0e7269b0$f300a8c0>