Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Install CD wish: sshd started, no root password scrambling

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
38 posts
  • Previous
  • 1
  • 2

Good idea? (please tell us why you voted as you did)

Yes
38
54%
No
33
46%
 
Total votes: 71
Your vote has been cast.

Author
Message
madchaz
l33t
l33t
User avatar
Posts: 995
Joined: Tue Jul 01, 2003 7:45 am
Location: Quebec, Canada
Contact:
Contact madchaz
Website

  • Quote

Post by madchaz » Mon Jul 28, 2003 6:28 pm

Personaly, I'm agains the idea.

It's not exactly a lot of work to plug a monitor and keyboard (who needs a mouse for console??) on the machine then just change the password and start ssh

If it wasn't the way it is, you'd then have to do it anyway to change the password. Who wants to leave a root account open with no password for even 2 minutes?

think of how easy one could logon to it then install some nice backdoors while you're bootstraping. Or just sit there and wait for your install to be almost complete before they do it.

would turn gentoo into another Windows security nightmare
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Top
MrWorf
n00b
n00b
User avatar
Posts: 57
Joined: Sat Jan 18, 2003 10:56 pm

  • Quote

Post by MrWorf » Mon Jul 28, 2003 7:08 pm

Personally, I don't see why we can't have both (as discussed on the previous page).

It's not that I'm against security, but it would seem that some users are more paranoid than others :wink: (and I probably belong to the first bunch, seeing as I run a personal firewall on my windows machine besides my linux firewall rules :roll: )

Anyway, Linux in general is all about choice, and this would be a great thing to have. There are always tradeoffs, no matter what you choose.
Top
Ben2040
Guru
Guru
User avatar
Posts: 445
Joined: Wed May 07, 2003 2:21 pm
Location: UK
Contact:
Contact Ben2040
Website

  • Quote

Post by Ben2040 » Mon Jul 28, 2003 7:28 pm

Personally, I think the root password should not be scrambled as it is an obvious security risk, although any "hackers" would have to know the default password and know that you would be using the CD on the net at the time were doing it. A much better solution would be to not scramble the password, but randomise it and show the user on the screen. This would prevent unauthorised internet accessbut still allow the password to be known with out change.

I also don't think that an ssh server should be started, as the majority would want to save resources eg.shut it down, and this would waste time.

Ben
Top
MrWorf
n00b
n00b
User avatar
Posts: 57
Joined: Sat Jan 18, 2003 10:56 pm

  • Quote

Post by MrWorf » Mon Jul 28, 2003 9:22 pm

We are talking about two different things here. I don't want to remove the current way it works (it perfect when sitting AT the machine locally).

I just agreed that it might be a good idea to have the second option of booting to do a remote install (hackers be damned :wink: ).

Ohwell, I'm probably not going to help by just talking on the forum and I don't have the time/knowledge to do anything about it (and I'm also kinda lazy since I don't need it right now :P ) so I guess I'll leave this thread alone (for)now :D
Top
scap1784
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Wed Dec 25, 2002 8:58 pm

  • Quote

Post by scap1784 » Tue Jul 29, 2003 6:32 am

I decided to solve the problem with a kvm switch to hook up my existing monitor and key board and mouse to my computers
Top
geekX
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Wed Apr 02, 2003 11:15 am
Location: Cape Town, South Africa
Contact:
Contact geekX
Website

  • Quote

Post by geekX » Tue Jul 29, 2003 12:42 pm

I don't think it would be such a big added security-risk. You need physical access to a box to boot from a cd, so this will be a consious thing for the administrator.

For a keyboard and monitorless install to work, the network configuration should happen automatically and I'm sure that it should be possible that while installing, the server gets some 'guest'-level access on the network so that it is only accessible from the internal lan and not the internet. You can then change the password, do the install and connect it to the net.

This should save some administrators lots of time/money.

I think a better approach to the livecd solution would be to create more different livecds or even a livecd 'kit'. You can then customise your own livecd, put on it any pre-compiled packages or 'stage' tarballs, select what services to start, what kernel to boot, whether it should have the bootsplash or framebuffer terminal, etc. Create your own iso, burn onto cd and boot.

hmmm maybe I should look into the idea. Can even combine this with the install programs and scripts that are currently under developement. Might add modem-install support, even. But a no-keyboard, no-monitor install would be cool.

All in the spirit of a 'meta-distribution' :)
Sometimes I feel like Superman.
Sometimes I'm just recuperating.
Top
lithiumcloud
n00b
n00b
Posts: 1
Joined: Wed Apr 16, 2003 4:48 am

  • Quote

Post by lithiumcloud » Thu Jul 31, 2003 4:39 am

