Skip to contentSkip to conversation

facing issue "TBROK : nobody not in /etc/passwd"

LTP vishwanath govind 2 participants 10 messages Feb 15, 2010 – Feb 19, 2010 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,
I am facing common issue which causing many of the LTP syscalls test cases to fail. I have taken mknod02 test to show this issue here. Definitely I am missing something out here, could you guys please point me to right direction? Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

======================end========================================

Regards
Vishwa

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 26 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test cases to fail. I have taken mknod02 test to show this issue here. Definitely I am missing something out here, could you guys please point me to right direction?  Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 5 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?
Thanks,
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw

Garrett,
Thanks for your quick reply. I am using "ltp-full-20091231".
Regards
Vishwa

Quoted 32 lines · Garrett Cooper
Quoted 3 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test

cases

Quoted 1 line

to fail. I have taken mknod02 test to show this issue here. Definitely I

am

Quoted 16 lines

missing something out here, could you guys please point me to right direction? Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

Quoted 8 lines
# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l

Quoted 9 lines

GNU/Linux

Quoted 3 lines
# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?
Thanks,
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#3 lore raw
Quoted 5 lines · vishwanath govind

Garrett,
 Thanks for your quick reply. I am using "ltp-full-20091231". Regards
Vishwa

Quoted 40 lines
Quoted 39 lines · Garrett Cooper
Quoted 28 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test cases
to fail. I have taken mknod02 test to show this issue here. Definitely I am
missing something out here, could you guys please point me to right direction?  Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 6 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could be the culprit:

ERRORS
0 or ENOENT or ESRCH or EBADF or EPERM or ...
The given name or uid was not found.

EINTR A signal was caught.

EIO I/O error.

EMFILE The maximum number (OPEN_MAX) of files was open already
in the calling process.

ENFILE The maximum number of files was open already in the system.

ENOMEM Insufficient memory to allocate passwd structure.

ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:
<http://ltp.git.sourceforge.net/git/gitweb.cgi?p=ltp/ltp-dev.git;a=patch;h=HEAD;hp=8686ad72fbe76a7de8fe8e93ef68a71fff8a049d>)?
Thanks!
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#4 lore raw

Yes, I checked this before, It return errorno "0". Somehow mknod02 won't
display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see "nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need to enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>> ==============================end================================== Regards
Vishwa

Quoted 70 lines · Garrett Cooper
Quoted 6 lines · vishwanath govind

Garrett,
Thanks for your quick reply. I am using "ltp-full-20091231".
Regards
Vishwa

On Mon, Feb 15, 2010 at 12:33 PM, Garrett Cooper <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 5 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test cases
to fail. I have taken mknod02 test to show this issue here. Definitely

I

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines

am
missing something out here, could you guys please point me to right direction? Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could be the culprit:

ERRORS
0 or ENOENT or ESRCH or EBADF or EPERM or ...
The given name or uid was not found.

EINTR A signal was caught.

EIO I/O error.

EMFILE The maximum number (OPEN_MAX) of files was open already
in the calling process.

ENFILE The maximum number of files was open already in the system.

ENOMEM Insufficient memory to allocate passwd structure.

ERANGE Insufficient buffer space supplied.

Quoted 9 lines

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:
<
http://ltp.git.sourceforge.net/git/gitweb.cgi?p=ltp/ltp-dev.git;a=patch;h=HEAD;hp=8686ad72fbe76a7de8fe8e93ef68a71fff8a049d

Quoted 1 line

)?

Thanks!
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#5 lore raw
Quoted 35 lines · vishwanath govind

Yes, I checked this before, It return errorno "0". Somehow mknod02 won't display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see "nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need to enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>> ==============================end================================== Regards
Vishwa

Quoted 75 lines
Quoted 74 lines · Garrett Cooper
Quoted 5 lines · vishwanath govind

Garrett,
 Thanks for your quick reply. I am using "ltp-full-20091231". Regards
Vishwa

Quoted 42 lines
Quoted 40 lines · Garrett Cooper
Quoted 29 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test cases
to fail. I have taken mknod02 test to show this issue here. Definitely I
am
missing something out here, could you guys please point me to right direction?  Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 6 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could be the culprit:

ERRORS
      0 or ENOENT or ESRCH or EBADF or EPERM or ... The given name or uid was not found.

      EINTR  A signal was caught.

      EIO    I/O error.

      EMFILE The maximum number (OPEN_MAX) of files was open already in the calling process.

      ENFILE The maximum number of files was open already in the system.

      ENOMEM Insufficient memory to allocate passwd structure.

      ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:

