LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 03-28-2021, 07:09 PM   #1
ScubaSteve88
LQ Newbie
 
Registered: Mar 2021
Location: Denmark sc
Posts: 8

Rep: Reputation: Disabled
Angry 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
 
Old 03-28-2021, 09:59 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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/
 
Old 03-28-2021, 10:19 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
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.
 
3 members found this post helpful.
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] src2pkg: chown: changing ownership of `usr/bin': Operation not permitted s09 Slackware 2 03-04-2014 08:44 AM
[SOLVED] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 14 06-26-2013 05:15 PM
chown: changing ownership of dir: Operation not permitted cdhar Linux - Newbie 7 07-30-2012 11:00 PM
chown: changing ownership Operation not permitted cdhar Linux - Software 4 07-29-2012 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration