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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-22-2010, 03:03 AM
|
#1
|
|
Member
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173
Rep:
|
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.
|
|
|
|
09-22-2010, 03:13 AM
|
#2
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Rep:
|
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.
|
09-23-2010, 01:29 PM
|
#3
|
|
Member
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows xp
Posts: 776
Rep:
|
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.
|
|
|
|
05-17-2012, 02:40 AM
|
#4
|
|
LQ Newbie
Registered: May 2012
Posts: 20
Rep: 
|
Quote:
Originally Posted by jmc1987
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 ?
|
|
|
|
05-17-2012, 02:55 AM
|
#5
|
|
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
|
hl yes logout as lfsuser then login as root then chown the tools diras described in book chapter 6 is completed as root
|
|
|
|
05-17-2012, 03:04 AM
|
#6
|
|
LQ Newbie
Registered: May 2012
Posts: 20
Rep: 
|
Quote:
Originally Posted by spiky0011
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 ??
|
|
|
|
05-17-2012, 04:57 AM
|
#7
|
|
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
|
the build is still the same as before i normally an in sources dir
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|