Removing Root Password/Auto login
I am running my Redhat 8 box as a NAT server and to make in automatically login without entering passwords are user name.
I also want these lines(commands) to be executed automatically. Yes, I am a newbie, but please help. ifconfig eth0:0 10.255.255.1 netmask 255.255.252.0 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1> /proc/sys/net/ipv4/ip_forward Thank you all in advance. |
enter any startup commands you wish to run on to the end of /etc/rc.local. Not sure what you mean by a NAT server, as that is what those commands you list will do.
as for automatically logging in... don't. |
Quote:
Hope to receive a solution. :) PS: Your sign was very helpfull. I really love the "Rute Users' Tutorial and Exposition, :). |
Well if you want a passwordless root account (which I don't suggest) you need to change /etc/shadow. As an example:
Quote:
Quote:
Well if you want to do it that way, all you need to enter at the login prompt is root (no password). |
Well so far I have found two ways to do automatic login on a Redhat box. One is editing inittab, found here http://www.cs.man.ac.uk/~jtl/RH/index.html#AutoLogin
And the other is a graphical utitlity in Redhat 8. Its in Redhat Menu > System Settings > Login Screen. This opens the GDM setup GUI, and under the General tab there is Automatic Login. I think I will follow the GUI method. But can I do auotmatic login for root? |
Quote:
2) acid_kewpie is right, just enter the commands to rc.local and then nobody will need the root login. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 01:05 AM. |