Skip to content

group.conf entry ignored #539

@HauserV

Description

@HauserV

The following entry added to /etc/security/group.conf cannot be parsed and causes the following error: pam_group(sshd:setcred): field too long - ignore.

#
# End of group.conf file
#

# Added by Google Compute Engine OS Login.
sshd;*;*;Al0000-2400;video

The issue is that linux-pam (1.5.3-5ubuntu5.1) doesn't expect that there is more content after the EOF comment block, or to be more precise, that entries aren't terminated by a newline character.

$ xxd /etc/security/group.conf | tail -n5
00000e30: 0a23 0a0a 2320 4164 6465 6420 6279 2047  .#..# Added by G
00000e40: 6f6f 676c 6520 436f 6d70 7574 6520 456e  oogle Compute En
00000e50: 6769 6e65 204f 5320 4c6f 6769 6e2e 0a73  gine OS Login..s
00000e60: 7368 643b 2a3b 2a3b 416c 3030 3030 2d32  shd;*;*;Al0000-2
00000e70: 3430 303b 7669 6465 6f                   400;video

I've noticed that there was some back and forth regarding this newline at the end in #520 and #523. Could you please revisit this once more? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions