The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 01:44 PM
Users In AIX Lost in AIX UNIX for Dummies Questions & Answers 1 05-24-2007 03:12 PM
Users on AIX 5.2 aldowsary AIX 4 11-06-2006 10:30 PM
Users catwomen HP-UX 1 10-12-2006 08:11 PM
users of a particular dir narsing UNIX for Dummies Questions & Answers 1 02-07-2006 08:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-07-2008
gajju gajju is offline
Registered User
  
 

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

how can superuser stop all other users login on system without changing in /etc/passwd file and without using userdel command?
  #2 (permalink)  
Old 09-08-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
Check if your OS supports:
Code:
echo "Sorry, no one allowed here but root!" > /etc/nologin
Will be deleted after a reboot automatically iirc.
  #3 (permalink)  
Old 09-08-2008
Lakris Lakris is offline
Registered User
  
 

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

See man nologin

/Lakris
  #4 (permalink)  
Old 09-09-2008
gajju gajju is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 7
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....
  #5 (permalink)  
Old 09-10-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Because It Does. The login binary looks for this file. man login
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0