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 06-17-2013, 08:11 AM   #1
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Rep: Reputation: Disabled
coreutils Topic 6.27 LFS 7.3 not to able to run check using user nobody


============================================================
root:/sources/coreutils-8.21# su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"
GEN public-submodule-commit
make check-recursive
make[1]: Entering directory `/sources/coreutils-8.21'
Making check in po
/bin/sh: line 17: cd: po: Not a directory
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/sources/coreutils-8.21'
make: *** [check] Error 2

=============================================================

deleted the folder coreutils-8.21 and extracted it again (did twice) compiles ok without errors but the check using 'nobody' gives error stated above ----HELP NEEDED I AM NEW IN THIS AND CURRENTLY BUILDING LFS SO THAT I CAN GO FOR EMBEDDED LINUX AFTERWARDS
Thanks in advance
 
Old 06-17-2013, 09:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
root:/sources/coreutils-8.21# su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"
GEN public-submodule-commit
make check-recursive
make[1]: Entering directory `/sources/coreutils-8.21'
Making check in po
/bin/sh: line 17: cd: po: Not a directory

make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/sources/coreutils-8.21'
make: *** [check] Error 2

deleted the folder coreutils-8.21 and extracted it again (did twice) compiles ok without errors but the check using 'nobody' gives error stated above ----
Could it be that your downloaded coreutils package is corrupt?

Is the po directory present when you unpack coreutils? (It should be)

Quote:
HELP NEEDED I AM NEW IN THIS AND CURRENTLY BUILDING LFS SO THAT I CAN GO FOR EMBEDDED LINUX AFTERWARDS
There's no need to shout......
 
Old 06-17-2013, 11:01 AM   #3
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
@druuna

the package is not corrupt it compiled without errors downloaded the package from the site mentioned in LFS. By the way the error occurs only when I try to test as a 'nobody' user su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" it occurred again in 6.33 Bash-4.2 when then book says to test as 'nobody' user
 
Old 06-17-2013, 11:10 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
the package is not corrupt it compiled without errors downloaded the package from the site mentioned in LFS.
That doesn't prove anything.

Is coreutils-8.21.tar.xz' MD5 sum as mentioned in the book (MD5 sum: 065ba41828644eca5dd8163446de5d64)?

Quote:
By the way the error occurs only when I try to test as a 'nobody' user su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" it occurred again in 6.33 Bash-4.2 when then book says to test as 'nobody' user
Is user nobody present? You should have created it here: 6.6. Creating Essential Files and Symlinks (the cat > /etc/passwd ..... part).
 
Old 06-17-2013, 12:18 PM   #5
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
Yeah I created the user at that point but I cant be sure about MD5 however I downloaded the package from the URL path that was mentioned in LFS. I have installed it and now I am installing the rest can you tell if it can cause problems in future??
 
Old 06-17-2013, 12:48 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
but I cant be sure about MD5
Just check the correctness of the file (md5sum coreutils-8.21.tar.xz).

Quote:
I have installed it and now I am installing the rest can you tell if it can cause problems in future??
There's no way of knowing. The tests were not run so the coreutils commands might not be correct. You have a list of installed commands, if any of those are giving you problems you know something is wrong.

On the other hand: All might be functioning correctly.
 
Old 06-17-2013, 11:34 PM   #7
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
I checked the md5sum its same as mentioned in the book
 
Old 06-18-2013, 01:18 AM   #8
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
@druuna

I think its a problem with the user 'nobody' any ideas???
 
Old 06-18-2013, 01:32 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
I think its a problem with the user 'nobody' any ideas???
Although twice isn't a pattern just yet, it is strange that both coreutils and bash show this behaviour when running the tests as user nobody.

I've never seen or read about this behaviour before and can only conclude that you must have done something wrong at some point.

Can you post the output of the following (from within the chrooted environment):
Code:
grep nobody /etc/passwd /etc/group
You mention the same behaviour when doing bash. Can you post the exact error(s) shown?
 
Old 06-18-2013, 02:32 AM   #10
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
=====================================================================

root:/# grep nobody /etc/passwd /etc/group
/etc/passwd:nobody:x:99:99:Unprivileged User:/dev/null:/bin/false

=====================================================================

I have no idea what it means can u explain what does it do
 
Old 06-18-2013, 02:40 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
root:/# grep nobody /etc/passwd /etc/group
/etc/passwd:nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
That entry looks correct.

Quote:
I have no idea what it means can u explain what does it do
This is a passwd entry for a specific user, user nobody in this case.

Have a look her for an explanation of all the used fields: Understanding /etc/passwd File Format


How about my other question?
 
Old 06-18-2013, 05:21 AM   #12
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
That entry looks correct.

How about my other question?
root:/sources/bash-4.2# su nobody -s /bin/bash -c "PATH=$PATH make tests"

***********************************************************
* *
/bin/sh: /sources/bash-4.2/bashversion: Permission denied
*
* *
***********************************************************

/bin/sh: line 0: cd: ./tests: Not a directory
make: *** [tests] Error 1
 
Old 06-18-2013, 05:27 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
root:/sources/bash-4.2# su nobody -s /bin/bash -c "PATH=$PATH make tests"
/bin/sh: /sources/bash-4.2/bashversion: Permission denied
/bin/sh: line 0: cd: ./tests: Not a directory
make: *** [tests] Error 1
It seems user nobody isn't allowed access.

Did you execute the chown -Rv nobody . part (for both coreutils and bash)?
 
Old 06-18-2013, 05:52 AM   #14
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
It seems user nobody isn't allowed access.

Did you execute the chown -Rv nobody . part (for both coreutils and bash)?
yes I did execute chown for both processes
 
Old 06-18-2013, 06:02 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by sallu.salmankhalid View Post
yes I did execute chown for both processes
Don't you mean directories and files? This command recursively changes the owner of all files and directories to nobody. It doesn't concern processes.

Anyway: I'm out of ideas. You must be doing something wrong, but I cannot come up with anything I haven't mentioned before.
 
  


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
error in 6.24 Coreutils-8.15 in LFS book 7.1 hrmn Linux From Scratch 2 08-19-2012 09:17 PM
Help with chapter 6.22 Coreutils - 8.10 in LFS 6.8 adi_30stm Linux From Scratch 7 08-05-2011 02:06 AM
LFS 6.4: a coreutils test fails ReyJavikVI Linux From Scratch 3 06-21-2009 02:09 PM
Coreutils-5.2.1 error LFS 5.1 michaelbhahn Linux From Scratch 8 09-01-2007 01:36 PM
now getting error in coreutils test(chapter 6-lfs-5.1.1) linuxbh Linux From Scratch 2 09-16-2004 02:45 AM

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

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