1

Do I need to have root privilege in order to create and use a loop device? Suppose I have an ISO file dir.iso containing an image of the directory dir. I want to mount dir.iso as a directory data and access its files. I've done this in the past using a loop device, but I don't remember how.

Paul A.
  • 2,141
  • 2
    IIRC creation of a loop device can be done by non-root users, but mounting needs root, since otherwise you can gain root by mounting to system directories. – muru Nov 02 '21 at 02:10
  • A very similar question on U&L SE: https://unix.stackexchange.com/questions/202609 – user535733 Nov 02 '21 at 04:31
  • You can open/mount ISO using Disk Image Mounter, see https://askubuntu.com/a/519858/66509 . – N0rbert Nov 02 '21 at 06:54

0 Answers0