fuse + encfs, kann mounten, aber nicht mit fusermount abhängen

1603
ccook

Ich habe zwei Verzeichnisse zu Hause erstellt und sie mit Standardkonfigurationen mit Encfs gemountet.

Das hat gut funktioniert, das Dateisystem ist gut eingehängt und verschlüsselt.

Der merkwürdige Teil ist jetzt, dass ich es nicht ohne erhöhte Privilegien mit fusermount lösen kann .

$ fusermount: Unmount [Pfad]: Berechtigung verweigert

Welche Erlaubnis wird benötigt?

Ein wenig zu graben scheint der Fehler von umount2 () zu sein

Beachten Sie, ich bin kein Mitglied der Gruppe 'fuse', aber Lese- und Schreibberechtigungen für fusermount wurden allen erteilt. Ich habe keinen root / sudo Zugang.

1

1 Antwort auf die Frage

0
bk-se

Next time give us output of your ls -l /bin/fusermount.

Executable /bin/fusermount permissions normally (fusermount version: 2.8.3, on Centos 6.6) are:

$ ls -l /bin/fusermount -rwsr-x--- 1 root fuse 32336 Dec 7 2011 /bin/fusermount 

Which mean you must be root or in the fuse group to execute it.

If you gave the write permission to everyone on the executable /bin/fusermount, that is 100% wrong, because it permits anyone to damage it or replace it with an exploit. Those with execute permission on it (i.e. users in the fuse group) might gain a root shell.

If by ... has been given to everyone you actually gave everyone write permission to the directories inside the mounted filesystem (in attempt to let them unmount), those directory permissions are irrelevant to control of the mount itself via fusermount.