Nope... you sure your ldap / nis isn't busted?
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#6 lore raw

I have initramfs file system built using Busybox-1.16.0 and didn't setup the ldap/nis. I have few files in /etc like passwd,group and syslogd conf files.But getpwnam() should search local repository(/etc/passwd file) and returns a pointer to a *struct passwd*, correct?. Do i really need to setup ldap/NIS to make it work getpwnam() funtion? The device i am using has memory restriction to add more stuff to filesystem and its very minimal. So please guide me what are the minimal things need to setup to get getpwnam() function working? Please correct me if i am wrong here.

Regards
Vishwa

Quoted 111 lines · Garrett Cooper
Quoted 2 lines · vishwanath govind

Yes, I checked this before, It return errorno "0". Somehow mknod02 won't display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not

in

Quoted 2 lines

/etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see "nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need

to

Quoted 32 lines

enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>> ==============================end================================== Regards
Vishwa

On Mon, Feb 15, 2010 at 12:50 PM, Garrett Cooper <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 5 lines · vishwanath govind

Garrett,
Thanks for your quick reply. I am using "ltp-full-20091231".
Regards
Vishwa

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · Garrett Cooper
Quoted 3 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls

test

Quoted 53 lines
Quoted 53 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

cases
to fail. I have taken mknod02 test to show this issue here. Definitely I
am
missing something out here, could you guys please point me to right direction? Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could be the culprit:

ERRORS
0 or ENOENT or ESRCH or EBADF or EPERM or ...
The given name or uid was not found.

EINTR A signal was caught.

EIO I/O error.

EMFILE The maximum number (OPEN_MAX) of files was open already
in the calling process.

ENFILE The maximum number of files was open already in the system.

ENOMEM Insufficient memory to allocate passwd structure.

Quoted 9 lines
Quoted 5 lines
Quoted 5 lines

ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:

Nope... you sure your ldap / nis isn't busted?
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#7 lore raw
Quoted 9 lines · vishwanath govind

I have initramfs file system built using Busybox-1.16.0 and didn't setup the ldap/nis. I have few files in /etc like passwd,group and syslogd conf files.But getpwnam() should search local repository(/etc/passwd file) and returns a pointer to a struct passwd, correct?. Do i really need to setup ldap/NIS to make it work getpwnam() funtion? The device i am using has memory restriction to add more stuff to filesystem and its very minimal. So please guide me what are the minimal things need to setup to get getpwnam() function working? Please correct me if i am wrong here.

Quoted 125 lines

Regards
Vishwa

Quoted 121 lines · Garrett Cooper
Quoted 37 lines · vishwanath govind

Yes, I checked this before, It return errorno "0". Somehow mknod02 won't display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not in
/etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see "nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need to
enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>> ==============================end================================== Regards
Vishwa

Quoted 79 lines
Quoted 77 lines · Garrett Cooper
Quoted 5 lines · vishwanath govind

Garrett,
 Thanks for your quick reply. I am using "ltp-full-20091231". Regards
Vishwa

Quoted 44 lines
Quoted 42 lines · Garrett Cooper
Quoted 31 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test
cases
to fail. I have taken mknod02 test to show this issue here. Definitely I
am
missing something out here, could you guys please point me to right
direction?  Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids 'nobody' user id and group found. 'bin' user id and group found. 'daemon' user id and group found. Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 6 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could be the culprit:

ERRORS
      0 or ENOENT or ESRCH or EBADF or EPERM or ... The given name or uid was not found.

      EINTR  A signal was caught.

      EIO    I/O error.

      EMFILE The maximum number (OPEN_MAX) of files was open already in the calling process.

      ENFILE The maximum number of files was open already in the system.

      ENOMEM Insufficient memory to allocate passwd structure.

      ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:

Nope... you sure your ldap / nis isn't busted?

No.. heh. I was just wondering if you had it partially setup but
it was broken somehow.
Do you have an alternative means of checking, like with perl,
python, etc? Do you need to update your shadow password db setup? Thanks,
-Garrett

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#8 lore raw

Garret,

Quoted 1 line
Quoted 1 line

Do you have an alternative means of checking, like with perl,

python, etc?

Finally I cross-compiled Python and got it workin on my target device. is it possible to use python and parse /etc/passwd file for getpwnam() funtion. I believe if it returns uid and gid of the given user is more than enough correct?

Quoted 1 line
Quoted 1 line

Do you need to update your shadow password db setup?

I dont have shadow password db setup in filesystem but ported openLDAP to
my target device, is this help me ? The target device doen't have ethernet controller support so i cann't communicate to host. Curently passwd and group files in /etc directory as i mentioned above.

Please let me know your thoughts.

Regards
Vishwa

Quoted 147 lines · Garrett Cooper
Quoted 1 line · vishwanath govind

I have initramfs file system built using Busybox-1.16.0 and didn't setup

the

Quoted 5 lines

ldap/nis. I have few files in /etc like passwd,group and syslogd conf files.But getpwnam() should search local repository(/etc/passwd file) and returns a pointer to a struct passwd, correct?. Do i really need to setup ldap/NIS to make it work getpwnam() funtion? The device i am using has memory restriction to add more stuff to filesystem and its very minimal.

So

Quoted 1 line

please guide me what are the minimal things need to setup to get

getpwnam()

Quoted 6 lines

function working? Please correct me if i am wrong here.

Regards
Vishwa

On Mon, Feb 15, 2010 at 1:48 PM, Garrett Cooper <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 1 line · vishwanath govind

Yes, I checked this before, It return errorno "0". Somehow mknod02

won't

Quoted 1 line
Quoted 1 line
Quoted 1 line

display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s

not

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in
/etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I

see

Quoted 1 line
Quoted 1 line
Quoted 1 line

"nobody" user and uid/gid -99 is present in /etc/passwd file. Do I

need

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

to
enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or

directory

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>> ==============================end================================== Regards
Vishwa

Quoted 1 line · Garrett Cooper
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · vishwanath govind

Garrett,
Thanks for your quick reply. I am using "ltp-full-20091231".
Regards
Vishwa

On Mon, Feb 15, 2010 at 12:33 PM, Garrett Cooper <

[email protected]>

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 28 lines · wrote:
Quoted 25 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls test
cases
to fail. I have taken mknod02 test to show this issue here. Definitely I
am
missing something out here, could you guys please point me to right
direction? Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids 'nobody' user id and group found. 'bin' user id and group found. 'daemon' user id and group found. Users group found.
Sys group found.
Required users/groups exist.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010

armv6l

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could

be

Quoted 24 lines
Quoted 24 lines
Quoted 23 lines
Quoted 23 lines

the culprit:

ERRORS
0 or ENOENT or ESRCH or EBADF or EPERM or ...
The given name or uid was not found.

EINTR A signal was caught.

EIO I/O error.

EMFILE The maximum number (OPEN_MAX) of files was open already
in the calling process.

ENFILE The maximum number of files was open already in the
system.