You need a keyboard to get past the bootprompt and select keymap anyway.
Besides, most people install gentoo over the net and thus are concerned about security. Hey, most people use a screen and keyboard to install becuase they will be using them with the machine. They'd have to stop ssh and put up with an insecure default password, far more serious than needing to plug in a keyboard (you don't need a screen). This would hurt people a lot more than the few it would help.
Top
Cossins
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Mar 21, 2003 4:03 pm
Location: Copenhagen, Denmark
Contact:
Contact Cossins
Website

  • Quote

Post by Cossins » Thu Jul 31, 2003 10:21 am

lithiumcloud wrote:You need a keyboard to get past the bootprompt and select keymap anyway.
Besides, most people install gentoo over the net and thus are concerned about security. Hey, most people use a screen and keyboard to install becuase they will be using them with the machine. They'd have to stop ssh and put up with an insecure default password, far more serious than needing to plug in a keyboard (you don't need a screen). This would hurt people a lot more than the few it would help.
You don't need to select keymap on the rc4 LiveCD... The bootprompt boots an image after some time.
So most people install over the net and most people install with a screen and a keyboard? Sorry, I don't understand the logic behind this... ;-)
As has been proposed before, a special LiveCD for input/outputless computers could be made...

- Simon
Top
erik_swanson
Retired Dev
Retired Dev
User avatar
Posts: 123
Joined: Sun Feb 02, 2003 7:11 pm
Location: Corvallis, OR USA

  • Quote

Post by erik_swanson » Thu Jul 31, 2003 12:01 pm

I voted no.

Root scrambling is a good thing. However, it would be useful if (without console interaction) the livecd could read an authorized_keys file for root off a floppy or some other conveniently-writable media. (Perhaps a second data session on the livecd?)
Top
mpsii
l33t
l33t
User avatar
Posts: 653
Joined: Tue Mar 11, 2003 8:44 pm
Location: Jackson, TN

  • Quote

Post by mpsii » Fri Oct 10, 2003 4:53 pm

Personally, I am looking for this right now. I have two workstations on my 2port KVM and 2 servers running headless. Due to my comfortable arrangement with my two workstations, it is indeed going to be a pain to hook up my KVM to new box, a 3rd server that will run headless.

I definitely want this, but haven't had time to mess with the livecd-ng package. PLEASE... someone do this for me!
-----------------------------------------
Michael
Top
carambola5
Apprentice
Apprentice
User avatar
Posts: 214
Joined: Wed Jul 10, 2002 8:53 pm

  • Quote

Post by carambola5 » Fri Oct 10, 2003 7:19 pm

As a shameless plug to my practical novel I wrote for the Portage website, I suggest you look at my post. Scroll down to the Remote Gentoo Installation section and read the paragraph that starts with "Regarding the modified LiveCD."

What do you think?
Top
haceaton
n00b
n00b
Posts: 7
Joined: Sun Oct 12, 2003 5:11 am

I don't see the big security problem

  • Quote

Post by haceaton » Sun Oct 12, 2003 5:33 am

In my case, I'm trying to install gentoo on a new headless box and I don't even own a PC keyboard (except the one built-in to my laptop). I do have
a monitor so I can see that my network connection started up nicely, and I can ping the box fine, but of course there is no service to log on to.

So a liveCD that would launch sshd would be very handy for me right now...

In my case, the box is behind a firewall so there is no real security issue, but I must say that the probability of a breach is very small even without the firewall: the default root password would only be acitve DURING the time that the machine is booted from the liveCD, (presumably only long enough for you to do the install). You could have a default password and then only allow a single log-on until the root password is changed. The first person to log on wins control of the box! Now who do you think will get there first? The person that knows a brand-new never-existed-before machine was just booted and is itching to get started, or mister anonymous hacker searching for free machines? The window of vulnerability would last mere seconds.

This would require that console users also login, but you can display the default password for them so its no trouble. The install procedure SHOULD require a new (non-default) root password for the installed system, I don't know what it actually does because I can't do anything without a keyboard.

The potential danger is someone boots the liveCD and walks away without ever logging in, but how often is that going to happen? Heck you could even make the script kill the sshd after 5 minutes if there was no log in, so then only the physical keyboard would be vulnerable, but then it already is now isn't it?

Where are the security paranoids screaming about the root exploit for those poor idiots who parked there computer in a public place and walked away after booting from the live CD? It's a huge gaping security hole!!!! Not.
Top
gsfgf
Veteran
Veteran
User avatar
Posts: 1266
Joined: Wed May 08, 2002 3:24 pm

  • Quote

Post by gsfgf » Sun Oct 12, 2003 3:29 pm

puggy wrote: If the password is preset there might as well be no password as it'll make no difference to the hacker. Hence there is no point in only using a static login for the remote install as long as the local interface is logged out on boot.
except the hacker would have to run a special script to compromise gentoo boxes.

I'm all in favor of this. Just make the password immdiatly expire after the first login. Shouldn't be too hard.
Aim:gsfgf0
Top
Post Reply
  • Print view

38 posts
  • Previous
  • 1
  • 2

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic