You are not logged in.

#1 2008-10-26 12:21:38

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

[SOLVED]deny root login on console

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 smile  )

Last edited by madeye (2008-10-28 16:37:43)


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#2 2008-10-26 12:29:49

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: [SOLVED]deny root login on console

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

#3 2008-10-27 19:10:47

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: [SOLVED]deny root login on console

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

Board footer

Powered by FluxBB