![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ban the users...
how can superuser stop all other users login on system without changing in /etc/passwd file and without using userdel command?
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Check if your OS supports:
Code:
echo "Sorry, no one allowed here but root!" > /etc/nologin |
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
but how does it work? how creation of /etc/nologin file restrict all the users except superuser.... |
|
#5
|
|||
|
|||
|
Because It Does. The login binary looks for this file. man login
|
|||
| Google The UNIX and Linux Forums |