ban the users...


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ban the users...
# 1  
Old 09-07-2008
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  
Old 09-08-2008
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  
Old 09-08-2008
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  
Old 09-09-2008
Quote:
Originally Posted by Lakris
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....Smilie
# 5  
Old 09-10-2008
Because It Does. The login binary looks for this file. man login
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Solaris

Dynamically ban ip after failed login

Hello, I need some help with network/firewall settings in Solaris 11.3. What I want to achieve is that if someone tries to log in to my server and fails I want that IP to be banned for some time. So if a computer/user tries to login to my ssh-server on a specified port (normally 22) and... (2 Replies)
Discussion started by: Zorken
2 Replies

2. Cybersecurity

Placing a IP ban

Hello, i have some troubles with someone who keeps posting porno links on my website ;) I warned him because of it but since he only seems to like the attention i wanted to give him an IP ban. Anyone knows how i can place an IP ban with telnet on my unix server? (3 Replies)
Discussion started by: Martijn v/d Meu
3 Replies
Login or Register to Ask a Question