The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Users in AIX Lost in AIX AIX 3 06-04-2007 10:44 AM
Users In AIX Lost in AIX UNIX for Dummies Questions & Answers 1 05-24-2007 12:12 PM
Users on AIX 5.2 aldowsary AIX 4 11-06-2006 07:30 PM
Users catwomen HP-UX 1 10-12-2006 05:11 PM
users of a particular dir narsing UNIX for Dummies Questions & Answers 1 02-07-2006 05:34 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2008
Registered User
 

Join Date: Sep 2008
Posts: 6
ban the users...

how can superuser stop all other users login on system without changing in /etc/passwd file and without using userdel command?
Reply With Quote
Forum Sponsor
  #2  
Old 09-07-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,031
Check if your OS supports:
Code:
echo "Sorry, no one allowed here but root!" > /etc/nologin
Will be deleted after a reboot automatically iirc.
Reply With Quote
  #3  
Old 09-07-2008
Registered User
 

Join Date: Oct 2007
Posts: 171
Hi,
Type a message into the file /etc/nologin, then this will be shown and the login will be refused.

See man nologin

/Lakris
Reply With Quote
  #4  
Old 09-09-2008
Registered User
 

Join Date: Sep 2008
Posts: 6
Quote:
Originally Posted by Lakris View Post
Hi,
Type a message into the file /etc/nologin, then this will be shown and the login will be refused.

See man nologin

/Lakris
it's coooool.
but how does it work?
how creation of /etc/nologin file restrict all the users except superuser....
Reply With Quote
  #5  
Old 09-10-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Because It Does. The login binary looks for this file. man login
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0