Re: chown for the floppy group
Mark Panzer wrote:
>
> Kenneth Scharf wrote:
> >
> > You can also add a line to /etc/fstab for /dev/fd0 with options to
> > set to user access without mounting the disk. That way anyone may
> > mount a floppy.
> > -----------------------------------------------------
> Well, I suppose I better RTFM some more. However, I did a chgrp floppy
> /floppy, all is fine and dandy without any floppy mounted. However,
> when I mount a floppy as root the root group once again owns the /floppy
> directory which means I cannot write to it when I'm logged in as a
This is normal. The default uid/gid (as mount understands them) is
used when mounting. The uid/gid of the mount dir, when nothing is
mounted there, is meaningless. You need to pass a uid/gid option when
mounting that sets the user and group id's of the mounted filesystem.
For example:
/dev/hda1 /dosc vfat defaults,umask=002,uid=0,gid=35 0 0
This sets the files in my dos partition to be owned by root and the
'dos' group (look in /etc/group; it might already be there). The
umask=2 allows read/write access for members of group 35 (dos).
> standard user. I also have this problem when I try to mount my vfat
> win95 partiton. Another question when I try to mount a vfat partition I
> get the errors:
> Unable to load NLS charset cp437(nls_437)
> Unable to load NLS charset iso8859-1(nls_iso8859_1)
Do you have a codepage and NLS ISO xxxx selected in the filesystems
section of the kernel config? I have the following selected as modules
when building the kernel (all in the filesystem's section):
Native language support (this must be selected to see the other options
below)
DOS FAT fs support
MSDOS fs support
VFAT (windows-95) fs support
Codepage 437
NLS ISO 8859-1
> but I can still read and write to the disk (as root), I'm guessing I did
> something wrong when I recently compiled the kernel with kpkg.
>
> > >
> > > I noticed when I'm logged in as a normal user (not root) I cannot
> > write
> > > to the floppy drive. I checked out the permissions, I'm in the floppy
> > > group but /floppy belongs to root and is of the group root. While I
> > was
> > > root user I tried to
> > >
> > > chown .floppy /floppy
> > >
> > > but it says, root is not a member of the group floppy.
> >
> > Which is probably true. :)
> > What about this:
> >
> > # chgrp floppy /floppy
> >
> > _________________________________________________________
> > DO YOU YAHOO!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > --
> > Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
--
Ed C.
Reply to: