{"id":15014030,"url":"https://github.com/gibbs/puppet-login_defs","last_synced_at":"2026-02-24T00:06:02.023Z","repository":{"id":43408617,"uuid":"465025357","full_name":"gibbs/puppet-login_defs","owner":"gibbs","description":"Puppet module for managing /etc/login.defs","archived":false,"fork":false,"pushed_at":"2025-04-27T18:25:17.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T10:22:33.443Z","etag":null,"topics":["login","puppet","puppet-module"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gibbs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-01T19:15:50.000Z","updated_at":"2025-04-27T18:25:16.000Z","dependencies_parsed_at":"2025-07-24T08:49:19.032Z","dependency_job_id":null,"html_url":"https://github.com/gibbs/puppet-login_defs","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"df0d18a0cd595adc92de009ace1aa9b8c1263efd"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gibbs/puppet-login_defs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbs%2Fpuppet-login_defs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbs%2Fpuppet-login_defs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbs%2Fpuppet-login_defs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbs%2Fpuppet-login_defs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gibbs","download_url":"https://codeload.github.com/gibbs/puppet-login_defs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbs%2Fpuppet-login_defs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29761994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T21:02:23.375Z","status":"ssl_error","status_checked_at":"2026-02-23T20:58:31.539Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["login","puppet","puppet-module"],"created_at":"2024-09-24T19:45:04.746Z","updated_at":"2026-02-24T00:06:02.008Z","avatar_url":"https://github.com/gibbs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# login_defs\n\n[![Build Status](https://github.com/gibbs/puppet-login_defs/workflows/Testing/badge.svg)](https://github.com/gibbs/puppet-login_defs/actions?query=workflow%3ACI)\n[![Release](https://github.com/gibbs/puppet-login_defs/workflows/Release/badge.svg)](https://github.com/gibbs/puppet-login_defs/actions?query=workflow%3ARelease)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/genv/login_defs.svg?maxAge=2592000?style=plastic)](https://forge.puppet.com/genv/login_defs)\n[![Apache-2 License](https://img.shields.io/github/license/gibbs/puppet-login_defs.svg)](LICENSE)\n\nConfigure and manage the `/etc/login.defs` file that defines site-specific\nconfiguration for the shadow password suite.\n\n## Usage\n\nIncluding `login_defs` will manage `/etc/login.defs` with the default\nconfiguration supplied by supported distributions:\n\n```puppet\ninclude login_defs\n```\n\nTo manage the file permissions:\n\n```puppet\nclass { 'login_defs':\n  owner =\u003e 0,\n  group =\u003e 0,\n  mode  =\u003e '0644',\n}\n```\n\n### Configuration Examples\n\nThe `options` parameter accepts a hash of `value`, `comment` and `enabled`.\n\n- When `enabled` is false the setting will be commented out.\n- The `comment` parameter is used to maintain comments in the file.\n\n#### Manifest Example\n\n```puppet\n# Manifest example\nclass { 'login_defs':\n  mode    =\u003e '0644',\n  options =\u003e {\n    'PASS_MAX_DAYS' =\u003e {\n      value   =\u003e 30,\n      comment =\u003e 'Maximum number of days a password may be used.',\n    },\n    'DEFAULT_HOME' =\u003e {\n      value   =\u003e 'yes',\n      enabled =\u003e false,\n    }\n  }\n}\n```\n\n#### Hiera Example\n\n```yaml\nlogin_defs::mode: '0644'\nlogin_defs::options:\n  PASS_MAX_DAYS:\n    value: 30\n    comment: Maximum number of days a password may be used.\n\n  DEFAULT_HOME:\n    value: 'yes'\n    enabled: false\n\n  TTYGROUP:\n    value: tty\n    comment: |-\n      If you have a \"write\" program which is \"setgid\" to a special group\n      which owns the terminals, define TTYGROUP to the group number and\n      TTYPERM to 0620.  Otherwise leave TTYGROUP commented out and assign\n      TTYPERM to either 622 or 600.\n  TTYPERM:\n    value: '0600'\n```\n\n### Managing the Package\n\nThis module will not, by default, manage the `login` (Debian) or\n`shadow-utils` (RedHat) package. This can be enabled and customised with:\n\n```puppet\nclass { 'login_defs':\n  package_manage =\u003e true,\n  package_ensure =\u003e 'installed',\n  package_name   =\u003e undef,\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbs%2Fpuppet-login_defs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgibbs%2Fpuppet-login_defs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbs%2Fpuppet-login_defs/lists"}