ENOMEM Insufficient memory to allocate passwd structure.

ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you could grab the latest copy of the file from git and try that out (the patch is available at:

Quoted 9 lines
Quoted 1 line
Quoted 1 line

Nope... you sure your ldap / nis isn't busted?

No.. heh. I was just wondering if you had it partially setup but
it was broken somehow.
Do you have an alternative means of checking, like with perl,
python, etc? Do you need to update your shadow password db setup? Thanks,
-Garrett

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 8 lines · vishwanath govind

Garret,
 Thanks for your help and appreciated, using strace found that it missing libnss* files. So i copied them to target lib and it started working. I believe these libnss* files direct it to look for /etc/passwd file for the given user name records.
Regards
Vishwa

Quoted 217 lines
Quoted 216 lines · Garrett Cooper
Quoted 11 lines · vishwanath govind

Garret,

Quoted 1 line
Quoted 1 line

Do you have an alternative means of checking, like with perl,

python, etc?

Finally I cross-compiled Python and  got it workin on my target device. is
it possible to use python and parse /etc/passwd file for getpwnam() funtion.
I believe if it returns uid and gid of the given user is more than enough
correct?

python -c 'import pwd; print pwd.getpwnam("nobody")'

should produce a tuple, like:

gcooper@orangebox ~ $ python -c 'import pwd; print pwd.getpwnam("nobody")' pwd.struct_passwd(pw_name='nobody', pw_passwd='x', pw_uid=65534, pw_gid=65534, pw_gecos='nobody', pw_dir='/', pw_shell='/bin/false')

Quoted 7 lines
Quoted 1 line
Quoted 1 line

Do you need to update your shadow password db setup?

 I dont have shadow password db setup in filesystem but ported openLDAP to
my target device, is this help me ? The target device doen't have ethernet
controller support so i cann't communicate to host. Curently passwd and group files in /etc directory as i mentioned above.

Err... that wasn't required :\. I was just wondering if you originally set it up, but it was broken because it couldn't talk to the ldap server or something... oh well...if it's trying to lookup the username in ldap and failing, that would be interesting as well.

One avenue we haven't tried yet is ltrace/strace though. That would tie down the actual root cause a bit better.

Quoted 1 line

Please let me know your thoughts.

Thanks!
-Garrett

Quoted 172 lines
Quoted 170 lines · Garrett Cooper
Quoted 17 lines · vishwanath govind

I have initramfs file system built using Busybox-1.16.0 and didn't setup
the
ldap/nis. I have few files in /etc like passwd,group and syslogd conf files.But getpwnam() should search local repository(/etc/passwd file) and
returns a pointer to a struct passwd, correct?. Do i really need to setup
ldap/NIS to make it work getpwnam() funtion? The device i am using has
memory restriction to add more stuff to filesystem and its very minimal.
So
please guide me what are the minimal things need to setup to get getpwnam()
function working? Please correct me if i am wrong here.

Quoted 145 lines

Regards
Vishwa

Quoted 140 lines · Garrett Cooper
Quoted 41 lines · vishwanath govind

Yes, I checked this before, It return errorno "0". Somehow mknod02 won't
display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s
not
in
/etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I
see
"nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need
to
enable anything in KERNEL config or /etc?

============================log=============================== <<<test_start>>>
tag=nftw01 stime=1170483127
cmdline="nftw01"
contacts=""
analysis=exit
<<<test_output>>>
nobody not found in /etc/passwd: No such file or directory <<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=nftw6401 stime=1170483127
cmdline="nftw6401"
contacts=""
analysis=exit
<<<test_output>>>
change_owner: nobody not found in /etc/passwd: No such file or directory
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no cutime=2 cstime=1
<<<test_end>>>

Quoted 94 lines

==============================end================================== Regards
Vishwa

Quoted 87 lines · Garrett Cooper
Quoted 5 lines · vishwanath govind

Garrett,
 Thanks for your quick reply. I am using "ltp-full-20091231". Regards
Vishwa

Quoted 49 lines
Quoted 46 lines · Garrett Cooper
Quoted 34 lines · vishwanath govind

Hi,
I am facing common issue which causing many of the LTP syscalls
test
cases
to fail. I have taken mknod02 test to show this issue here. Definitely I
am
missing something out here, could you guys please point me to
right
direction?  Please let me know if you need some more info/log

======================log================================

# ls /etc
group   passwd

# ./IDcheck.sh
Checking for required user/group ids 'nobody' user id and group found. 'bin' user id and group found. 'daemon' user id and group found. Users group found.
Sys group found.
Required users/groups exist.

# cat /etc/passwd
root:x:0:0:root::
nobody:x:99:99:nobody::
bin:x:1:1:bin::
daemon:x:2:2:daemon::
Quoted 7 lines

#uname -a
Linux (none) 2.6.29 #4 PREEMPT Thu Feb 11 23:37:46 PST 2010 armv6l
GNU/Linux

# ./mknod02
mknod02     1  TBROK  :  nobody not in /etc/passwd

What version of LTP is this?

That's a lousy diagnostic, as any one of the following errors could
be
the culprit:

ERRORS
      0 or ENOENT or ESRCH or EBADF or EPERM or ... The given name or uid was not found.

      EINTR  A signal was caught.

      EIO    I/O error.

      EMFILE The maximum number (OPEN_MAX) of files was open already
in the calling process.

      ENFILE The maximum number of files was open already in the system.

      ENOMEM Insufficient memory to allocate passwd structure.

      ERANGE Insufficient buffer space supplied.

What are the permissions on the file and is there any way where you
could grab the latest copy of the file from git and try that out (the
patch is available at:

Nope... you sure your ldap / nis isn't busted?

   No.. heh. I was just wondering if you had it partially setup but it was broken somehow.
   Do you have an alternative means of checking, like with perl, python, etc? Do you need to update your shadow password db setup?

Good to hear!
All the best,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list