Re: [SLUG] Stupid Floppy Tricks

From: Russell Hires (rhires@earthlink.net)
Date: Sun Jul 18 2004 - 20:38:19 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Paul!

- From the mount man page:

 (iii) Normally, only the superuser can mount file systems. However, when
fstab contains the user option on a line, then anybody can mount the
corresponding system.
       Thus, given a line
              /dev/cdrom /cd iso9660 ro,user,noauto,unhide
       any user can mount the iso9660 file system found on his CDROM using the
command
              mount /dev/cdrom
       or
              mount /cd
       For more details, see fstab(5). Only the user that mounted a
filesystem can unmount it again. If any user should be able to unmount, then
use users instead of user in the fstab line.

HTH

Russell

On Sunday 18 July 2004 18:56, Paul M Foster wrote:
> 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.
>
> (Don't suggest I make cp a sudo command. I'm not always using the cp
> command to copy files.)
>
> Any ideas?
>
> Paul
>
> -----------------------------------------------------------------------
> 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.

- --
Linux -- the OS for the Renaissance Man
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA+xf8AqKGrvVshJQRAsbSAJ4kzGJs0L2ghyO0CKEY13803pO1nACgiKyk
gEn7Jx6WK0vcEUwzCf1oC14=
=2fpX
-----END PGP SIGNATURE-----

-----------------------------------------------------------------------
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:35:29 EDT