Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-08-2006, 02:08 AM   #1
LQ Newbie
Registered: Jun 2006
Location: India
Posts: 3

Rep: Reputation: 0
disable all users from logging in

How would I disable all users from logging in ? and How to put a message to users explaining why they have been denied access...
Old 06-08-2006, 02:16 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
The common way to display a logon message is to edit /etc/motd.

In your case, you probably want to modify /etc/issue:

man 5 issue

Of course, you could always scotch-tape a note over the terminal ;-)
Old 06-08-2006, 02:50 AM   #3
LQ Newbie
Registered: Jun 2006
Location: India
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for ur replay.
will it dispaly the message in /etc/issue for root also?
i think to disable user logging in, the correct way is touch /etc/nologin.
pls correct if i am wrong..
Old 06-08-2006, 02:56 AM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
That's almost correct, but it WON'T stop root.

And you don't just touch it, but you put the REASON in it.


Last edited by Tinkster; 06-08-2006 at 02:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix disable logging? lennard Linux - Software 3 12-08-2010 11:00 AM
disable logging for ntpdate rubella Linux - Newbie 1 12-15-2005 04:37 PM
Disable logging RH 7.3 qmail-apache etc DropHit Red Hat 3 04-13-2005 05:44 AM
Disable all Apache 2.x logging hakcenter Linux - Networking 2 12-05-2003 01:34 AM
disable logging rsbecker007 Linux From Scratch 2 04-09-2002 10:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration