LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 09-22-2010, 03:03 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173

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
Location: India
Distribution: Slack 13
Posts: 484

Rep: Reputation: 32
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 xp
Posts: 776

Rep: Reputation: 94
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,575
Blog Entries: 1

Rep: Reputation: 212Reputation: 212Reputation: 212
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,575
Blog Entries: 1

Rep: Reputation: 212Reputation: 212Reputation: 212
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod: changing permissions of `public_html': Operation not permitted painterj Linux - Newbie 11 04-09-2010 09:40 PM
[SOLVED] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 13 02-05-2010 12:57 AM
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


All times are GMT -5. The time now is 08:21 PM.

Main Menu
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
Open Source Consulting | Domain Registration