On Fri, 2002-02-01 at 13:09, [EMAIL PROTECTED] wrote: > Hmm... :) Well what if somebody tries to meddle with /etc/passwd and > decided to remove it (with root access, of course). He/She can be even > an hacker. Imagine if the root user doesn't exist, there is no way of > even rebooting the system, performing "root" stuff etc. Also a similar > case of an "inactive" root would be setting a password ageing for root > (using chage). So effectively a root user can "expire" after some time. > > It's also interesting to note that my workaround (a very very trivial > one) will help u guys to write.....(any guesses) on a single user mode. > > Hmm..Should i tell it on the list, or in the meet ? > > WoW. . . On the List Yaar ;)
Very very trivial. As u know when u boot into single mode, yr filesystem is read-only.(Mandrake behaves diffrently). First boot into single user mode and at the prompt : # mount / -o remount,rw This will remount the "root" as read-write. So now u can go into /etc/passwd and add the deleted entry like root:x:0:0::/root:/bin/bash Save the file and reboot. That's it !!. U can use chage to "renew" yr expired root account, if that's yr problem Hope this helps..Any guys interested in making a LOST of it ?? -- Praveen *The Scorpion* Kannan Project Head - Knowledge Base @ ()paque Networks Website : http://kb.opaquenetworks.com E-mail : [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
