Assign file ownership to a certain user does not work

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








up vote
1
down vote

favorite












I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but the user is not.



If I try with another user (B: chown B:A FILE) it works. Could anyone tell me why a specific user cannot own a file? I have tried in different locations but the result is always the same.










share|improve this question



















  • 2




    Who is A? Does A have some special characters in his name?
    – muclux
    Feb 15 at 7:08






  • 1




    try it with the id, instead of the name. to find out the id, use id <username>
    – Robert Riedl
    Feb 15 at 11:28










  • A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
    – Jordi Rocafull
    Feb 16 at 4:24











  • I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
    – Jordi Rocafull
    Feb 16 at 4:29










  • I have deleted A user and created again but the problem persist
    – Jordi Rocafull
    Feb 16 at 4:33














up vote
1
down vote

favorite












I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but the user is not.



If I try with another user (B: chown B:A FILE) it works. Could anyone tell me why a specific user cannot own a file? I have tried in different locations but the result is always the same.










share|improve this question



















  • 2




    Who is A? Does A have some special characters in his name?
    – muclux
    Feb 15 at 7:08






  • 1




    try it with the id, instead of the name. to find out the id, use id <username>
    – Robert Riedl
    Feb 15 at 11:28










  • A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
    – Jordi Rocafull
    Feb 16 at 4:24











  • I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
    – Jordi Rocafull
    Feb 16 at 4:29










  • I have deleted A user and created again but the problem persist
    – Jordi Rocafull
    Feb 16 at 4:33












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but the user is not.



If I try with another user (B: chown B:A FILE) it works. Could anyone tell me why a specific user cannot own a file? I have tried in different locations but the result is always the same.










share|improve this question















I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but the user is not.



If I try with another user (B: chown B:A FILE) it works. Could anyone tell me why a specific user cannot own a file? I have tried in different locations but the result is always the same.







chown ownership






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 15 at 7:05









wjandrea

7,25842256




7,25842256










asked Feb 15 at 6:31









Jordi Rocafull

61




61







  • 2




    Who is A? Does A have some special characters in his name?
    – muclux
    Feb 15 at 7:08






  • 1




    try it with the id, instead of the name. to find out the id, use id <username>
    – Robert Riedl
    Feb 15 at 11:28










  • A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
    – Jordi Rocafull
    Feb 16 at 4:24











  • I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
    – Jordi Rocafull
    Feb 16 at 4:29










  • I have deleted A user and created again but the problem persist
    – Jordi Rocafull
    Feb 16 at 4:33












  • 2




    Who is A? Does A have some special characters in his name?
    – muclux
    Feb 15 at 7:08






  • 1




    try it with the id, instead of the name. to find out the id, use id <username>
    – Robert Riedl
    Feb 15 at 11:28










  • A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
    – Jordi Rocafull
    Feb 16 at 4:24











  • I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
    – Jordi Rocafull
    Feb 16 at 4:29










  • I have deleted A user and created again but the problem persist
    – Jordi Rocafull
    Feb 16 at 4:33







2




2




Who is A? Does A have some special characters in his name?
– muclux
Feb 15 at 7:08




Who is A? Does A have some special characters in his name?
– muclux
Feb 15 at 7:08




1




1




try it with the id, instead of the name. to find out the id, use id <username>
– Robert Riedl
Feb 15 at 11:28




try it with the id, instead of the name. to find out the id, use id <username>
– Robert Riedl
Feb 15 at 11:28












A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
– Jordi Rocafull
Feb 16 at 4:24





A is "bitnam"i and has no special characters. Besides I have tried with the id code obtained after running "id bitnami" and it does not work either. If I follow the same procedure with user B (which is testuser) it does work.
– Jordi Rocafull
Feb 16 at 4:24













I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
– Jordi Rocafull
Feb 16 at 4:29




I do not know if it might have something to do with the fact that I have run a few times a Magento linux installer which creates users and its main user is "bitnami" (the user I am encountering problems with)
– Jordi Rocafull
Feb 16 at 4:29












I have deleted A user and created again but the problem persist
– Jordi Rocafull
Feb 16 at 4:33




I have deleted A user and created again but the problem persist
– Jordi Rocafull
Feb 16 at 4:33















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1006360%2fassign-file-ownership-to-a-certain-user-does-not-work%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006360%2fassign-file-ownership-to-a-certain-user-does-not-work%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error