LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 04:03 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 178

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, 04:13 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Rep: Reputation: 35
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, 02:29 PM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
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, 03: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, 03:55 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
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, 04: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, 05:57 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

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


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


All times are GMT -5. The time now is 09:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration