LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-08-2006, 01:08 AM   #1
acaj5
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...
regards,
Bijeesh
 
Old 06-08-2006, 01:16 AM   #2
paulsm4
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, 01:50 AM   #3
acaj5
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, 01:56 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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

Cheers,
Tink

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


Reply


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 10:00 AM
disable logging for ntpdate rubella Linux - Newbie 1 12-15-2005 03:37 PM
Disable logging RH 7.3 qmail-apache etc DropHit Red Hat 3 04-13-2005 04:44 AM
Disable all Apache 2.x logging hakcenter Linux - Networking 2 12-05-2003 12:34 AM
disable logging rsbecker007 Linux From Scratch 2 04-09-2002 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 AM.

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