Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-08-2007, 02:11 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Posts: 3
Rep:
|
Emptying securetty does not prevent root login
I am trying to prevent root from logging in in any way other than by using su. I currently prevent this through ssh, ftp, etc. The only exceptions is at the actual console. From everything I know and have found, I should just be able to empty my /etc/securetty file and stop this from happening. I have done this on another computer running the exact same operating system as me, CentOS 4.5, and it works there. PAM is configured exactly the same on both systems as well. Any thoughts?
|
|
|
11-09-2007, 11:28 PM
|
#2
|
Member
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208
Rep:
|
usermod -L works for normal users i've used it but never tryed with root
|
|
|
11-18-2007, 10:58 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291
Rep:
|
you could also try modifying the /etc/passwd file, and changing the login for root from /bin/bash to /bin/false. So if root tries to login from it wont get a console.
|
|
|
11-18-2007, 11:05 PM
|
#4
|
Member
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208
Rep:
|
or make roots password empty
|
|
|
11-20-2007, 07:25 AM
|
#5
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
Quote:
Originally Posted by DropSig
or make roots password empty
|
Umm... no.
|
|
|
11-20-2007, 07:35 AM
|
#6
|
Member
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208
Rep:
|
why not? few distro do that by default.
|
|
|
11-20-2007, 07:49 AM
|
#7
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
Quote:
Originally Posted by DropSig
why not? few distro do that by default.
|
They _lock_ it... They don't make it empty. There's a big difference between a disabled/locked password and an empty string. (whew)
|
|
|
All times are GMT -5. The time now is 07:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|