LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Bash Test Suite Result Questions (https://www.linuxquestions.org/questions/linux-from-scratch-13/bash-test-suite-result-questions-896645/)

ToFue 08-10-2011 07:46 PM

Bash Test Suite Result Questions
 
I'm running the test for Bash as stated in LFS 6.9; ch_6.29 after changing the ownership of the bash source folder to 'nobody' and the results come back as "permission denied". The Instructions say to do:
Code:

chown -Rv nobody .

...and...

su-tools nobody -s /bin/bash -c "make tests"

If I run make tests by itself, it looks like a normal test. When attempting make install, I get the same messages as from running the check as 'nobody'.

What am I missing?

These commands are issued directly after issuing make.

My /etc/group is setup according to the earlier instructions in ch 6

My system is vmware, i686 (family 6), 1G Ram, >8G HDD .. though this shouldn't be relevant, i think.. My host is LFS liveCD (last one), though by now I'm already chrooted.


Thanks in advance for your suggestion!

druuna 08-11-2011 01:10 AM

Hi,
Quote:

Originally Posted by ToFue (Post 4439178)
I'm running the test for Bash as stated in LFS 6.9; ch_6.29 after changing the ownership of the bash source folder to 'nobody' and the results come back as "permission denied". The Instructions say to do:
Code:

chown -Rv nobody .

...and...

su-tools nobody -s /bin/bash -c "make tests"


Assuming you meant LFS 6.8 (Stable) instead of LFS 6.9 (which doesn't exist yet): If I read the above correctly you get a permission denied message as a result of executing the chown command. If that is the case then something is definitely wrong and there is no point in running the su-tools ... and the rest of the commands.

Did you check the following:
- Are you inside the chrooted environment (6.4. Entering the Chroot Environment)
- Are you root user?
- Have you tried removing the /sources/bash-4.2 directory and redo this chapter?

If all that didn't come up with something, can you post the output of the following command (after running the chown -Rv nobody . command):
Code:

ls -la /sources/bash-4.2/ | head -12
Hope this helps.

ToFue 08-11-2011 12:06 PM

Thank you, this issue is solved!

It is LFS version 6.8, sorry..

I woke up today & started going through your steps of repeating the chapter. After I'd removed the folder, and again un-tared the archive to repeat the chapter, the test suite worked, and the install continued through. Thank you.

I'm not sure where I went wrong exactly.. I was muddled with sleep.. most likely a repeating typo.

I wasn't clear on the description of symptoms though, and will attempt to clarify for anyone else that may encounter this:
The "permission denied" occurred *during* the tests for each individual test output, and during make install for all access entries (though did not happen for root by just doing make tests).

The chown command had executed as expected, changing the ownership (recursively) of all files in .(that directory) of the bash source directory, as nobody:root (or nobody:nogroup where the original permission was 286:80 instead of root:root).

Thanks again, Druuna!

druuna 08-11-2011 12:21 PM

Glad to see you got it fixed!

BTW: You're welcome :)


All times are GMT -5. The time now is 02:32 AM.