Change ownership of a file transfered using Samba












0














When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it.



Is there a way to assign the ownership automatically?



I can change the ownership using the command sudo chown and that works fine, except I don't want to type all of that whenever I transfer a file or a folder. I'd like to right click on the folder in Dolphin and select an option and have it done automatically. Is there a way to make that happen? Or, even better, not have it assigned to "Nobody" in the first place...










share|improve this question
























  • Create a folder inside there that has your owenership that nobody owner is normal!
    – George Udosen
    Dec 15 at 19:56
















0














When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it.



Is there a way to assign the ownership automatically?



I can change the ownership using the command sudo chown and that works fine, except I don't want to type all of that whenever I transfer a file or a folder. I'd like to right click on the folder in Dolphin and select an option and have it done automatically. Is there a way to make that happen? Or, even better, not have it assigned to "Nobody" in the first place...










share|improve this question
























  • Create a folder inside there that has your owenership that nobody owner is normal!
    – George Udosen
    Dec 15 at 19:56














0












0








0







When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it.



Is there a way to assign the ownership automatically?



I can change the ownership using the command sudo chown and that works fine, except I don't want to type all of that whenever I transfer a file or a folder. I'd like to right click on the folder in Dolphin and select an option and have it done automatically. Is there a way to make that happen? Or, even better, not have it assigned to "Nobody" in the first place...










share|improve this question















When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it.



Is there a way to assign the ownership automatically?



I can change the ownership using the command sudo chown and that works fine, except I don't want to type all of that whenever I transfer a file or a folder. I'd like to right click on the folder in Dolphin and select an option and have it done automatically. Is there a way to make that happen? Or, even better, not have it assigned to "Nobody" in the first place...







permissions kubuntu samba dolphin ownership






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 at 21:25

























asked Dec 15 at 19:51









Kresimir

1054




1054












  • Create a folder inside there that has your owenership that nobody owner is normal!
    – George Udosen
    Dec 15 at 19:56


















  • Create a folder inside there that has your owenership that nobody owner is normal!
    – George Udosen
    Dec 15 at 19:56
















Create a folder inside there that has your owenership that nobody owner is normal!
– George Udosen
Dec 15 at 19:56




Create a folder inside there that has your owenership that nobody owner is normal!
– George Udosen
Dec 15 at 19:56










1 Answer
1






active

oldest

votes


















1














The usual way you get the saved file with owner = nobody is if you created a guest accessible share on your Linux box. The easiest way to resolve this is to make "nobody" look like you - at least for this share.



You do that by adding an option to /etc/samba/smb.conf:



force user = kresimir


Assuming your Kubuntu login user name is kresimir.



Where you put that line in smb.conf depends on how you created the samba share:



** If the share definition is in smb.conf itself add it to that share definition.



** If you created the share in Dolphin ( Right click > Properties > Share ) add it to the [global] section of smb.conf - right under the workgroup = WORKGROUP line is where I would put it.



Either way after editing smb.conf restart smbd:



sudo service smbd restart


All new files added to the share will have you as owner.






share|improve this answer





















  • This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
    – Kresimir
    Dec 15 at 21:24











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f1102165%2fchange-ownership-of-a-file-transfered-using-samba%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









1














The usual way you get the saved file with owner = nobody is if you created a guest accessible share on your Linux box. The easiest way to resolve this is to make "nobody" look like you - at least for this share.



You do that by adding an option to /etc/samba/smb.conf:



force user = kresimir


Assuming your Kubuntu login user name is kresimir.



Where you put that line in smb.conf depends on how you created the samba share:



** If the share definition is in smb.conf itself add it to that share definition.



** If you created the share in Dolphin ( Right click > Properties > Share ) add it to the [global] section of smb.conf - right under the workgroup = WORKGROUP line is where I would put it.



Either way after editing smb.conf restart smbd:



sudo service smbd restart


All new files added to the share will have you as owner.






share|improve this answer





















  • This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
    – Kresimir
    Dec 15 at 21:24
















1














The usual way you get the saved file with owner = nobody is if you created a guest accessible share on your Linux box. The easiest way to resolve this is to make "nobody" look like you - at least for this share.



You do that by adding an option to /etc/samba/smb.conf:



force user = kresimir


Assuming your Kubuntu login user name is kresimir.



Where you put that line in smb.conf depends on how you created the samba share:



** If the share definition is in smb.conf itself add it to that share definition.



** If you created the share in Dolphin ( Right click > Properties > Share ) add it to the [global] section of smb.conf - right under the workgroup = WORKGROUP line is where I would put it.



Either way after editing smb.conf restart smbd:



sudo service smbd restart


All new files added to the share will have you as owner.






share|improve this answer





















  • This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
    – Kresimir
    Dec 15 at 21:24














1












1








1






The usual way you get the saved file with owner = nobody is if you created a guest accessible share on your Linux box. The easiest way to resolve this is to make "nobody" look like you - at least for this share.



You do that by adding an option to /etc/samba/smb.conf:



force user = kresimir


Assuming your Kubuntu login user name is kresimir.



Where you put that line in smb.conf depends on how you created the samba share:



** If the share definition is in smb.conf itself add it to that share definition.



** If you created the share in Dolphin ( Right click > Properties > Share ) add it to the [global] section of smb.conf - right under the workgroup = WORKGROUP line is where I would put it.



Either way after editing smb.conf restart smbd:



sudo service smbd restart


All new files added to the share will have you as owner.






share|improve this answer












The usual way you get the saved file with owner = nobody is if you created a guest accessible share on your Linux box. The easiest way to resolve this is to make "nobody" look like you - at least for this share.



You do that by adding an option to /etc/samba/smb.conf:



force user = kresimir


Assuming your Kubuntu login user name is kresimir.



Where you put that line in smb.conf depends on how you created the samba share:



** If the share definition is in smb.conf itself add it to that share definition.



** If you created the share in Dolphin ( Right click > Properties > Share ) add it to the [global] section of smb.conf - right under the workgroup = WORKGROUP line is where I would put it.



Either way after editing smb.conf restart smbd:



sudo service smbd restart


All new files added to the share will have you as owner.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 15 at 20:22









Morbius1

1,366127




1,366127












  • This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
    – Kresimir
    Dec 15 at 21:24


















  • This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
    – Kresimir
    Dec 15 at 21:24
















This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
– Kresimir
Dec 15 at 21:24




This doesn't answer my question, but it does solve my problem. :D Thank you! I upvoted it, but I'm not sure whether I should mark it as answered... I guess I'll just edit my question so that this is the answer.
– Kresimir
Dec 15 at 21:24


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


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





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2faskubuntu.com%2fquestions%2f1102165%2fchange-ownership-of-a-file-transfered-using-samba%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido