Symlinks created but not “there” SSH
I am creating Symlinks for Magento purposes but for some reason something is going wrong.
I created the symlinks using PuTTy SSH.
So I did this:cd /home/user/domains/newwebsite/public_html/
ln -s /home/user/domains/oldwebsite/public_html/app/ app
So this is supposed to create a "shortcut" towards the app
directory on the old website, right?
Well, it did, kind of. If I do dir
it shows the directory. But when I look at it on FileZilla, it shows nothing.
Also, going to the app
directory, it perfectly shows the files and directories it should contain.
When I create the folder app
using FileZilla, I'm unable to open it. And when I delete the app
folder, it is also gone using the dir
command.
Changing names of files using FileZilla also changes it when using dir
.
I have been doing this for a couple of other websites and it works fine.
Using Debian 8.
cd app
Might be that FileZilla is not reliable but the website doesn't show anything so there must be something different going on.
debian ssh directory symlink
add a comment |
I am creating Symlinks for Magento purposes but for some reason something is going wrong.
I created the symlinks using PuTTy SSH.
So I did this:cd /home/user/domains/newwebsite/public_html/
ln -s /home/user/domains/oldwebsite/public_html/app/ app
So this is supposed to create a "shortcut" towards the app
directory on the old website, right?
Well, it did, kind of. If I do dir
it shows the directory. But when I look at it on FileZilla, it shows nothing.
Also, going to the app
directory, it perfectly shows the files and directories it should contain.
When I create the folder app
using FileZilla, I'm unable to open it. And when I delete the app
folder, it is also gone using the dir
command.
Changing names of files using FileZilla also changes it when using dir
.
I have been doing this for a couple of other websites and it works fine.
Using Debian 8.
cd app
Might be that FileZilla is not reliable but the website doesn't show anything so there must be something different going on.
debian ssh directory symlink
2
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside ofpublic_html
(like password files), I'd guess that's what you are running into.
– Ulrich Schwarz
Sep 1 '16 at 9:36
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40
add a comment |
I am creating Symlinks for Magento purposes but for some reason something is going wrong.
I created the symlinks using PuTTy SSH.
So I did this:cd /home/user/domains/newwebsite/public_html/
ln -s /home/user/domains/oldwebsite/public_html/app/ app
So this is supposed to create a "shortcut" towards the app
directory on the old website, right?
Well, it did, kind of. If I do dir
it shows the directory. But when I look at it on FileZilla, it shows nothing.
Also, going to the app
directory, it perfectly shows the files and directories it should contain.
When I create the folder app
using FileZilla, I'm unable to open it. And when I delete the app
folder, it is also gone using the dir
command.
Changing names of files using FileZilla also changes it when using dir
.
I have been doing this for a couple of other websites and it works fine.
Using Debian 8.
cd app
Might be that FileZilla is not reliable but the website doesn't show anything so there must be something different going on.
debian ssh directory symlink
I am creating Symlinks for Magento purposes but for some reason something is going wrong.
I created the symlinks using PuTTy SSH.
So I did this:cd /home/user/domains/newwebsite/public_html/
ln -s /home/user/domains/oldwebsite/public_html/app/ app
So this is supposed to create a "shortcut" towards the app
directory on the old website, right?
Well, it did, kind of. If I do dir
it shows the directory. But when I look at it on FileZilla, it shows nothing.
Also, going to the app
directory, it perfectly shows the files and directories it should contain.
When I create the folder app
using FileZilla, I'm unable to open it. And when I delete the app
folder, it is also gone using the dir
command.
Changing names of files using FileZilla also changes it when using dir
.
I have been doing this for a couple of other websites and it works fine.
Using Debian 8.
cd app
Might be that FileZilla is not reliable but the website doesn't show anything so there must be something different going on.
debian ssh directory symlink
debian ssh directory symlink
edited 2 hours ago
Rui F Ribeiro
41.5k1483140
41.5k1483140
asked Sep 1 '16 at 9:19
Sj03rsSj03rs
1062
1062
2
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside ofpublic_html
(like password files), I'd guess that's what you are running into.
– Ulrich Schwarz
Sep 1 '16 at 9:36
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40
add a comment |
2
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside ofpublic_html
(like password files), I'd guess that's what you are running into.
– Ulrich Schwarz
Sep 1 '16 at 9:36
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40
2
2
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside of
public_html
(like password files), I'd guess that's what you are running into.– Ulrich Schwarz
Sep 1 '16 at 9:36
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside of
public_html
(like password files), I'd guess that's what you are running into.– Ulrich Schwarz
Sep 1 '16 at 9:36
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f307174%2fsymlinks-created-but-not-there-ssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f307174%2fsymlinks-created-but-not-there-ssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Server software often has default flags to the effect of "never follow symlinks" so you cannot by accident reveal files outside of
public_html
(like password files), I'd guess that's what you are running into.– Ulrich Schwarz
Sep 1 '16 at 9:36
@UlrichSchwarz, Hmm I read about that. I was kind of expecting it to follow symlinks as it did with other users. But I am beginning to doubt it. I will ask my server management guy if this might be the case. Thanks!
– Sj03rs
Sep 1 '16 at 9:40