Re: Loopback as user

From: bd (bdonlan_at_bd-home-comp.no-ip.org)
Date: 07/12/03


Date: Fri, 11 Jul 2003 19:56:36 -0400

On Fri, 11 Jul 2003 11:00:34 +0200, Thomas Güttler wrote:

> davide@yahoo.com wrote:
>
>> Thomas G?ttler <guettler@thomas-guettler.de> wrote:
>>> Is it possible to set a loopback device for mounting
>>> iso images as non root?
>>
>> I think you have to change the permission on the loop devices, or
>> use sudo (maybe faster)
>>
>> Davide
>
> That's sad. I would like do without getting root once.
>
> cd /var/tmp; mknod loop b 7 0
> does not work, too.
>
> "man mknod" does not say anything about permissions.
> Can only root create block devices?

Of course. If users could, they could create a user-writable block dev for
the hard drive. In addition, only root can mount (except user mounts in
/etc/fstab), as otherwise a user could mount over /, or mount a volume
with user-writeable block devs or suid binaries or something. Use a fstab
entry:
/path/to/image /mnt/foo iso9660 ro,user,loop,noauto 0 0

-- 
Freenet distribution not available
We can found no scientific discipline, nor a healthy profession on the
technical mistakes of the Department of Defense and IBM.
		-- Edsger Dijkstra


Relevant Pages

  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)
  • 2.6 kernel NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • Re: nfs help?
    ... If you use root on client to mount an export, ... NFS, the original ownership is maintained, but numerically: ...
    (Fedora)