[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: allow mount to normal user



Adam Klein wrote:
> 
> On Mon, Dec 01, 1997 at 05:02:06PM -0600, Paul Serice wrote:
> > Adam Klein wrote:
> > >
> > > On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
> > > > On Sun, 30 Nov 1997, Benoit Joly wrote:
> > > >
> > > > > i want to allow normal user to use mount for floppy and cdrom.
> > > > > because i dont want to run apps in root account...
> > > > > what should i do.
> > > >
> > > > One of the options you can specify to mount is the 'user' option which
> > > > allows ordinary users to mount a filesystem. Check 'man 8 mount' for
> > > > further details.
> > > >
> > > > Anand.
> > >
> > > The problem with that is that you can only specify one filesystem type.
> > > I've got this problem two.  Is there a solution?
> > >
> >
> > I believe using "auto" as the file type should do the trick.
> >
> >
> > Paul Serice
> 
> Nope, that doesn't work.

"man mount" and search for the following language:

              Note  that  the  auto  type may be useful for user-
              mounted floppies.


Make sure you're putting "auto" in the right place.  For example,

/dev/scd0  /cdrom      iso9660  ro,suid,dev,exec,noauto,user,async 0 1
/dev/fd0   /floppy     auto     rw,suid,dev,exec,noauto,user,sync  0 0
                       ^^^^                      ^^^^^^

This definitely works for me as far as auto detecting ext2 or vfat
floppies via the KDE floppy mount icon (or the rustic command line).

Something else I've learned is that if you plan on using auto, I
would recompile your kernel to exclude "msdos" support but include
"vfat" support.  The reason is that "auto" will check first for msdos
8.3 format.  Because vfat floppies meet the criteria, they will be
mounted as 8.3.  If you compile out msdos support, you'll be able to
mount the floppies as vfat.


Regards,
Paul Serice


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: