lock out of machine
Martin Pool
mbp at samba.org
Wed Oct 1 12:09:04 EST 2003
[rsync at lists.samba.org is a better forum]
On 30 Sep 2003, jennifer.a.rawls at ccaix.jsums.edu wrote:
> > On 29 Sep 2003, jennifer.a.rawls at ccaix.jsums.edu wrote:
> > > Please help...
> > >
> > > I lock myself out of one of my server... I was testing
> > > the rsync -p -e /etc/passwd from my server to another
> > > server...
> > > and forget to login into this other server before
> > > executing the above command...
> > >
> > > the other is a linux server can i reverse the command on
> > > the rsync server to get to /etc/passwd.org to the
> > > /etc/passwd file
> >
> > I assume from your message that you're not able to log in
> > using either the new or the old message on the other
> > server. You should try that first.
> >
> > If your password file is broken so that you cannot
> > remotely log in, then you will need to break in to the
> > machine.
> >
> > The easiest way is to go to the console and reboot from a
> > recovery disk. If you don't already have one, you can get
> > one from lnx-bbc.org. Once you have control of the
> > machine as root, you can restore or recreate the password
> > file.
> >
> > Good luck! Let me know if you're still stuck.
>
>
> Thanks!!!!
>
> Question-----
> I have a solaris 9 sunray server... I install rsync-2.5.6 on
> the solaris an older version is on the linux (crossover
> server) box I want to upload my solaris /etc/passwd,
> /etc/shadow, and /etc/group file s to teh linux box.. when i
> rsync -p -e ssh /etc/shadow client:/etc/shadow it works..and
> whent i rsync -p -e ssh /etc/passwd client:/et/passwd it
> works but when i rsync -p -e ssh /etc/group
> client:/etc/group it does not work--i get Connect closed by
> 0.0.0.0
> rsync: connection unexpectedly closed (0 bytes read so fat)
> rsynce error: error in rsync protocol data stream (code 12)
> at io.c(165)
Are those files compatible between Linux and Solaris? I suppose they
are if it's working so far.
Perhaps try repeating the command with the -vv option to get some
debugging output.
> can you help...???
>
> I want to put this in my crontabe file to update every 5
> minute..Do i make a /etc/rsyncd.conf file and if so what
> should be the informat. in it...???
Working over SSH should be fine. In this case you don't need a
rsyncd.conf file.
--
Martin
More information about the rsync
mailing list