Wind River Support Network

HomeDefectsLIN5-17755
Fixed

LIN5-17755 : [userspace] /etc/passwd is incorrect

Created: Jan 12, 2014    Updated: Dec 19, 2017
Resolved Date: Feb 17, 2014
Found In Version: 5.0.1.11
Fix Version: 5.0.1.12
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
======================
/etc/passwd is not as same as other platform.

when run command "cat /etc/passwd | grep ftp", it will show

root@qemu10:/etc# cat /etc/passwd | grep quagga
quagga:x:989:987::/var/run/quagga/:/bin/sh
root@qemu10:/etc# cat /etc/passwd | grep mysql
mysql:x:1000:65534:Linux User,,,:/var/mysql:/bin/sh
root@qemu10:/etc# cat /etc/passwd | grep postfix
postfix:x:988:985::/var/spool/postfix:/bin/sh
root@qemu10:/etc# cat /etc/passwd | grep vmail 
vmail:x:987:983::/var/spool/vmail:/bin/sh

for above lines, the last string should be "/bin/false", not "/bin/sh"

Steps to Reproduce

1

1) configure
/lpg-build/cdc/fast_prod/wrlinux50111/dvd_install/lx02_12sp/wrlinux-5/wrlinux/configure --enable-board=intel-xeon-core --enable-rootfs=glibc-cgl --enable-kernel=cgl --enable-addons=wr-rcfl --with-layer=/lpg-build/cdc/bsp/wrlinux-6.0/wr-testing/userspace-new,rcfl --with-template=feature/valgrind,feature/libhugetlbfs,feature/lttng2,feature/nfsd,feature/mysql,feature/mysql-odbc,feature/oprofile,feature/syslog-ng-logrotate,feature/target-toolchain --enable-test=yes --enable-jobs=2 --enable-build=profiling --enable-parallel-pkgbuilds=12

2) make fs

3) boot target

2 run "cat /etc/passwd | grep mysql"
           "cat /etc/passwd | grep quagga"
           "cat /etc/passwd | grep postfix "
            "cat /etc/passwd | grep vmail"

Other Downloads


Live chat
Online