Re: how to change root passwd (if forgotten)

2011-08-11 Thread Ivan Shmakov
> Robert Blair Mason writes: > On Thu, 11 Aug 2011 15:48:02 -0600 >> sulogin is easy enough to bypass. >> * Boot Live CD >> * Mount / >> * Edit /etc/inittab >> * Comment out si::sysinit:/etc/init.d/rcS >> * Reboot into single user mode >> Much easer than chroots, or any of the ot

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Robert Blair Mason Jr.
On Thu, 11 Aug 2011 15:48:02 -0600 Aaron Toponce wrote: > > sulogin is easy enough to bypass. > > * Boot Live CD > * Mount / > * Edit /etc/inittab > * Comment out si::sysinit:/etc/init.d/rcS > * Reboot into single user mode > > Much easer than chroots, or any of the other pr

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Walter Hurry
On Thu, 11 Aug 2011 20:28:33 +0100, Dom wrote: > On 11/08/11 19:46, Walter Hurry wrote: >> On Thu, 11 Aug 2011 10:23:17 -0400, Nico Kadel-Garcia wrote: >> >>> On Wed, Aug 10, 2011 at 11:25 AM, abdelkader belahcene >>> wrote: Hi, I ve forgotten my root passwd on centos 6 (red hat based)

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Dom
On 11/08/11 19:46, Walter Hurry wrote: On Thu, 11 Aug 2011 10:23:17 -0400, Nico Kadel-Garcia wrote: On Wed, Aug 10, 2011 at 11:25 AM, abdelkader belahcene wrote: Hi, I ve forgotten my root passwd on centos 6 (red hat based), I tried to change it as I used in debian (in debian it works perfe

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Walter Hurry
On Thu, 11 Aug 2011 10:23:17 -0400, Nico Kadel-Garcia wrote: > On Wed, Aug 10, 2011 at 11:25 AM, abdelkader belahcene > wrote: >> Hi, >> I ve forgotten my root passwd on centos 6 (red hat based), >> >> I tried to change it as I used in debian (in debian it works perfectly) >> , that is: >> >> use

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Robert Blair Mason Jr.
On Thu, 11 Aug 2011 07:14:23 + (GMT) Francois Cerbelle wrote: > Le Wed, 10 Aug 2011 18:10:02 +0200, Thierry Chatelet a écrit : > > On Wednesday 10 August 2011 17:53:26 Umarzuki Mochlis wrote: > >> if i'm not mistaken you can just go to single user mode on centos > >> by appending "1" or "sing

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Nico Kadel-Garcia
On Wed, Aug 10, 2011 at 11:25 AM, abdelkader belahcene wrote: > Hi, > I ve forgotten my root passwd on centos 6 (red hat based), > > I tried to change it as I used in debian (in debian it works perfectly) , > that is: > > use a cd live (or installation cd1), to access the hd, > I mount  my root pa

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Wawrzek Niewodniczanski
On 08/11/11 00:35, abdelkader belahcene wrote: On 8/10/11, Lucas Lima wrote: the passwords are stored in /etc/shadow and you deleted the file, you should restore it. I just removed the second field , the password for th root. no more things You can copy a password from other user or even fro

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Ivan Shmakov
> Francois Cerbelle writes: > Le Wed, 10 Aug 2011 18:10:02 +0200, Thierry Chatelet a écrit: > On Wednesday 10 August 2011 17:53:26 Umarzuki Mochlis wrote: >>> if i'm not mistaken you can just go to single user mode on centos >>> by appending "1" or "single" (without quotes) on boot

Re: how to change root passwd (if forgotten)

2011-08-11 Thread Francois Cerbelle
Le Wed, 10 Aug 2011 18:10:02 +0200, Thierry Chatelet a écrit : > On Wednesday 10 August 2011 17:53:26 Umarzuki Mochlis wrote: >> if i'm not mistaken you can just go to single user mode on centos by >> appending "1" or "single" (without quotes) on boot parameter, no need >> for any live cd >> > Not

Re: how to change root passwd (if forgotten)

2011-08-10 Thread abdelkader belahcene
On 8/10/11, Lucas Lima wrote: > the passwords are stored in /etc/shadow and you deleted the file, you should > restore it. I just removed the second field , the password for th root. no more things restore it ?? how?? starting with level 1, (single ) is not a solution, the password is requi

Re: how to change root passwd (if forgotten)

2011-08-10 Thread shawn wilson
you forgot chroot. might also need to do ldconfig -v to make sure the path to shared libraries is correct (but i don't think so). you used to be able to clear out the field in the shadow file or clear out the x (iirc) in passwd, but i think default pam will stop you from doing this :) On Wed, Aug

Re: how to change root passwd (if forgotten)

2011-08-10 Thread Ivan Shmakov
> abdelkader belahcene writes: […] > then I decided to remove passwd from /etc/shadow (delete the > second field). > OK, now I can access my machine without passwd, BUT I CAN´T GIVE ANY > PASSWORD I RECEIVE THIS ERROR > # passwd* > *Changing password for user root. > New passwo

Re: how to change root passwd (if forgotten)

2011-08-10 Thread Aniruddha
On Wed, Aug 10, 2011 at 5:25 PM, abdelkader belahcene wrote: > Hi, > I ve forgotten my root passwd on centos 6 (red hat based), > > I tried to change it as I used in debian (in debian it works perfectly) , > that is: ... > > any idea to fix the problem. > thanks a lot > http://www.centos.org/docs/

Re: how to change root passwd (if forgotten)

2011-08-10 Thread Thierry Chatelet
On Wednesday 10 August 2011 17:53:26 Umarzuki Mochlis wrote: > if i'm not mistaken you can just go to single user mode on centos by > appending "1" or "single" (without quotes) on boot parameter, no need for > any live cd > Not with debian, but lots of trail if you google it. Thierry -- To UNS

Re: how to change root passwd (if forgotten)

2011-08-10 Thread Umarzuki Mochlis
if i'm not mistaken you can just go to single user mode on centos by appending "1" or "single" (without quotes) on boot parameter, no need for any live cd 2011/8/10 abdelkader belahcene > *Hi, > I ve forgotten my root passwd on centos 6 (red hat based), > > I tried to change it as I used in debi

how to change root passwd (if forgotten)

2011-08-10 Thread abdelkader belahcene
*Hi, I ve forgotten my root passwd on centos 6 (red hat based), I tried to change it as I used in debian (in debian it works perfectly) , that is: use a cd live (or installation cd1), to access the hd, I mount my root partition and mount proc and devices I tried the command passwd, no error re