Home > docs, freebsd, shell, tiny post, tips, Unix Variant > Disable user Login on FreeBSD

Disable user Login on FreeBSD

How to disable user login on FreeBSD ???

You need port collection, or you can download single file tarball no-login, put on /usr/ports/distfiles/ and install via ports 🙂 .

 # cd /usr/ports/sysutils/no-login
 # make install clean


type like below

 # vipw

Welcome on vi editor…
next, change shell login to /usr/sbin/nologin

in ex:


to be


now, try login. And check on syslog

tail /var/log/messages

and .. vioolaa… 😛


1. http://www.freebsddiary.org/nologin.php

  1. nobody
    August 23, 2010 at 2:59 am
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s