[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Fri, 30 Jan 2009, Sam Grabham wrote: > Hi > > Ref: CentOS 4 > > When you su - root via a terminal that is open on a VNC session on the > server you get the "RTNETLINK answers: Network is unreachable" message. > > Does this mean the problem must be in be in the /root folder? > > The logs haven't given me any info to investagate. > > does any know if scripts such as /etc/rc.local get called when a ssh user > logins in? > > Is there a way of debuging all activity that is currently happening on the > server? Yes, but you many need to enable all the accounting stuff in the kernel and userland - have you tried this yet: su - -- -x Copy and paste it exactly. It's one dash, a space, 2 dashes, space, -x This will put the login shell in verbose mode. Eg. on my box: gordon @ yakko: su - -- -x Password: ++ id -u + '[' 0 -eq 0 ']' + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 + '[' '\s-\v\$ ' ']' + '[' /bin/bash ']' + PS1='\u@\h:\w\$ ' + export PATH + umask 022 The above is from /etc/profile Below here is from /root/.profile + '[' -f /root/.bashrc ']' + . /root/.bashrc Below is from .bashrc ++ export 'PS1=\h:\w\$ ' ++ PS1='\h:\w\$ ' ++ umask 022 back to .profile + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 + export PATH + mesg n You should be able to use this to trace what's happening for you. Gordon > > Regards > > Sam > > > > ----- Original Message ----- > From: "Gordon Henderson" <gordon+dcglug@xxxxxxxxxx> > To: "Devon/Cornwall GNU LUG" <list@xxxxxxxxxxxxx> > Sent: Thursday, January 29, 2009 8:46 PM > Subject: Re: [LUG] Default gateway disappears when a root SSH putty > connection is used? > > >> On Thu, 29 Jan 2009, Sam Grabham wrote: >> >>> Hi >>> >>> Still haven't cracked the problem. >>> >>> if you ssh from another linux machine using root you get the following >>> "RTNETLINK answers: Network is unreachable " message. and at this point >>> the >>> default gateway disappears. >>> >>> The only change that i am aware of is we changed our network ip's, these >>> are >>> static. >>> >>> If you VNC to the machine and open a root terminal you don't get the >>> problem. >>> >>> The ssh scripts are as default and have compaired against another >>> machine. >> >> It still seems like there's a script doing something on login.. >> >> What happens if you login on the console? >> >> What happens when logging in via VNC, then typing: >> >> su - >> >> or ssh as a normal user, then >> >> su - >> >> and give the root password. >> >> Or try this: >> >> su - -- -x >> >> >> Gordon >> >> -- >> The Mailing List for the Devon & Cornwall LUG >> http://mailman.dclug.org.uk/listinfo/list >> FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html > > > -------------------------------------------------------------------------------- > > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.15/1924 - Release Date: 1/29/2009 > 5:57 PM > > > -- > The Mailing List for the Devon & Cornwall LUG > http://mailman.dclug.org.uk/listinfo/list > FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html > -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html