help with symbolic link to samba share


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.
mount samba symbolic-link
add a comment |Â
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.
mount samba symbolic-link
add a comment |Â
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.
mount samba symbolic-link
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.
mount samba symbolic-link
edited May 13 at 8:55
asked May 13 at 7:35


jms
457515
457515
add a comment |Â
add a comment |Â
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).
add a comment |Â
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).
add a comment |Â
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).
add a comment |Â
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).
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).
edited May 13 at 8:52
answered May 13 at 8:47


muclux
2,1231521
2,1231521
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password