Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38

Thread: How to access dolphin network mount through console?

  1. #31

    Default Re: How to access dolphin network mount through console?

    Code:
    [~]: killall gvfsd && /usr/lib/gvfs/gvfsd
    gvfsd: no process found
    [~]: ps axf | grep gvfs && mount | grep gvfs
    28572 pts/0    S+     0:00      |   \_ grep --color=auto gvfs
     6270 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-metadata
     6274 ?        Sl     0:01 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
     6279 ?        Sl     0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
     6285 ?        Sl     0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
     6290 ?        Sl     0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
     6295 ?        Sl     0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
     6313 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.37 /org/gtk/gvfs/exec_spaw/0
     6366 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.37 /org/gtk/gvfs/exec_spaw/3
     6447 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.37 /org/gtk/gvfs/exec_spaw/9
     6731 ?        Sl     0:04 /usr/lib/gvfs/gvfsd-smb --spawner :1.37 /org/gtk/gvfs/exec_spaw/10
    [~]: 
    [~]: /usr/lib/gvfs/gvfsd-fuse /run/user/$UID/gvfs -f -o big_writes
    fuse: failed to exec fusermount: Permission denied
    [~]:

  2. #32

    Default Re: How to access dolphin network mount through console?

    So this is the reason for your "problem":
    Quote Originally Posted by heyjoe View Post
    Code:
    [~]: /usr/lib/gvfs/gvfsd-fuse /run/user/$UID/gvfs -f -o big_writes
    fuse: failed to exec fusermount: Permission denied
    fuse doesn't work because fusermount cannot be run by the user because of wrong/insufficient permissions.
    Please post the output of the following commands:
    Code:
    ls -l /usr/bin/fusermount
    grep PERMISSION /etc/sysconfig/security
    Last edited by wolfi323; 08-Jul-2017 at 14:50.

  3. #33

    Default Re: How to access dolphin network mount through console?

    Code:
    [~]: ls -l /usr/bin/fusermount
    -rwsr-x--- 1 root trusted 31560 Oct  7  2016 /usr/bin/fusermount
    [~]: grep PERMISSION /etc/sysconfig/security
    PERMISSION_SECURITY="secure local"
    PERMISSION_FSCAPS=""
    # PERMISSION_SECURITY. If PERMISSION_SECURITY contains 'secure' or

  4. #34

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    Code:
    [~]: ls -l /usr/bin/fusermount
    -rwsr-x--- 1 root trusted 31560 Oct  7  2016 /usr/bin/fusermount
    Only users of the group "trusted" are allowed to execute it.

    Here's how it looks on my system:
    Code:
    test@linux-lf90:~> ls -l /usr/bin/fusermount
    -rwsr-xr-x 1 root trusted 31560  7. Okt 2016  /usr/bin/fusermount
    Here, *every* user is allowed to execute it.

    Code:
    PERMISSION_SECURITY="secure local"
    And now guess why it works for me...

    Changing the security level to "easy local" should fix it (run "chkstat" afterwards to set the permissions), or you could add your user to the group "trusted".
    Or you could override the permissions of fusermount in /etc/permissions.local , you might still run into other problems though.
    Last edited by wolfi323; 08-Jul-2017 at 15:26.

  5. #35

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by wolfi323 View Post
    Code:
    PERMISSION_SECURITY="secure local"
    And now guess why it works for me...
    Aha! I guess this is because I have tightened up security in yast settings.

    Changing the security level to "easy local" should fix it (run "chkstat" afterwards to set the permissions),
    But if that would affect the security level of other things, I would rather not touch it.

    or you could add your user to the group "trusted".
    Won't that have other implications too? I mean - that group trusted perhaps serves other purpose too, not only for this file, so that might unlock a door for a regular user to do some undesired things?

    Or you could override the permissions of fusermount in /etc/permissions.local ,
    Ok, I tried adding to that file:

    Code:
    /usr/bin/fusermount root:trusted 4755
    that but the result is still the same (even after reboot).

    you might still run into other problems though.
    Like what?


    BTW another interesting thing: although the mount point shows empty, I can do the following:

    Code:
    gvfs-copy smb://***/***<tab>
    and it shows me the files in the remote directory. Of course I cannot use this in a script but it is still an interesting thing which I found.

  6. #36

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    Ok, I tried adding to that file:

    Code:
    /usr/bin/fusermount root:trusted 4755
    that but the result is still the same (even after reboot).
    After running 'chkstat --system --set' and reboot I could see the content in the mount point. Great! So thanks again.

  7. #37

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    Aha! I guess this is because I have tightened up security in yast settings.
    Correct.

    But if that would affect the security level of other things, I would rather not touch it.
    Yes, it would.

    But there's a reason why "easy" is the default, you'll likely run into such issues again and again.
    The purpose of the "secure" settings (and "paranoid" even more so) is to restrict users, not to provide a convenient desktop experience.

    Won't that have other implications too? I mean - that group trusted perhaps serves other purpose too, not only for this file, so that might unlock a door for a regular user to do some undesired things?
    Adding the user to the group "trusted" will only affect that particular user.
    This particular user will be trusted, and allowed to do certain things that would be forbidden otherwise

    Other (regular) users will *not* have any more powers than now.

    Ok, I tried adding to that file:

    Code:
    /usr/bin/fusermount root:trusted 4755
    that but the result is still the same (even after reboot).


    Like what?
    As you found out yourself meanwhile (and I told you), you need to run chkstat to apply that change.

    OTOH, *this* change *will* affect all regular users.
    I.e. all regular users are now able to run fusermount.

    BTW another interesting thing: although the mount point shows empty, I can do the following:

    Code:
    gvfs-copy smb://***/***<tab>
    and it shows me the files in the remote directory. Of course I cannot use this in a script but it is still an interesting thing which I found.
    Why not use gvfs-ls instead to list the files?

    There are quite a few more tools coming with gvfs:
    Code:
    test@linux-lf90:~> rpm -ql gvfs | grep bin
    /usr/bin/gvfs-cat
    /usr/bin/gvfs-copy
    /usr/bin/gvfs-info
    /usr/bin/gvfs-less
    /usr/bin/gvfs-ls
    /usr/bin/gvfs-mime
    /usr/bin/gvfs-mkdir
    /usr/bin/gvfs-monitor-dir
    /usr/bin/gvfs-monitor-file
    /usr/bin/gvfs-mount
    /usr/bin/gvfs-move
    /usr/bin/gvfs-open
    /usr/bin/gvfs-rename
    /usr/bin/gvfs-rm
    /usr/bin/gvfs-save
    /usr/bin/gvfs-set-attribute
    /usr/bin/gvfs-trash
    /usr/bin/gvfs-tree
    Have a look at the man pages for further infos.

    And I'd like to note again: /run/user/$UID/gvfs/ (and the virtual folders in it) only seems to exist for compatibility with "normal" applications that don't support gvfs directly.
    It obviously is not needed at all for gvfs itself to work.
    Last edited by wolfi323; 09-Jul-2017 at 02:19.

  8. #38

    Default Re: How to access dolphin network mount through console?

    Thanks wolfi!

    You are of great help as always

Page 4 of 4 FirstFirst ... 234

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •