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 04-28-2012, 06:45 AM   #1
lich000king
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
jhalfs permission problem


Hi

When trying to run jhalfs, I get the following shortly after fetching the book:

Code:
You are going to log into the user account lfs
sudo requires a password
.bashrc: line 8: /mnt/lfs/jhalfs/envars: Permission denied
make[1]: *** [mk_LUSER] Error 1
make[1]: Leaving directory `/mnt/lfs/jhalfs'

<jhalfs 2.3.2> exit

make: *** [all] Error 2
I did edit the sudoers file to include
Code:
[username]    ALL=(ALL) NOPASSWD: ALL
for the host and lfs users and I also added
Code:
alias su='sudo su'
To all the users' .profile, none of this helped.

I'm using a compliant host based on an up-to-date Debian.

Does anyone have an idea, where the problem lies?


Edit: a little update:

So far I ran the 'make' command as the host user (as I understand that is the recommendation). Now I did the following:

Quote:
sudo chown -hR lfs:lfs /mnt/lfs/
which it resulted (not surprisingly) in it complaining it has no write acces on the build directory.
But then I did
Quote:
su lfs
and ran the jhalfs script as the lfs user. This seems to work halfway, the above error no longer appears. However I get immediately:

Quote:
Building target 032-binutils-pass1
[+++++/tar: write error ] 0 min. 5 sec
[ ]
Target 032-binutils-pass1 OK
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Building target 033-gcc-pass1
[+tar: write error ] 0 min. 0 sec
make: *** [033-gcc-pass1] Error 2
make[1]: *** [mk_LUSER] Error 2
make[1]: Leaving directory `/mnt/lfs/jhalfs'

<jhalfs 2.3.2> exit

make: *** [all] Error 2
Edit edit: Since I'm not getting any replies, I posted to the alfs dicussion mailing list. I will of course post back here if I find the solution.

Last edited by lich000king; 05-03-2012 at 03:55 AM.
 
Old 05-25-2012, 01:12 PM   #2
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
I ended up having errors too trying to use a .bashrc file after chrooting my environment. I hate having everything just white but I was getting weird errors all the time so I've decided to just not have one.

Everything worked great from there as long as there's no .bashrc file configured.
 
Old 05-29-2012, 03:16 PM   #3
lich000king
Member
 
Registered: Jun 2011
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hi

Thanks for your suggestion. Unfortunately it did not help, I still get the same error.
I also got a few ideas on the mailing list, but none of them helped so far.
 
  


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
livecd and jhalfs question charlie_lab Linux From Scratch 1 03-02-2010 09:00 AM
Help again with jhalfs please bines Linux From Scratch 5 03-17-2009 05:03 AM
Using jhalfs - book problem bines Linux From Scratch 4 03-14-2009 08:18 AM
LFS & jhalfs problem guenther_r Linux From Scratch 0 08-17-2007 10:22 AM
need some help with jhalfs-1.0 arcile Linux - Newbie 2 08-30-2006 09:06 PM

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

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