{"id":34743859,"url":"https://github.com/arcanericky/jacksquat","last_synced_at":"2026-05-09T07:33:03.295Z","repository":{"id":43704328,"uuid":"214455727","full_name":"arcanericky/jacksquat","owner":"arcanericky","description":"For when you need a login shell that can't do Jack Squat.","archived":false,"fork":false,"pushed_at":"2022-03-29T12:39:23.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T00:33:18.339Z","etag":null,"topics":["account","captive","linux","login","shell"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcanericky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-11T14:22:13.000Z","updated_at":"2024-06-20T00:33:18.340Z","dependencies_parsed_at":"2022-08-29T11:01:54.170Z","dependency_job_id":null,"html_url":"https://github.com/arcanericky/jacksquat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arcanericky/jacksquat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcanericky%2Fjacksquat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcanericky%2Fjacksquat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcanericky%2Fjacksquat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcanericky%2Fjacksquat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcanericky","download_url":"https://codeload.github.com/arcanericky/jacksquat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcanericky%2Fjacksquat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28019495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["account","captive","linux","login","shell"],"created_at":"2025-12-25T04:28:46.250Z","updated_at":"2025-12-25T04:28:46.917Z","avatar_url":"https://github.com/arcanericky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jack Squat\n\n[![Build Status](https://travis-ci.com/arcanericky/jacksquat.svg?branch=master)](https://travis-ci.com/arcanericky/jacksquat)\n[![codecov](https://codecov.io/gh/arcanericky/jacksquat/branch/master/graph/badge.svg)](https://codecov.io/gh/arcanericky/jacksquat)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\nFor when you need a login shell that can't do Jack Squat.\n\n### Quick Start\n\nCopy `jacksquat` to a place where it can be used as a login shell. For Debian, `/usr/sbin/` is a good location.\n\n```\n$ cp jacksquat /usr/sbin/\n```\n\nCreate the locked user, configured with the `jacksquat` shell.\n\n```\n$ useradd -m -s /usr/sbin/jacksquat jack\n$ passwd jack\nNew password: \nRetype new password: \npasswd: password updated successfully\n```\n\nValidate the user \"can't do jack squat\".\n\n```\n$ ssh jack@localhost\nPassword:\n```\n\nIf a log entry and/or a notice is desired when `jacksquat` is executed, add an `/etc/jacksquat.conf` file in json format containing a Go template of your log line (`logtemplate`) and notice (`noticetemplate`). Both fields are optional as is the configuration file. Logging is done with the `jacksquat` tag with a priority of `syslog.LOG_NOTICE|syslog.LOG_AUTH`. The following is an example and shows all of the available fields.\n\n```\necho '{\"logtemplate\":\"login by {{.UserName}} (UID: {{.UserID}}) on {{.TTYName}}\",\"noticetemplate\":\"Welcome {{.UserName}}. This is a captive account.\"}' \u003e /etc/jacksquat.conf\n```\n\nYou may want to use a [tool such as `jq`](https://stedolan.github.io/jq/) to validate the json is parsable.\n\n```\ncat /etc/jacksquat.conf | jq '.'\n{\n  \"logtemplate\": \"login by {{.UserName}} (UID: {{.UserID}}) on {{.TTYName}}\",\n  \"noticetemplate\": \"Welcome {{.UserName}}. This is a captive account.\"\n}\n```\n\n### Inspiration\n\nI need a user login that could remain logged in yet \"can't do jack squat\". The logging, use of Go templates in a configuration file, and testing are most certainly overkill.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcanericky%2Fjacksquat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcanericky%2Fjacksquat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcanericky%2Fjacksquat/lists"}