---
title: "Discussion on \"/sbin/nologin vs /bin/false vs /bin/true\" | Hashnode"
description: "Discussion on \"/sbin/nologin vs /bin/false vs /bin/true\". Learn the differences between `/sbin/nologin`, `/bin/false`, and `/bin/true` for preventing user logins in Unix-like systems for enhanced security"
url: "https://hashnode.com/posts/linux-nologin-false-true-explained/68c023b56897d70e1815626c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [/sbin/nologin vs /bin/false vs /bin/true](https://hellounix.hashnode.dev/linux-nologin-false-true-explained?utm_source=hashnode&utm_medium=feed)

Learn the differences between \`/sbin/nologin\`, \`/bin/false\`, and \`/bin/true\` for preventing user logins in Unix-like systems for enhanced security

Sep 9, 2025 · 5 min read · hellounix.hashnode.dev  
Updated Sep 12, 2025  
Read the article

-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Muhammad Zohaib Khan](https://hashnode.com/@zohaibk)

@zohaibk

  
[View profile](https://hashnode.com/@zohaibk)

DevOps Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
