LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Chown: changing ownership of '/opt/heimdall/ <file> : operation not permitted (https://www.linuxquestions.org/questions/linux-newbie-8/chown-changing-ownership-of-opt-heimdall-file-operation-not-permitted-4175692790/)

ScubaSteve88 03-28-2021 07:09 PM

Chown: changing ownership of '/opt/heimdall/ <file> : operation not permitted
 
So I'm struggling with this.I am currently trying to install Heimdall-flash to my chromebook and I'm afraid that I've made a mistake. I successfully cloned /opt/heimdall/ but I can't seem to get my chown-R www-data:www-data /opt/heimdall/ to change ownership. I have struggled with this for several days. I know there is a method of changing ownership but I've just begun to learn to understand all the commands. Please any help would be greatly appreciated. Thanks and have a great day. I have tried root and honestly I dont have all the commands or issuing of them down yet. So will you please breakdown the commands so I will understand the whole command line start to finish

GlennsPref 03-28-2021 09:59 PM

at the risk of stating the obvious,
some corrections here...
Quote:

chown-R www-data:www-data /opt/heimdall/
Code:

chown -R user:group /directory
space between opperand and switch

the user "www-data" must exist
the group "www-data" must exist

the / at the end is not required

you need to be root to change anything that does not belong to the logged-in user.

useradd [options] username
ref. https://www.techrepublic.com/article...-command-line/

astrogeek 03-28-2021 10:19 PM

Please post your thread only once, in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. You now have four threads opened today for this question, the relevant forum mods may merge or close some of these at their discretion.

You have not responded to a request that you show us what the perissions and ownership of that directory actually are so it is difficult for us to see what may be happening.

It would be very helpful if you would show the actual ownership and permission first, then the exact command that you are using to try to change them including any and all messages produced by that command, then the resulting state of those permissions afterward.


All times are GMT -5. The time now is 02:07 PM.