--- Karia Amit amit_karia99@rediffmail.com wrote:
Hi all, I want to disallow both root and normal users to login to tty3 .Root login is disable but normal users are still able to login to terminal. What other modification i need to make to that file here is content my /etc/securetty file vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 tty1 tty2 ttyS3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11
/etc/securtty is concerned with root logins only. It does not authenticate non-root logins. For that purpose, you need to edit the /etc/security/access.conf file.
Add this to /etc/security/access.conf :
-:ALL:tty3
Make sure your /etc/pam.d/login has this line:
account required pam_access.so
If it doesn't, you not only need to add the line, but also add it at the correct _sequence_. Just put it below any existing "account" line and you should be fine.
HTH,
Nadiem.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com