Wind River Support Network

HomeDefectsLIN5-7408
Fixed

LIN5-7408 : wrlinux 5.0.1 - /usr/bin/newgrp bad behaviour

Created: Jul 9, 2013    Updated: Dec 19, 2017
Resolved Date: Aug 1, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.6
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

newgrp command does not function properly.
even with the valid password, it outputs: "'Invalid password'"
please refer to the steps to reproduce section.

Steps to Reproduce

1. configure & build a wrlinux 5.0.1.4 project based on:
--enable-board=qemux86-64 --enable-build=production --enable-kernel=cgl --enable-rootfs=glibc_cgl --enable-ccache=yes --enable-jobs=9 --enable-parallel-pkgbuilds=9 --enable-reconfig --with-rcpl-version=0004

2. start qemu target: make start-target


Wind River Linux 5.0.1.4 qemu0 console

qemu0 login: root
Password: 
root@qemu0:~# adduser testuser
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
root@qemu0:~# adduser testuser2
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
root@qemu0:~# gpasswd testuser
Changing the password for group testuser
New Password: <---- entered qwerty
Re-enter new password: <---- entered qwerty
root@qemu0:~# su testuser2
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
testuser2@qemu0:/root$ newgrp testuser
Password: <---- entered qwerty
Invalid password.
testuser2@qemu0:/root$ exit
exit
root@qemu0:~# id testuser
uid=1004(testuser) gid=1004(testuser) groups=1004(testuser)
root@qemu0:~# id testuser2
uid=1005(testuser2) gid=1005(testuser2) groups=1005(testuser2)

Other Downloads


Live chat
Online