On Tue, Feb 20, 2001 at 02:59:19PM -0000, Jakab Laszlo wrote:
> I would like to make ssh (client) to show the user with
> different group id (not the default).
>
> Let's say I have on the server :
> user: _smith_
> default group: _users_
>
> but smith and john are part of the group _operator_
>
> I'm wondering if is possible when smith is connecting to the
> server with ssh to specify that now use the privileges of
> _smith_ but from the group _operator_. So the group privileges
> to be set up as _operator_. In this way all the work of _smith_
> can be accessed also by _john_.
Is there some reason you can't *ask* Smith and John to run
"newgrp operator" when appropriate?
If there is, well, many shells support the use of an
/etc/profile, which gets run before any user .profile scripts, so
you could put in code to see if the user's connected via ssh ("ps
-el | grep $PPID | grep sshd") and do the newgrp yourself.
Hope this helps. Have a nice day.
-- Larry