Why can't I chown a pipe? The 2019 Stack Overflow Developer Survey Results Are In ...
One-dimensional Japanese puzzle
How did passengers keep warm on sail ships?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
What is the role of 'For' here?
What is the padding with red substance inside of steak packaging?
Is there a writing software that you can sort scenes like slides in PowerPoint?
How do you keep chess fun when your opponent constantly beats you?
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
Are there continuous functions who are the same in an interval but differ in at least one other point?
how can a perfect fourth interval be considered either consonant or dissonant?
What can I do if neighbor is blocking my solar panels intentionally?
Does Parliament hold absolute power in the UK?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Make it rain characters
Simulating Exploding Dice
Homework question about an engine pulling a train
Can each chord in a progression create its own key?
different output for groups and groups USERNAME after adding a username to a group
US Healthcare consultation for visitors
What force causes entropy to increase?
Can withdrawing asylum be illegal?
Why can't I chown a pipe?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsWhy doesn't shell automatically fix “useless use of cat”?Why can't a normal user `chown` a file?What does `chown root.root $file` mean?If chown can change groups, why was chgrp created?Why does a '.' work in chown?chown only where needed / speedup chownWhy can't I pipe `pwd` to `open` on macOS?Can't chown file within lxc containerWhy can't I pipe to parallel?Why is there a chgrp command if there is chownCan't chown 0 (root) in Cygwin
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
From a discussion on useless use of cat.
I decided to see if It was possible to avoid some of the troubles by changing the owner of the pipe. So I did:
# cat | cat &
[1] 16500
# cd /proc/16500/fd
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
# chown --dereference daemon 0
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
I also tried chown
and chown -L
. No go. I'm convinced this is simply impossible, but why? They clearly have inodes. That 931613 is the inode number.
In the case I am actually interested in, the process on the right would be running at lower privileges and I'd kind of like it to own its own handles so that it can re-open them.
pipe chown
add a comment |
From a discussion on useless use of cat.
I decided to see if It was possible to avoid some of the troubles by changing the owner of the pipe. So I did:
# cat | cat &
[1] 16500
# cd /proc/16500/fd
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
# chown --dereference daemon 0
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
I also tried chown
and chown -L
. No go. I'm convinced this is simply impossible, but why? They clearly have inodes. That 931613 is the inode number.
In the case I am actually interested in, the process on the right would be running at lower privileges and I'd kind of like it to own its own handles so that it can re-open them.
pipe chown
add a comment |
From a discussion on useless use of cat.
I decided to see if It was possible to avoid some of the troubles by changing the owner of the pipe. So I did:
# cat | cat &
[1] 16500
# cd /proc/16500/fd
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
# chown --dereference daemon 0
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
I also tried chown
and chown -L
. No go. I'm convinced this is simply impossible, but why? They clearly have inodes. That 931613 is the inode number.
In the case I am actually interested in, the process on the right would be running at lower privileges and I'd kind of like it to own its own handles so that it can re-open them.
pipe chown
From a discussion on useless use of cat.
I decided to see if It was possible to avoid some of the troubles by changing the owner of the pipe. So I did:
# cat | cat &
[1] 16500
# cd /proc/16500/fd
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
# chown --dereference daemon 0
# ls -l
lr-x------ root root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
I also tried chown
and chown -L
. No go. I'm convinced this is simply impossible, but why? They clearly have inodes. That 931613 is the inode number.
In the case I am actually interested in, the process on the right would be running at lower privileges and I'd kind of like it to own its own handles so that it can re-open them.
pipe chown
pipe chown
asked 6 hours ago
JoshuaJoshua
1,332816
1,332816
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Turns out I goofed up my ls
command.
# ls -lL
lr-x------ daemon root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
add a comment |
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%2f512185%2fwhy-cant-i-chown-a-pipe%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Turns out I goofed up my ls
command.
# ls -lL
lr-x------ daemon root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
add a comment |
Turns out I goofed up my ls
command.
# ls -lL
lr-x------ daemon root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
add a comment |
Turns out I goofed up my ls
command.
# ls -lL
lr-x------ daemon root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
Turns out I goofed up my ls
command.
# ls -lL
lr-x------ daemon root 0 -> pipe:[931613]
lrwx------ root root 1 -> /dev/tty1
lrwx------ root root 2 -> /dev/tty1
answered 5 hours ago
JoshuaJoshua
1,332816
1,332816
add a comment |
add a comment |
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%2f512185%2fwhy-cant-i-chown-a-pipe%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