Can't chown 0 (root) in Cygwin

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











up vote
3
down vote

favorite












This command:



rm -f testfile && touch testfile && chown 0 testfile


is failing in Cygwin with error:



chown: changing ownership of 'testfile': Invalid argument



Why?










share|improve this question























  • Because of ntfs filesystem.
    – Ipor Sircer
    26 mins ago














up vote
3
down vote

favorite












This command:



rm -f testfile && touch testfile && chown 0 testfile


is failing in Cygwin with error:



chown: changing ownership of 'testfile': Invalid argument



Why?










share|improve this question























  • Because of ntfs filesystem.
    – Ipor Sircer
    26 mins ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











This command:



rm -f testfile && touch testfile && chown 0 testfile


is failing in Cygwin with error:



chown: changing ownership of 'testfile': Invalid argument



Why?










share|improve this question















This command:



rm -f testfile && touch testfile && chown 0 testfile


is failing in Cygwin with error:



chown: changing ownership of 'testfile': Invalid argument



Why?







root cygwin chown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 mins ago









Goro

2,19641848




2,19641848










asked 35 mins ago









PSkocik

17.2k24589




17.2k24589











  • Because of ntfs filesystem.
    – Ipor Sircer
    26 mins ago
















  • Because of ntfs filesystem.
    – Ipor Sircer
    26 mins ago















Because of ntfs filesystem.
– Ipor Sircer
26 mins ago




Because of ntfs filesystem.
– Ipor Sircer
26 mins ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










You cannot chown with root (0) account simply because there is no such thing in Cygwin.






share|improve this answer




















  • OK. I think I'll just have to accept this. Literally and figuratively.
    – PSkocik
    12 mins ago










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f469341%2fcant-chown-0-root-in-cygwin%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
2
down vote



accepted










You cannot chown with root (0) account simply because there is no such thing in Cygwin.






share|improve this answer




















  • OK. I think I'll just have to accept this. Literally and figuratively.
    – PSkocik
    12 mins ago














up vote
2
down vote



accepted










You cannot chown with root (0) account simply because there is no such thing in Cygwin.






share|improve this answer




















  • OK. I think I'll just have to accept this. Literally and figuratively.
    – PSkocik
    12 mins ago












up vote
2
down vote



accepted







up vote
2
down vote



accepted






You cannot chown with root (0) account simply because there is no such thing in Cygwin.






share|improve this answer












You cannot chown with root (0) account simply because there is no such thing in Cygwin.







share|improve this answer












share|improve this answer



share|improve this answer










answered 18 mins ago









Vlastimil

6,5461148121




6,5461148121











  • OK. I think I'll just have to accept this. Literally and figuratively.
    – PSkocik
    12 mins ago
















  • OK. I think I'll just have to accept this. Literally and figuratively.
    – PSkocik
    12 mins ago















OK. I think I'll just have to accept this. Literally and figuratively.
– PSkocik
12 mins ago




OK. I think I'll just have to accept this. Literally and figuratively.
– PSkocik
12 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469341%2fcant-chown-0-root-in-cygwin%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

One-line joke