ssh under newgrp'ed session fails when using HostbasedAuthentication

Solution Verified - Updated -

Issue

  • When using HostbasedAuthentication, performing a ssh command succeeds normally

    $ id
    uid=1000 (myuser) gid=1000(myuser) groups=1000(myuser), 100(users)
    $ ssh remote-system true
    $
    
  • When using HostbasedAuthentication, performing a ssh command after changing group using newgrp fails

    $ id
    uid=1000 (myuser) gid=100(users) groups=100(users), 1000(myuser)
    $ newgrp users
    $ ssh remote-system true
    setresgid 1000: Operation not permitted
    ssh_keysign: no reply
    key_sign failed
    $
    

Environment

  • Red Hat Enterprise Linux 7
  • openssh

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content