LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-01-2004, 03:28 PM   #1
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Rep: Reputation: 15
Tricky Root Security Question - Adding robust options?


Ok guys.....this should be an interesting one....not sure if it is even possible, but here's the deal:

We have about 30 redhat 9 users networked using NIS......all 30 users have the root password to their linux boxes, which of course is the same password for each box.....is there a way to prevent root from becoming another user, (su username), or at least prompt for a DIFFERENT password once you get to that point......as in almost adding an additional layer of security onto it? Please give me any advice you have on this.....if it's not possible, then I am ok with that, or even if there are other ways of going about it.....it would be much appreciated! Thanks!
 
Old 09-01-2004, 08:18 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
I...find...it....extremely...difficult....to....read....your....text...so...I...won't....even....bot her....trying....
 
Old 09-02-2004, 09:09 AM   #3
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
.....thanks for your help......iceman......
I'll clean it up for your, so that maybe you could offer me a real suggestion to my issue.

We have about 30 redhat 9 users networked using NIS and all 30 users have the root password to their linux boxes, which of course is the same password for each box.
Is there a way to prevent root from becoming another user, (su username), or at least prompt for a DIFFERENT password once you get to that point; as in adding an additional layer of security onto it?

Please give me any advice you have on this if it's possible. If it is not possible, I would be ok with that, so either way I would appreciate any information one had to offer.

Thank you very much,


Sincerely :-)
 
Old 09-02-2004, 11:19 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. Why would they need the root passwd to their box?!!!
2. Why are they all the same?!!!

Once someone becomes root, it's pretty much game over as far as security goes.
 
Old 09-02-2004, 01:42 PM   #5
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Giving the ClearCaseUsers was just something that was pre-existing when I came into the situation. I had a feeling I was just going to have to change the root password, but I just wanted to confirm there was nothing else I could do, or that there were no more suggestions. Thanks
 
Old 09-02-2004, 01:48 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
What exactly are you trying to prevent them from doing? If you're giving them root (and physical) access what's left to secure? Your network maybe?
 
Old 09-02-2004, 01:53 PM   #7
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Hmm, in our uni they have nis and root on individual machines without every machine having the same root password


so my normal username is the same on all machines
yet root is different.

Don't ask me how though not my setup, (*probably a wise decision*)
 
Old 09-03-2004, 07:32 AM   #8
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Actually Proud, thanks for asking that. The real problem is not really the users having root access, but the ability to ssh into a box(which we do allow and that' s ok) and change over to a different user on that box and open a ClearCase View as someone else. It is difficult to track things when you don't know if the user is the one that acutually opened the view! thanks
 
Old 09-05-2004, 06:41 AM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
So you're saying you need to disable remote root login and maybe sudo su to definately stop your problem?
 
Old 09-05-2004, 08:32 AM   #10
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Why have the same root on all machines ?
 
Old 09-05-2004, 08:35 AM   #11
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Quote:
Originally posted by Proud
So you're saying you need to disable remote root login and maybe sudo su to definately stop your problem?
No as far as I have understood this:

He has NIS or so and all machines have the same root password

su user X logs in as jon doe then does su - and then can do janedoe and read all her dirty knickers stories.

My suggestion is to seperate root on different machines. Its a security risk anyway, imo, if I understood that correctly.
 
Old 09-07-2004, 07:45 AM   #12
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
that's almost the situation that happens. It is more like user X ssh's into a box as root, then su - another user and checks out clearcase views as that user...I understand giving users root access is a security risk, and if that is the only suggestion, then we will change the root on every box. I was just curious if there was another way. Thanks!
 
Old 09-07-2004, 03:52 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You can (and should!) disable root login via ssh. Edit /etc/ssh/sshd_config and set :
PermitRootLogin no

This is true regardless of your problems. See sticky thread at top of this forum.
Also, change the root passwds anyway, thus preventing user's from pretending to be someone else. (via su - )
 
  


Reply



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
security> adding user or root to a group eeried Linux - Newbie 6 08-08-2008 05:10 AM
tricky root password reset, selinux fluppel Linux - Security 6 09-07-2005 06:11 PM
root and apt-get: security question eeried Linux - Newbie 13 05-24-2004 02:42 PM
Tricky installation question or1onas Linux - Newbie 3 04-28-2004 04:16 PM
a tricky question archlyric Linux - Newbie 3 02-27-2004 01:06 AM

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

All times are GMT -5. The time now is 05:06 PM.

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