I would like user1 to have access to user2 stuf. I’ve tried adding user1 to
the definition of group2 in /etc/group but to no avail. What have I miss?
you are right on track.
since qnx4 doesn’t support supplement group, you can only be at one
group at a time. As user1, run:
newgroup group2 (or was it “newgrp group2”).
once you are done, you can switch back:
newgroup group1
goodluck.
Aas I mentioned I couldn`t find a way to use newgrp in pterm.
ah, photon. guess you need to file a bug report.
it works fine for me under X Window gui and text console.
maybe you could use xphoton/xterm if you insist on using GUI
and Photon.
Mario Charest postmaster@127.0.0.1 wrote:
user1 belong to group1
user2 belong to group2
I would like user1 to have access to user2 stuf. I’ve tried adding
user1 to
the definition of group2 in /etc/group but to no avail. What have I
miss?
you are right on track.
since qnx4 doesn’t support supplement group, you can only be at one
group at a time. As user1, run:
newgroup group2 (or was it “newgrp group2”).
once you are done, you can switch back:
newgroup group1
Aas I mentioned I couldn`t find a way to use newgrp in pterm.
Mario Charest postmaster@127.0.0.1 wrote:
Aas I mentioned I couldn`t find a way to use newgrp in pterm.
ah, photon. guess you need to file a bug report.
it works fine for me under X Window gui and text console.
maybe you could use xphoton/xterm if you insist on using GUI
and Photon.
Works for me in a pterm as well.
What version of QNX4? I’m testing with a relatively recent 4.25 and
Photon 1.14.
newgrp may do some login type processing – do you do anything interesting
or exciting in your /etc/default/profile, $HOME/.profile, or whatever file
is pointed to by $ENV after your $HOME/.profile has executed?
Hm…I just had a pterm go away…I did “newgrp blah” and blah was NOT
a valid group.
Try “whence newgrp” and you will probably find the result is “exec newgrp”,
which means the shell turns itself into “newgrp” and when newgrp fails, and
exits, the pterm window has no program running on its terminal, so it goes
away as well.
Try /bin/newgrp the_new_group for testing purposes… I’ll bet you’re getting
an error, but, of course, not being to see the error.