Operating System - HP-UX
1833052 Members
2392 Online
110049 Solutions
New Discussion

set automatic choose of group at login

 
Bruno Dostie
Advisor

set automatic choose of group at login

is-it possible to add lines in .profile and/or .dtprofile to :
1- list groups in /etc/group or cat grouplist
2- ask to the user wich group he want to use during his working session and set this group for is telnet or CDE session

what I have to add in those file.

I'm not programmer and any help will be appreciated

Thanks a lot to any helper.
DOSB
1 REPLY 1
Antoanetta Naghiu
Esteemed Contributor

Re: set automatic choose of group at login

Not realy. For each user it is a primary group defined as primary group that is the group at login time and is store in /etc/passwd file under gid group.
You can try to do a work aroung and setup your own script called from .profile and sleep for 90 seconds. In the script use newgrp command. Of course, previouslly, you assigned the specified user to the secondary group.
see man group, man newgrp. Don't forget to create the link ln -s /etc/group /etc/logingroup