Mount - as regular user?

From: Tobias Brox (tobias_at_stud.cs.uit.no)
Date: 11/17/03


Date: Mon, 17 Nov 2003 18:59:58 +0000 (UTC)

So I'm sitting as a regular user at a computer. We are allowed to mount
things, i.e. the floppy - /etc/fstab has this line:

/dev/floppy /mnt/floppy vfat noauto,rw,user,nosuid,nodev,sync 0 0

Well, nice enough. Except for that the floppy is formatted ext2, not fat.
I have ownership to the device:

brw-rw---- 1 tobias floppy 2, 0 Jan 30 2003 /dev/fd0

But anyway ...

$ mount -t ext2 /mnt/floppy/
mount: only root can do that

$ mount -t ext2 /dev/fd0 ~/floppy
mount: only root can do that

$ mount -o loop -t ext2 ~/floppy.img ~/floppy
mount: only root can do that

Why can't I do this? What problems are there to allow regular users doing
this?

-- 
Tobias Brox - +47 917 000 50 - http://www.cs.uit.no/~tobias/
Check our new Mobster game at http://mobster.td.org.uit.no/
(web game, updates every 4th hour, no payment, no commercials)


Relevant Pages

  • Re: Permission Problem
    ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
    (alt.os.linux.suse)
  • Re: Permission Problem
    ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
    (alt.os.linux.suse)
  • Re: Write to floppy?
    ... root and trying to mount it with -w as root. ... Are you sure that the little tab on the floppy has not been set to read ... matt@mattspc /mnt $ touch usb/file ...
    (Ubuntu)
  • Re: Permission Problem
    ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... USB thumb drives and floppy disks are often formatted with a FAT ...
    (alt.os.linux.suse)
  • Re: writeprotection of unmounted mountpoints automaitcally - possible??
    ... >>options should change the permissions. ... Changing the mount point options does not affect the mount ... root can still write to the raw device, ... will be usable by the regular user, but the directory will not be ...
    (Fedora)