LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-26-2009, 02:40 PM   #1
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
user lfs: need to be in root to compile


I've set up user lfs as suggested in the book, and all permissions seem to be in order, with echo $LFS working, lincs to /tools, etc all working. Still, I get errors regarding dependency permissions if I compile some of the packages without going into root. It's probably not a big deal, but thought I might be missing something .

example making glib from lfs user:

Code:
Insecure dependency in open while running setuid at gen-libm-test.pl line 429.
make[2]: *** [/mnt/hda4/lfs/glibc-build/math/libm-test.stmp] Error 25
make[2]: Leaving directory `/mnt/hda4/lfs/glibc-2.8-20080929/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/hda4/lfs/glibc-2.8-20080929'
make: *** [all] Error 2
 
Old 03-28-2009, 07:23 AM   #2
emclinux
Member
 
Registered: Sep 2008
Posts: 49

Rep: Reputation: 16
When you ls -l on the /mnt/lfs directory does it comeback as something like this?

drwxr-xr-x 11 lfs root 4096 Mar 21 14:34 tools
drwxr-xr-x 11 lfs root 4096 Mar 21 14:34 sources
 
Old 03-28-2009, 11:53 AM   #3
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by emclinux View Post
When you ls -l on the /mnt/lfs directory does it comeback as something like this?

drwxr-xr-x 11 lfs root 4096 Mar 21 14:34 tools
drwxr-xr-x 11 lfs root 4096 Mar 21 14:34 sources
No, all permissions seem to be set correctly to lfs:lfs. For modules like
Coreutils I couldn't even compile in puppy linux, but was able to compile from Tiny-Core linux while in root. Then I had to chown the /tools/bin directory back to lfs:lfs, since it became root:root. All environment variables seem to be set correctly for user lfs, and I use 'su - lfs' (non-login). Path's are set correctly in .bashrc
(/tools/bin first).

edit: One thing I found, links in /tools need to be deferenced (chown -h) to change permission to lfs:lfs from root:root. I don't know if this was presenting a problem.

Last edited by jpeters; 03-28-2009 at 02:17 PM.
 
  


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
LFS 6.2: made mistake when going from lfs to root setup oldgeek Linux From Scratch 4 11-12-2006 09:00 PM
Kismet won't compile with Imagemagick and "user is not root" mixtr Slackware 2 05-02-2006 04:40 PM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
Compile binutils as lfs or root? El Basto Linux From Scratch 5 09-13-2004 01:37 PM
Failed Attempt to Compile 2.6.5 as Non-root User farmerdan Linux - General 3 04-06-2004 06:49 PM

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

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