You are not logged in.

#1 2013-03-25 01:03:15

delacruz
Member
From: /home/houston
Registered: 2007-12-09
Posts: 102

[SOLVED] rarfs: umount as regular user

I'm using rarfs from the AUR.  I can mount as a regular user with something like the following:

rarfs /foo/bar/file.rar /foo/bar/mnt/

However I am not able to umount as regular user with something like the following:

umount /foo/bar/mnt

I am presented with

umount: /foo/bar/mnt: umount failed: Operation not permitted

When I do an strace the last few lines are like:

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f114aeb5000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2502
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f114aeb5000, 4096)            = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "umount: ", 8umount: )                 = 8
write(2, "/foo/bar"..., 73/foo/bar/mnt: umount failed) = 73
write(2, ": ", 2: )                       = 2
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Operation not permitted\n", 24Operation not permitted
) = 24
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++

Any ideas?

Thanks




SOVLED:

Solved with:

fusermount -u mountpoint

Last edited by delacruz (2013-03-25 01:21:09)

Offline

#2 2013-03-25 01:18:37

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 5,011

Re: [SOLVED] rarfs: umount as regular user

You have to be root to use umount (unless the filesystem is declared in fstab with the 'user' or 'users' options). Sounds like this is a fuse filesystem though, so just use "fusermount -u mountpoint" to unmount it.

Last edited by WorMzy (2013-03-25 01:18:52)


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#3 2013-03-25 01:20:11

delacruz
Member
From: /home/houston
Registered: 2007-12-09
Posts: 102

Re: [SOLVED] rarfs: umount as regular user

WorMzy wrote:

You have to be root to use umount (unless the filesystem is declared in fstab with the 'user' or 'users' options). Sounds like this is a fuse filesystem though, so just use "fusermount -u mountpoint" to unmount it.


W00t worked.  Cant believe it was that simply. 

Thanks a million!

Offline

Board footer

Powered by FluxBB