pterm vs login gid

Hello.

I am having a problem with user groups in QNX 6.1 logging in through pterm
vs telnet login. It seems that pterm does not set the proper user groups
according to the /etc/group file.

Better to show than describe:

in /etc/group:
user:x:100:
hwdev:x:101:user1,user2,user3

in /etc/passwd:
user1:x:100:100:User 1:/home/user1:/bin/sh
user2:x:101:100:User 2:/home/user2:/bin/sh
user3:x:102:100:User 3:/home/user3:/bin/sh

I telnet into the box as user1 and

$ id
uid=100(user1) gid=100(user) groups=101(hwdev)

I open up a pterm -l terminal window in photon, and

$ id
uid=100(user1) gid=100(user)
$ newgrp
$ id
uid=100(user1) gid=100(user) groups=101(hwdev)

Why are the two login cases different?

Cheers,
Stuart Harding

Try ‘pterm -l’ and see if that makes any difference.

Kris

Stuart Harding <stuart@intellidesign.com.au> wrote:

I am having a problem with user groups in QNX 6.1 logging in through pterm
vs telnet login. It seems that pterm does not set the proper user groups
according to the /etc/group file.

It’s a bug in phlogin (internal PR number 9044). It’s fixed in 6.2.


Wojtek Lerch QNX Software Systems Ltd.