0

I understand similar questions have been asked but truthfully none answer my question.

I downloaded a file using a torrent, and basically I need to replace a .jar file in there with another, yet NOTHING I do will give me permission to do so!

~/virtual-drives/1/java/jar$ rm install.jar
rm: cannot remove ‘install.jar’: Function not implemented

so when I go through sudo:

~/virtual-drives/1/java/jar$ sudo rm install.jar
rm: cannot remove ‘install.jar’: Permission denied

and as root:

 /home/joshuajoseph/virtual-drives/1/java/jar# rm install.jar
 rm: cannot remove ‘install.jar’: Permission denied

can't even change permissions:

/home/joshuajoseph/virtual-drives/1/java/jar# chmod 777 /home/joshuajoseph/virtual-drives/1/java/jar/
chmod: cannot access ‘/home/joshuajoseph/virtual-drives/1/java/jar/’: Permission denied

I can't even do it when I go manually through the archive manager, that still doesn't allow me to delete it.

so as you see, NOTHING I do is working. Can anyone offer a suggestion? I welcome them all!

  • 1
    Look at this: (unix.stackexchange.com/a/7468) According to this, file is part of folder, so you also must check if you have permissions for that folder, including group permission. – Sergiy Kolodyazhnyy Sep 20 '14 at 8:44
  • 2
    @Xieerqi root always has permissions. Joshua, this virtual drive, is it a separate partition? Is it mounted read-only? – muru Sep 20 '14 at 9:44
  • @muru It is mounted but this seems to suggest it is read-write: fuseiso on /home/joshuajoseph/virtual-drives/1 type fuse.fuseiso (rw,nosuid,nodev,user=joshuajoseph) yeah I understand root should be able to do all, perhaps I'm not entering the right commands? – Joshua D'Agostino Sep 21 '14 at 16:01
  • @muru Also I thought I'd show this, when I ls -l in the virtual drives directory, I see 7 directories there. Only directory 1 is mounted right now, and when I'm root attempting to change permissions, this is what I see. The remaining 3 - 7 look the same as number 2: d????????? ? ? ? ? ? 1 | drwxrwxrwx 2 joshuajoseph joshuajoseph 4096 Sep 21 01:12 2 – Joshua D'Agostino Sep 21 '14 at 16:01
  • @muru sorry for the amount of comments, just trying to give as much info as possible. When I'm in virtual drive 1, the mounted one, and I ls inside there as root, here's what I get: root@joshuajoseph-HP-Compaq-6710b:/home/joshuajoseph/virtual-drives/1# ls ls: cannot open directory .: Permission denied See what I mean? As root I'm not allowed any permissions? What's going on here? – Joshua D'Agostino Sep 21 '14 at 16:06
1

You're using fuse to mount the images. From man mount.fuse (section on SECURITY):

3. No other user (including root) can access the contents of the mounted filesystem.

Even though the mount options say rw, I think you cannot use it to modify ISOs. You'll have to use other tools like isomaster for that.

  • Ah alright I see, is there a way around this then? – Joshua D'Agostino Sep 21 '14 at 16:49
  • 1
    @JoshuaD'Agostino even though it says its mounted rw, I don't think you can delete/modify files in ISOs via fuse. I think you should look at some iso editing tool. – muru Sep 21 '14 at 16:52
  • Cheers, used ISO Master. Works a charm. Thanks for your help! – Joshua D'Agostino Sep 21 '14 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.