LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-22-2010, 03:03 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Unhappy 5.32. Changing Ownership - Operation not permitted


Hi all,
I had no problem till the end of chapter 5.
While changing the ownership to root, I get the following error.
I have posted the last few lines.

chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu/lib/ldscripts/i386linux.xu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu/lib/ldscripts/elf_i386.xbn': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu/lib/ldscripts/elf_i386.xd': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu/lib/ldscripts': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu/lib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-lfs-linux-gnu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools': Operation not permitted
lfs:/mnt/lfs/sources$


How do i change the ownership now.
 
Old 09-22-2010, 03:13 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
You are trying to change ownership as the LFS user. You do not have sufficient permissions to do that. You need to be root to execute the operation. Log out and then issue the command.
 
1 members found this post helpful.
Old 09-23-2010, 01:29 PM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
Yea you have to issue the logout command and then chown as root.
Note:
When you logout and become root you are exposed to your host and LFS so be carefull not to mess up the host.
 
Old 05-17-2012, 02:40 AM   #4
roshgorg
LQ Newbie
 
Registered: May 2012
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by jmc1987 View Post
Yea you have to issue the logout command and then chown as root.
Note:
When you logout and become root you are exposed to your host and LFS so be carefull not to mess up the host.
So, for this, can I just issue the command logout ?
 
Old 05-17-2012, 02:55 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
hl yes logout as lfsuser then login as root then chown the tools diras described in book chapter 6 is completed as root
 
Old 05-17-2012, 03:04 AM   #6
roshgorg
LQ Newbie
 
Registered: May 2012
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
hl yes logout as lfsuser then login as root then chown the tools diras described in book chapter 6 is completed as root
What I did was, I issued the command su, and entered the password. Now I'm root.

Another question is : Also, beginning from chapter 6, where should I have to be ? In the $LFS/tools directory ??
 
Old 05-17-2012, 04:57 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
the build is still the same as before i normally an in sources dir
 
  


Reply



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] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 14 06-26-2013 05:15 PM
chmod: changing permissions of `public_html': Operation not permitted painterj Linux - Newbie 11 04-09-2010 09:40 PM
failed to preserve ownership operation not permitted yogks Linux - Software 1 11-27-2008 04:54 PM
Operation not permitted prasunhowlader Linux - Newbie 3 08-20-2008 09:29 PM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:43 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