[LUG.ro] usuario root
Walter Castro
lugro@lugro.org.ar
Mon, 29 Sep 2003 17:26:10 -0300
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C386C7.EBAFD990
Content-Type: text/plain;
charset="iso-8859-1"
nunca lo hice, pero supongo que con un knoppix y desde una consola root,
montas la particion ......
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2088 - September 19, 2003
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
NULL ROOT PASSWD WITHOUT VI
As admins We never forget the root password,
RIGHT?
Although sometimes we do inherit machines in
which we don't know the root password.
Here is a way to null the root password from
the password file.
It comes a time in every admins life that we
will have to go into mini-root and change the
password file without the use of vi.
The following example shows how to achieve this
on the /etc/shadow file, but the same basic
commands can be achieved on the /etc/passwd file
for those platforms that don't support shadow
passwords.
Use "ed" - and the 13 dots method
---------------------------------
# cp /etc/shadow /etc/shadow.bak
# ed /etc/shadow
1p
s/:.............:/::/
1p
w
q
-----Original Message-----
From: Obi Wan Kenobi [mailto:colono2002@hotmail.com]
Sent: Monday, September 29, 2003 4:49 PM
To: lugro@lugro.org.ar
Subject: [LUG.ro] usuario root
hola, tengo un problema con el server de la empresa donde trabajo, que esta
montado sobre un Linux Red Hat, el buen hombre que lo hizo se fue a EEUU
llevandose consigo el usuario Root, hay alguna manera de poder saber cual es
el usuario o de tumbarlo y crear uno nuevo sin estropear el server? gracias
------_=_NextPart_001_01C386C7.EBAFD990
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [LUG.ro] usuario root</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>nunca lo hice, pero supongo que con un knoppix y =
desde una consola root, montas la particion ......</FONT>
</P>
<P><FONT =
SIZE=3D2>=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D</FONT>
</P>
<P> =
=
<FONT =
SIZE=3D2> UNIX GURU UNIVERSE </FONT>
<BR> =
=
<FONT =
SIZE=3D2> UNIX HOT =
TIP</FONT>
</P>
<P> =
=
<FONT SIZE=3D2>Unix Tip 2088 =
- September 19, 2003</FONT>
</P>
<P> =
<FONT =
SIZE=3D2> <A =
HREF=3D"http://www.ugu.com/sui/ugu/show?tip.today" =
TARGET=3D"_blank">http://www.ugu.com/sui/ugu/show?tip.today</A></FONT>
</P>
<P><FONT =
SIZE=3D2>=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>NULL ROOT PASSWD WITHOUT VI</FONT>
</P>
<P><FONT SIZE=3D2>As admins We never forget the root password,</FONT>
<BR><FONT SIZE=3D2>RIGHT? </FONT>
</P>
<P><FONT SIZE=3D2>Although sometimes we do inherit machines in </FONT>
<BR><FONT SIZE=3D2>which we don't know the root password. </FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2>Here is a way to null the root password from </FONT>
<BR><FONT SIZE=3D2>the password file.</FONT>
</P>
<P><FONT SIZE=3D2>It comes a time in every admins life that we</FONT>
<BR><FONT SIZE=3D2>will have to go into mini-root and change the</FONT>
<BR><FONT SIZE=3D2>password file without the use of vi. </FONT>
</P>
<P><FONT SIZE=3D2>The following example shows how to achieve =
this</FONT>
<BR><FONT SIZE=3D2>on the /etc/shadow file, but the same basic </FONT>
<BR><FONT SIZE=3D2>commands can be achieved on the /etc/passwd =
file</FONT>
<BR><FONT SIZE=3D2>for those platforms that don't support shadow =
</FONT>
<BR><FONT SIZE=3D2>passwords.</FONT>
</P>
<P><FONT SIZE=3D2>Use "ed" - and the 13 dots method</FONT>
<BR><FONT SIZE=3D2>---------------------------------</FONT>
<BR><FONT SIZE=3D2># cp /etc/shadow /etc/shadow.bak</FONT>
<BR><FONT SIZE=3D2># ed /etc/shadow</FONT>
<BR><FONT SIZE=3D2>1p</FONT>
<BR><FONT SIZE=3D2>s/:.............:/::/ </FONT>
<BR><FONT SIZE=3D2>1p</FONT>
<BR><FONT SIZE=3D2>w</FONT>
<BR><FONT SIZE=3D2>q </FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Obi Wan Kenobi [<A =
HREF=3D"mailto:colono2002@hotmail.com">mailto:colono2002@hotmail.com</A>=
]</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, September 29, 2003 4:49 PM</FONT>
<BR><FONT SIZE=3D2>To: lugro@lugro.org.ar</FONT>
<BR><FONT SIZE=3D2>Subject: [LUG.ro] usuario root</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>hola, tengo un problema con el server de la empresa =
donde trabajo, que esta montado sobre un Linux Red Hat, el buen hombre =
que lo hizo se fue a EEUU llevandose consigo el usuario Root, hay =
alguna manera de poder saber cual es el usuario o de tumbarlo y crear =
uno nuevo sin estropear el server? gracias</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01C386C7.EBAFD990--