OK... let's start all over again at the firewall level.
Can you flush all (I mean ALL) the rules from the firewall so we can set this thing up? |
how do i do that?
|
Sounds like you can. ;)
Flushing: Code:
iptables -F Code:
iptables -t nat -P PREROUTING ACCEPT Code:
iptables -t nat -A POSTROUTING -j MASQUERADE Code:
echo 1 > /proc/sys/net/ipv4/ip_forward Hope that works. |
I tried that, but i got an error on the last part
hitetsu@WhiteNinj4:~ $ sudo echo 1 > /proc/sys/net/ipv4/ip_forward bash: /proc/sys/net/ipv4/ip_forward: Permission denied |
??? try logging in as root. (I know sudo does that... but it seems to be failing).
login as root and send the command. |
i cant log in as root, it doesnt seem to let me
username: root password: [none] i tried, using my password aswell, but it still didnt work |
:O
Do you know how to recover from this situation? I know how, in case you don't... but it requires restarting with another linux (probably KNOPPIX or another live-cd). |
no idea =/
i got a SuSE 9.2 live cd...that good enough? |
post the O/P of
ifconfig regards |
I guess so. You have to start a session (not the installation, but a session.. a terminal) as root, mount the partition where you have the /etc of your working linux, edit the /etc/passwd file (of the working linux... not the CD) (with vi, probably) and remove the x after root:.
That way, when you start your working linux, and log in as root, it will have no password. |
how do i mount the drive and edit the file?
[edit] i couldnt run ifconfig with the live cd in[/edit] |
with mount.
For example: Code:
mkdir /mnt/tmp |
Cant he start up his Ubuntu in single user mode? And change the password in an easy way?
|
mmmmmmmmm........... well... now that you are saying that, I can remember that when I start my mandrake in single user mode, it doesn't even ask for my password... so I think that's a possibility.
|
Debian will ask root pw unless you pass 'init=/bin/bash' to kernel. Hmmm, not sure about exact syntax, my personal RAM may be errenous...
EDIT Just gave it a try. With GRUB: press e, select kernel command line with arrow down, press e again, add 'single init=/bin/bash', press Enter, press b to boot. And volila! - you are in as root. Changing password is a piece of cake! I love LQ, every time I learn something myself. |
All times are GMT -5. The time now is 07:58 PM. |