LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-06-2003, 09:03 PM   #1
muhazam
LQ Newbie
 
Registered: Oct 2003
Location: Malaysia, KL.
Posts: 6

Rep: Reputation: 0

Hi,

We have an amature group of Linux admin, and we recently had a break into our Linux system - and we have just re-install everything. We have a reverse problem however (unlike Goma_2's). We are currently able to login as root via telnet or ssh. How do we disable it ?

And how do we disable root login directly at the terminal ? We remember that we managed to have a configuration where root cannot login directly at the ternimal or remote. But we also set a 'special' user that can su root and grab 100% of root privilages, while all other user aren't given 100%. We just forget how to redo this.

Can anyone help ?
 
Old 10-07-2003, 07:57 AM   #2
Goma_2
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
muhazam, to configure from where root can log in, use the file /etc/securetty
here is an extract of mine:
#
# This file contains the device names of tty lines (one per line,
# without leading /dev/) on which root is allowed to login.
#
tty1
tty2
tty3
tty4
tty5
tty6
# for devfs:
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
#----------------------------------------------------------------

if u want to configure who can use "su", do it in /etc/sudoers. do man sudoers for more info.
 
Old 10-07-2003, 08:06 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
Hi muhazam, welcome to LQ, hope you enjoy it.
One note: next time please make your own new thread, that way you can ensure your question gets the attention it needs.


We are currently able to login as root via telnet or ssh. How do we disable it ?
SSH: sshd_config: the "PermitRootLogin" directive (amateur or not, if you don't stick with SSH defaults and also don't read the manuals, then there's little hope...)
Telnet: ditch it. Period.
If "root" needs physical access to the box, then allow one console: echo tty1 > /etc/securetty, else $>/etc/securetty to clean the file.
 
Old 10-09-2003, 12:28 AM   #4
muhazam
LQ Newbie
 
Registered: Oct 2003
Location: Malaysia, KL.
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, thanks for the responce from Mr....... unspawn ?

Editing the securetty file does not helps. Haven't tried the sshd_config yet either, coz..... yeah need to read manual first.

I think I can start making my own threads and there will be a lot of it later. For now (urgent) can anyone direct me to any page or website that list out each and everything that we must do to patch up all known possible security leak in a newly installed Linux ? Thanks.
 
Old 10-09-2003, 01:35 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Start out with bookmarking your distribution's security and errata pages and sign up to your distribution's security mailing list. And read those emails!

On the security/errata pages you will find info on all vulnerabilities that need patching.

hw
 
Old 08-17-2004, 05:02 AM   #6
w_ashley
LQ Newbie
 
Registered: Jan 2004
Posts: 10

Rep: Reputation: 0
Hi,

NESSUS security scanner is said to be one of the TOP rated known security scanners available. The definitive security is prolly in many ways based upon what you have running on your system. However generally the streams would be

system used for connectiviity for larger net
points of interface with larger net
conditions for exchange for larger net
methods of exchange for larger net
data handling of conditions

next would be collatoral by mishap meaning closing off ability to perform functions beyond compromise or conditions of use.

If you examine each application from the kernel up you should be able to see the local usages and the larger net usages, at that point it is understanding what services are required or can be modified and what services perform to the function you required.

However there are allot of point of information on the net and new was of implementing things. However THE STANDARDS are all pretty basic by the time you understand the issues you should be able to modify the code to remove or neuter usages that are not optimal.

as for a full listing I havnt seen a central database yet however there are a large number of sites that address many .
 
Old 08-17-2004, 01:49 PM   #7
makubex
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
hi....if u have ssh server running...
look into rc.sshd.....maybe in the /etc/rc.d/rc.sshd directory depends on your distro...
edit the file and uncomment the syntax
#PermitRootLoggin No
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Root login via ssh UltraSoul Solaris / OpenSolaris 3 02-09-2007 03:18 AM
disable root login via ssh with one exeption inoxtech Linux - Security 3 06-30-2005 12:28 PM
disable root login with ssh linuxtesting2 Slackware 3 02-16-2005 01:33 PM
How can I disable root to ssh Soulstealer Linux - Security 2 12-12-2004 12:36 PM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration