[tmsu mount] Non-root VFS mount

83 views
Skip to first unread message

Victoria Stuart

unread,
Jan 28, 2015, 5:13:57 PM1/28/15
to TMSU [Google Group]
Hi!  Is this possible: mount my VFS (~/mp) without sudo access?  CentOS 6.

$ tmsu mount mp
tmsu: virtual filesystem mount failed: tmsu: could not mount virtual filesystem for database '/home/vstuart/.tmsu/default.db' at 'mp': could not mount virtual filesystem at 'mp': fork/exec /usr/bin/fusermount: permission denied

Systems (here) are not very helpful; or supportive, viz-a-viz (even these legitimate) requests; if I can so it myself, it's one less dependency (me >> them).

Thanks ...

Paul Ruane

unread,
Jan 28, 2015, 8:20:45 PM1/28/15
to tm...@googlegroups.com

Hi Victoria,

Yes, you should be able to mount as a regular user. The error suggests you do not have access to the fusermount tool in /usr/bin or that you do not have permission on the mp directory, though I assume you created that with the same user you are trying to mount the virtual filesystem with?

You will need to secure access to fusermount for TMSU to be able to mount the FUSE virtual filesystem and it needs permissions on the mount point directory too, though off hand I can't remember what permissions.

It might be worth showing me the output of the following:

    $ ls -l /usr/bin/fusermount
    $ ls -l MP
    $ whoami

Thanks,
Paul

--
You received this message because you are subscribed to the Google Groups "tmsu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmsu+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Victoria Stuart

unread,
Jan 29, 2015, 11:55:38 AM1/29/15
to TMSU [Google Group]
Hi Paul!

First, could you check my / set the appropriate permissions for my in this Google Group?

https://groups.google.com/forum/#!topic/tmsu/-Rsdrh_Jw_k

I can't post online within that group (Chrome 40 on CentOS 6), nor can I reply to a message/post, there.

Second, as requested :-)  :

[vstuart@vstuart01-centos ~]$ sp
  [sp: switching to short path:]
 
vstuart:$ date
Thu Jan 29 08:46:24 PST 2015

vstuart:$ pwd
/home/vstuart

vstuart:$ ldir mp
  [ldir: ls -ld (-d: directories)]
drwxr-xr-x 2 vstuart users 4096 Jan 19 14:07 mp

vstuart:$ ls -l /usr/bin/fusermount
lrwxrwxrwx. 1 root root 15 Jan 14  2014 /usr/bin/fusermount -> /bin/fusermount

vstuart:$ whoami
vstuart

Thanks!  Victoria  :-)

==============================================================================

Paul Ruane
Jan 28 (15 hours ago)


Hi Victoria,

Yes, you should be able to mount as a regular user. The error suggests you do not have access to the fusermount tool in /usr/bin or that you do not have permission on the mp directory, though I assume you created that with the same user you are trying to mount the virtual filesystem with?

You will need to secure access to fusermount for TMSU to be able to mount the FUSE virtual filesystem and it needs permissions on the mount point directory too, though off hand I can't remember what permissions.

It might be worth showing me the output of the following:

    $ ls -l /usr/bin/fusermount
    $ ls -l MP
    $ whoami

Thanks,
Paul

==============================================================================

Paul Ruane

unread,
Jan 29, 2015, 12:12:59 PM1/29/15
to tm...@googlegroups.com, m...@tmsu.org
On Thursday, 29 January 2015 16:55:38 UTC, Victoria Stuart wrote:
Hi Paul!

First, could you check my / set the appropriate permissions for my in this Google Group?

https://groups.google.com/forum/#!topic/tmsu/-Rsdrh_Jw_k

I can't post online within that group (Chrome 40 on CentOS 6), nor can I reply to a message/post, there.

It took forever to find the setting but you should now be able to post.
 
vstuart:$ ls -l /usr/bin/fusermount
lrwxrwxrwx. 1 root root 15 Jan 14  2014 /usr/bin/fusermount -> /bin/fusermount

Could you please check the permissions on /bin/fusermount too as they are the symlink permissions rather than the target's.

Are you able to run fusermount directly or do you get permission denied?

Thanks,
Paul

Victoria Stuart

unread,
Jan 29, 2015, 12:40:06 PM1/29/15
to tm...@googlegroups.com, m...@tmsu.org
Yes: working now (Google Group) - *thank you*!  :-)

--------------------

vstuart:$ l /usr/bin/fusermount 
lrwxrwxrwx. 1 root root 15 Jan 14  2014 /usr/bin/fusermount -> /bin/fusermount

vstuart:$ l /bin/fusermount 
-rwsr-x--- 1 root fuse 32K Dec  7  2011 /bin/fusermount

vstuart:$ fusermount
bash: /usr/bin/fusermount: Permission denied

Paul Ruane

unread,
Jan 29, 2015, 12:46:51 PM1/29/15
to tm...@googlegroups.com

OK, looks like that's the problem: fusermount is set to be executable only by its owner (root) and members of the 'fuse' group. You will need to be added to the 'fuse' group in order to have execute permissions on that file. Your system administrator should be able to sort you out in exchange for his preferred beverage.

Paul


--
You received this message because you are subscribed to the Google Groups "TMSU" group.
Reply all
Reply to author
Forward
0 new messages