[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #chsh -s /usr/bin/passwd - by misteke



On Tue, Feb 27, 2007 at 01:18:47AM +0100, Jarek Buczy?ski wrote:
> > okay, *maybe* this will work. man su says it looks for the shell
> > specified by --shell, then $SHELL if --preserve-environment is used,
> > then the shell in /etc/passwd and finally /bin/sh. So what if you
> > don't specify a shell, and can remove /usr/bin from your path. Its
> > possible that if su can't find /usr/bin then it won't find
> > /usr/bin/passwd and then it will drop to /bin/sh. It probably won't
> > work, because i'll be its hardcoded to look in /usr/bin, but it might
> > be worth a shot.
> 
> 
> Thanks but I don't understand what you mean, what should I do, and how,
> could you give me more detail (step by step :)), please?
> 

nevermind. I poked around at this for a bit and I can't get it to
work. You've got to get root on that thing somehow in order to change
/etc/passwd so you can get root.... youneed a live-cd or maybe reboot
with init=/bin/bash on the kernel line. not sure on the exact syntax
of that one, but its aroudn here somewhere -- google on recovering
root password for details on that one.

A

Attachment: signature.asc
Description: Digital signature


Reply to: