scp to an authorized folder whose parent is forbidden for me, fails












0















I try to scp to a folder which is not mine. Its rights are set to 777 but the scp tells me Permission Denied.
When setting its parent folder's rights, whis still is not mine, to 777, then the scp succesfully achieve its mission. Why?



Steps to reproduce:



me@host1:/tmp$ ls -lah /applis/foo/
drwxr-xr-x 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
scp: /applis/foo/build/: Permission denied
# What?! I thought it was 777

me@host1:/tmp$ chmod -R 777 /applis/foo/
me@host1:/tmp$ ls -lah
drwxrwxrwx 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
data.xlsx 100% 1006KB 20.8MB/s 00:00


Not sure if this counts, but the folder is located here on this type of partition:



/dev/mapper/rootvg-root / ext4 rw,relatime,data=ordered 0 0


while I do not seem to have the problem on this kind of partition:



/dev/mapper/rootvg-home /home ext4 rw,nosuid,nodev,relatime,data=ordered 0 0









share|improve this question

























  • Does the file already exist in the build folder with non 777 permissions?

    – djsmiley2k
    Jan 25 at 14:07











  • Tried both cases, it does not work wether the file exists or not.

    – Vulpo
    Jan 25 at 14:48











  • Do you have ACL implemented?

    – Manuel Florian
    Jan 25 at 15:40
















0















I try to scp to a folder which is not mine. Its rights are set to 777 but the scp tells me Permission Denied.
When setting its parent folder's rights, whis still is not mine, to 777, then the scp succesfully achieve its mission. Why?



Steps to reproduce:



me@host1:/tmp$ ls -lah /applis/foo/
drwxr-xr-x 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
scp: /applis/foo/build/: Permission denied
# What?! I thought it was 777

me@host1:/tmp$ chmod -R 777 /applis/foo/
me@host1:/tmp$ ls -lah
drwxrwxrwx 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
data.xlsx 100% 1006KB 20.8MB/s 00:00


Not sure if this counts, but the folder is located here on this type of partition:



/dev/mapper/rootvg-root / ext4 rw,relatime,data=ordered 0 0


while I do not seem to have the problem on this kind of partition:



/dev/mapper/rootvg-home /home ext4 rw,nosuid,nodev,relatime,data=ordered 0 0









share|improve this question

























  • Does the file already exist in the build folder with non 777 permissions?

    – djsmiley2k
    Jan 25 at 14:07











  • Tried both cases, it does not work wether the file exists or not.

    – Vulpo
    Jan 25 at 14:48











  • Do you have ACL implemented?

    – Manuel Florian
    Jan 25 at 15:40














0












0








0








I try to scp to a folder which is not mine. Its rights are set to 777 but the scp tells me Permission Denied.
When setting its parent folder's rights, whis still is not mine, to 777, then the scp succesfully achieve its mission. Why?



Steps to reproduce:



me@host1:/tmp$ ls -lah /applis/foo/
drwxr-xr-x 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
scp: /applis/foo/build/: Permission denied
# What?! I thought it was 777

me@host1:/tmp$ chmod -R 777 /applis/foo/
me@host1:/tmp$ ls -lah
drwxrwxrwx 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
data.xlsx 100% 1006KB 20.8MB/s 00:00


Not sure if this counts, but the folder is located here on this type of partition:



/dev/mapper/rootvg-root / ext4 rw,relatime,data=ordered 0 0


while I do not seem to have the problem on this kind of partition:



/dev/mapper/rootvg-home /home ext4 rw,nosuid,nodev,relatime,data=ordered 0 0









share|improve this question
















I try to scp to a folder which is not mine. Its rights are set to 777 but the scp tells me Permission Denied.
When setting its parent folder's rights, whis still is not mine, to 777, then the scp succesfully achieve its mission. Why?



Steps to reproduce:



me@host1:/tmp$ ls -lah /applis/foo/
drwxr-xr-x 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
scp: /applis/foo/build/: Permission denied
# What?! I thought it was 777

me@host1:/tmp$ chmod -R 777 /applis/foo/
me@host1:/tmp$ ls -lah
drwxrwxrwx 4 you yourgroup 4.0K Jan 25 14:19 .
drwxr-xr-x 4 you yourgroup 4.0K Oct 9 13:27 ..
drwxrwxrwx 2 you yourgroup 4.0K Jan 25 14:19 build

me@host2:/tmp$ scp data.xslx me@host1:/applis/foo/build/
data.xlsx 100% 1006KB 20.8MB/s 00:00


Not sure if this counts, but the folder is located here on this type of partition:



/dev/mapper/rootvg-root / ext4 rw,relatime,data=ordered 0 0


while I do not seem to have the problem on this kind of partition:



/dev/mapper/rootvg-home /home ext4 rw,nosuid,nodev,relatime,data=ordered 0 0






linux ssh permissions scp setuid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 25 at 14:43







Vulpo

















asked Jan 25 at 13:59









VulpoVulpo

147118




147118













  • Does the file already exist in the build folder with non 777 permissions?

    – djsmiley2k
    Jan 25 at 14:07











  • Tried both cases, it does not work wether the file exists or not.

    – Vulpo
    Jan 25 at 14:48











  • Do you have ACL implemented?

    – Manuel Florian
    Jan 25 at 15:40



















  • Does the file already exist in the build folder with non 777 permissions?

    – djsmiley2k
    Jan 25 at 14:07











  • Tried both cases, it does not work wether the file exists or not.

    – Vulpo
    Jan 25 at 14:48











  • Do you have ACL implemented?

    – Manuel Florian
    Jan 25 at 15:40

















Does the file already exist in the build folder with non 777 permissions?

– djsmiley2k
Jan 25 at 14:07





Does the file already exist in the build folder with non 777 permissions?

– djsmiley2k
Jan 25 at 14:07













Tried both cases, it does not work wether the file exists or not.

– Vulpo
Jan 25 at 14:48





Tried both cases, it does not work wether the file exists or not.

– Vulpo
Jan 25 at 14:48













Do you have ACL implemented?

– Manuel Florian
Jan 25 at 15:40





Do you have ACL implemented?

– Manuel Florian
Jan 25 at 15:40










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398377%2fscp-to-an-authorized-folder-whose-parent-is-forbidden-for-me-fails%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
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398377%2fscp-to-an-authorized-folder-whose-parent-is-forbidden-for-me-fails%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар