LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > ChromeOS
User Name
Password
ChromeOS This forum is for the discussion of ChromeOS.

Notices


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

Rep: Reputation: Disabled
Cannot change ownership when trying to establish chown


God afternoon everyone. I just want to thank all of you for letting me join. I am a noob when it comes to linux and control prompt so please bare with me. 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 /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.

Last edited by ScubaSteve88; 03-28-2021 at 03:56 PM.
 
Old 03-28-2021, 03:42 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,099
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Who owns /opt/heimdall/
Code:
ls -l /opt/heimdall/
If root owns it, then you'll need to be root to change it.
 
Old 03-28-2021, 04:04 PM   #3
ScubaSteve88
LQ Newbie
 
Registered: Mar 2021
Location: Denmark sc
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have tried root and I keep getting the same response chown: changing ownership of '/opt/heimdall/vendor': operation not permitted. Any suggestions? I believe the owner is tylermade.net

Last edited by ScubaSteve88; 03-28-2021 at 04:11 PM.
 
Old 03-28-2021, 04:40 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,099
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Post the output of:
Code:
cd /opt/heimdall/

ls -ld

ls -ld */
 
Old 03-28-2021, 06:59 PM   #5
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Zorin OS
Posts: 939

Rep: Reputation: 293Reputation: 293Reputation: 293
Are you typing the chown command this way:

Code:
chown-R
It should be
Code:
chown -R
Should be a space before the -R

This is what you said you entered which is why I asked
Quote:
chown-R www-data /opt/heimdall/
 
Old 03-28-2021, 07:26 PM   #6
ScubaSteve88
LQ Newbie
 
Registered: Mar 2021
Location: Denmark sc
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes I am putting a space between the chown: and -r. Any other Ideas? I am new to this and any advice is highly appreciated.
 
Old 03-28-2021, 10:59 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
In principle, the following is correct:
Code:
chown -R www-data /opt/heimdall
However, there are a few conditions. You need to have permissions to change ownership. /opt/heimdall must reside on a filesystem that has a concept of ownership (as an example, FAT filesystems don't). And the files and directories whose ownership you want to change are not immutable.

Let's start with permissions. You have not yet shown us the output of ls -ld /opt/heimdall. I would also like to see the output of ls -l /opt/heimdall, without the d option. You say you have tried root - what exactly did you do?

Next, where does /opt/heimdall reside? Run lsblk -f to get clarity.

Immutability can be checked with the lsattr command. It is unlikely that /opt/heimdall is immutable, but to ensure it isn't, start with lsattr /opt.

Finally, Chromebooks run a somewhat nonstandard Linux I believe, and I hesitate with advice to be honest. How did you install Linux on this computer?

Last edited by berndbausch; 03-28-2021 at 11:02 PM.
 
Old 03-29-2021, 12:12 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
The "operation not permitted" error message in my experience usually means that either the filesystem that file (or directory) resides on does not support UNIX permissions (or any kind of permissions at all) as berndbausch mentioned above, or it's not a "regular file" (or a directory). The immutable bit is also another possibility, but I would agree with berndbausch that it's unlikely to be the case.

In any case, and as has been said, you need to SHOW US the output of

Code:
ls -la /opt/heimdall
if you want us to be able to give you any concrete solutions. As the above command will not only show the permissions and ownership, it will also show us what kind of file it is - indicated by the first dash at the beginning of the permissions line.

You may also want to read our wiki about permissions too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 - chown() - Warning: chown(): Operation not permitted pizzipie Programming 11 09-10-2013 03:53 AM
[SOLVED] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 14 06-26-2013 05:15 PM
Cannot change ownership of a folder using chown Nanosuz Linux - Newbie 1 08-24-2012 11:36 AM
chown for changing multiple users' ownership Abhishek87 Linux - Networking 1 08-06-2007 12:53 PM
Changing ownership 6.4 chown fails. jarin scott Linux From Scratch 6 02-16-2005 04:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > ChromeOS

All times are GMT -5. The time now is 12:07 AM.

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