There are 7 terminal through which user can login as a different or same user. It is sometimes required to restrict a user on a particular tty or terminal.
One can easily switch to various terminals using Ctrl + Alt + numeric key(1 to 6) and 7 is user to come back to GUI.
For this purpose a file "securetty" is used you just need to migrate to the file and and place # in front of a tty(1 to 6) on which you want to restrict the user to login as a root.
Various steps are:
1) open the terminal and open the file as
# vi /etc/securetty
2) Place # in front of the desired tty.
3) save and quit the file (press esc from insert mode and type :"wq!")
You are done.
Login to the terminal in front of which you placed #.
It will give you a error Login Failed!
Verified.....:)
Monday, May 17, 2010
Subscribe to:
Post Comments (Atom)
.jpg)
0 comments:
Post a Comment