You are not logged in.
Pages: 1
Does anyone know how I go about denying root to login at the console?
I want to make sure a normal user logs in and then use SU to gain root privileges.
If I am not mistaken, this should be possible using the /etc/pam.d/login file. I just can't seem to find the information I need.
A search on the Internet and on the forums didn't give me a usable result. (I found some other useful information though )
Last edited by madeye (2008-10-28 16:37:43)
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
Adding this line to /etc/security/access.conf should do what you want:
- : root : ALL
Last edited by creslin (2008-10-26 13:50:56)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
I just wanted to let everyone know that I found a solution for this.
The only thing I needed to do, was comment out all the vc/? lines in /etc/securetty. And voila! No more root login at the console.
I can still use SU to switch to the root user. I just need to login as a normal user first.
Marking this topic as solved.
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
Pages: 1