Re: [SLUG] Stupid Floppy Tricks

From: Dylan William Hardison (dylanwh@tampabay.rr.com)
Date: Mon Jul 19 2004 - 01:48:48 EDT


Spake Paul M Foster on Monday, July 19, 2004 at 01:27AM -0400:
> On Sun, Jul 18, 2004 at 09:34:32PM -0400, Dylan William Hardison wrote:
>
> > Spake Paul M Foster on Sunday, July 18, 2004 at 09:04PM -0400:
> > > On Sun, Jul 18, 2004 at 08:30:52PM -0400, Dylan William Hardison wrote:
> > >
> > > > Spake Paul M Foster on Sunday, July 18, 2004 at 06:56PM -0400:
> > > > > This seems like a really dumb question to me, but for some reason I
> > > > > can't figure it out. As a regular user, I want to mount, unmount and
> > > > > write to my floppy drive.
> > > > >
> > > > > The mount and unmount parts work fine with sudo. It's copying files to
> > > > > the floppy that present the problem. The floppy (and other devices) are
> > > > > mounted at the /media hierarchy. I've set all these directories to
> > > > > root.disk ownership, with group write permissions, and I'm in the disk
> > > > > group. But when the floppy _mounts_, it has root.root ownership and the
> > > > > group write permissions are gone.
> > > > >
> > > >
> > > > Looks like you need the "user" option in fstab or to the mount
> > > > command. Also possibly you want to use uid=0,gid=$GID_OF_DISC.
> > >
> > > I already have "user" as an option for the mount command. This option
> > > only applies to mounting and unmounting (which work fine), according to
> > > the man page.
> > >
> > > The uid/gid options only work with msdos, fat and vfat options. Using
> > > them with ext2 garners an error message and failure to mount.
> > >
> >
> > Oh, an ext2 floppy? Nifty. Unless you leave it in the drive
> > when the computer reboots (Well, just a black screen and having to
> > control-alt-del).
> >
> > In that case, mount the floppy, chown -R root.disk /media/floppy,
> > and you're set. Now just pray that group "disk" has the same gid on every
> > system that
> > this floppy is going to be on. :)
>
> Er, um, well I didn't want to go through a lot of after-the-fact
> permission-whacking.
>
> There does appear to be a solution; I just don't like it much. You can
> give the mount point 777 permissions. Then it appears to allow writing
> by a user. I think there's some interaction here with the umask, which
> is usually 022. But I didn't want to take the time to do all the
> experimentation to work that out.

if it is ext2fs, the permisions are part of the filesystem on the media.
You have to change the permisions on the media's filesystem, I believe, not the mount
point.

-- 
"If there is not love in your heart, so sorry,
 then there will never be hope for you."
             -- David "Ziggy" Marley, "Tomorrow People" (song)
-
GPG Fingerprint=D67D 2B75 53C6 9769 30E4  D390 239F C833 F32C F6F6
GPG KeyID=F32CF6F6
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:37:15 EDT