[Linux-disciples] can't root
Karl Sokol
linux-disciples@bostoncoop.net
Sat, 22 Nov 2003 12:39:22 -0600
Adam wrote:
>>There are many security concerns unrelated to the Internet...
Points well taken.
>You need to add init=/bin/sh to your boot line. This is done slightly
>differently in lilo or grub; I think it's easier in grub. You hit 'e' to
>edit the boot line, then add init=/bin/sh to the end of the line, then
>hit 'b' to boot.
My grub looks like this,
root (hd0,0)
kernel /boot/vmlinuz-2.4.22-1-k7 root=dev/hda1 ro
initrd /boot/initrd.img-2.4.22-1-k7
save default
boot init=/bin/sh
However, the last line didn't seem to do much. I.e the same warning comes up. Any further ideas? Thanks.
>> My desktop is not attatched to the net and is in my
>> bedroom, so security isn't a big concern to me on this
>> machine. So, I did chmod 777 *. Now at startup, I
>> get "Starting Open BSD Secure Shell server:sshd @@@@@@
>> Warning: UNPROTECTED PRIVATE KEY FILE! @@@@
>> Permissions 0777 for /etc/ssh/ssh_host_rsa_key are too
>> open." The same for dsa_key.
>>
>> So, now I can't do any root stuff to harden the
>> permissions (like logging in on root, su, sudo, chmod
>> etc.). A bit of an ironic catch-22.
>>
>> Any suggestions?
>