help with symbolic link to samba share

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-1
down vote

favorite












On my gio-mounted NAS, I have a directory which I can access via ls /run/user/1001/gvfs/smb-share:server=diskstation,share=video. To make it easier, I mkdir /mnt/diskstation and do sudo ln -sf /run/user/$(id -u)/gvfs/smb-share:server=diskstation,share=video /mnt/diskstation/video.
But now when I do ls -la /mnt/diskstation/video I get




lrwxrwxrwx 1 root root 59 Mai 12 23:35 /mnt/diskstation/video -> /run/user/1001/gvfs/smb-share:server=diskstation,share=video




and not the content of the directory on the NAS. What do I have to do to see the contents of the NAS directory when I do ls /mnt/diskstation/video? ls -L /mnt/diskstation/video works, but I want it to work without -L.







share|improve this question


























    up vote
    -1
    down vote

    favorite












    On my gio-mounted NAS, I have a directory which I can access via ls /run/user/1001/gvfs/smb-share:server=diskstation,share=video. To make it easier, I mkdir /mnt/diskstation and do sudo ln -sf /run/user/$(id -u)/gvfs/smb-share:server=diskstation,share=video /mnt/diskstation/video.
    But now when I do ls -la /mnt/diskstation/video I get




    lrwxrwxrwx 1 root root 59 Mai 12 23:35 /mnt/diskstation/video -> /run/user/1001/gvfs/smb-share:server=diskstation,share=video




    and not the content of the directory on the NAS. What do I have to do to see the contents of the NAS directory when I do ls /mnt/diskstation/video? ls -L /mnt/diskstation/video works, but I want it to work without -L.







    share|improve this question
























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      On my gio-mounted NAS, I have a directory which I can access via ls /run/user/1001/gvfs/smb-share:server=diskstation,share=video. To make it easier, I mkdir /mnt/diskstation and do sudo ln -sf /run/user/$(id -u)/gvfs/smb-share:server=diskstation,share=video /mnt/diskstation/video.
      But now when I do ls -la /mnt/diskstation/video I get




      lrwxrwxrwx 1 root root 59 Mai 12 23:35 /mnt/diskstation/video -> /run/user/1001/gvfs/smb-share:server=diskstation,share=video




      and not the content of the directory on the NAS. What do I have to do to see the contents of the NAS directory when I do ls /mnt/diskstation/video? ls -L /mnt/diskstation/video works, but I want it to work without -L.







      share|improve this question














      On my gio-mounted NAS, I have a directory which I can access via ls /run/user/1001/gvfs/smb-share:server=diskstation,share=video. To make it easier, I mkdir /mnt/diskstation and do sudo ln -sf /run/user/$(id -u)/gvfs/smb-share:server=diskstation,share=video /mnt/diskstation/video.
      But now when I do ls -la /mnt/diskstation/video I get




      lrwxrwxrwx 1 root root 59 Mai 12 23:35 /mnt/diskstation/video -> /run/user/1001/gvfs/smb-share:server=diskstation,share=video




      and not the content of the directory on the NAS. What do I have to do to see the contents of the NAS directory when I do ls /mnt/diskstation/video? ls -L /mnt/diskstation/video works, but I want it to work without -L.









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 13 at 8:55

























      asked May 13 at 7:35









      jms

      457515




      457515




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You have created a symbolic link to your run file. So when you do do ls -la /mnt/diskstation/video you are shown the properties of the symbolic link.



          In order to execute the run file you have to enter
          /mnt/diskstation/video (without ls -la).
          This should have the same effect as entering
          /run/user/1001/gvfs/smb-share:server=diskstation,share=video.



          NB: If your run file mounts the samba share on /mnt/diskstation (as the name suggests), your symbolic link will be hidden after the mount (until umount).






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035608%2fhelp-with-symbolic-link-to-samba-share%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            You have created a symbolic link to your run file. So when you do do ls -la /mnt/diskstation/video you are shown the properties of the symbolic link.



            In order to execute the run file you have to enter
            /mnt/diskstation/video (without ls -la).
            This should have the same effect as entering
            /run/user/1001/gvfs/smb-share:server=diskstation,share=video.



            NB: If your run file mounts the samba share on /mnt/diskstation (as the name suggests), your symbolic link will be hidden after the mount (until umount).






            share|improve this answer


























              up vote
              0
              down vote













              You have created a symbolic link to your run file. So when you do do ls -la /mnt/diskstation/video you are shown the properties of the symbolic link.



              In order to execute the run file you have to enter
              /mnt/diskstation/video (without ls -la).
              This should have the same effect as entering
              /run/user/1001/gvfs/smb-share:server=diskstation,share=video.



              NB: If your run file mounts the samba share on /mnt/diskstation (as the name suggests), your symbolic link will be hidden after the mount (until umount).






              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                You have created a symbolic link to your run file. So when you do do ls -la /mnt/diskstation/video you are shown the properties of the symbolic link.



                In order to execute the run file you have to enter
                /mnt/diskstation/video (without ls -la).
                This should have the same effect as entering
                /run/user/1001/gvfs/smb-share:server=diskstation,share=video.



                NB: If your run file mounts the samba share on /mnt/diskstation (as the name suggests), your symbolic link will be hidden after the mount (until umount).






                share|improve this answer














                You have created a symbolic link to your run file. So when you do do ls -la /mnt/diskstation/video you are shown the properties of the symbolic link.



                In order to execute the run file you have to enter
                /mnt/diskstation/video (without ls -la).
                This should have the same effect as entering
                /run/user/1001/gvfs/smb-share:server=diskstation,share=video.



                NB: If your run file mounts the samba share on /mnt/diskstation (as the name suggests), your symbolic link will be hidden after the mount (until umount).







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 13 at 8:52

























                answered May 13 at 8:47









                muclux

                2,1231521




                2,1231521






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035608%2fhelp-with-symbolic-link-to-samba-share%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491