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

2007-03-05 Thread heba
2007/3/5, Jarek Buczyński <[EMAIL PROTECTED]>: Nobody knows? Is it possible in general? -- Best regards is not possible for that I know, naturally. Because the command chsh ask the sintax -s [SHELL] [NAME] infact, if I try the command like you write it the shell turn me the syntax erro

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

2007-03-05 Thread Jarek Buczyński
Nobody knows? Is it possible in general? -- Best regards -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

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

2007-02-27 Thread Jarek Buczyński
> Is Apache running on the remote server? If so, could upload a > vulnerable PHP script and then exploit it to give yourself a remote root > shell? Yes it's, but this up to date version 2, so how do this? -- Best regards -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubs

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

2007-02-26 Thread Roberto C. Sanchez
On Mon, Feb 26, 2007 at 04:53:40PM -0800, Andrew Sackville-West wrote: > > 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=/

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

2007-02-26 Thread Andrew Sackville-West
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 sh

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

2007-02-26 Thread Jarek Buczyński
> 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 ca

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

2007-02-26 Thread Andrew Sackville-West
On Mon, Feb 26, 2007 at 02:33:37PM +0100, Jarek Buczy?ski wrote: > > su -s /bin/bash > > It doesn't work :( > > -- > $ su --shell=/bin/bash > Password: > Enter new UNIX password: > > -- > > $ cgrep root /etc/passwd > root:x:0:0:root:/root:/usr/bin/passwd > --

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

2007-02-26 Thread Jarek Buczyński
> su -s /bin/bash It doesn't work :( -- $ su --shell=/bin/bash Password: Enter new UNIX password: -- $ cgrep root /etc/passwd root:x:0:0:root:/root:/usr/bin/passwd -- -- Best regards -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subje

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

2007-02-25 Thread Atis
On 2/26/07, Jarek Buczyński <[EMAIL PROTECTED]> wrote: Hi I changed my user root shell to /usr/src/passwd, by mistake :( I forgot add user to command chsh #chsh -s /usr/bin/passwd I can't login as root :( is it possible change this without going to physical machine and boot from LiveCD? I kn

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

2007-02-25 Thread Jarek Buczyński
> Have you setup sudo? Can you perhaps do a sudo -i, or a sudo /bin/chch > or some such shell? Unfortunately I haven't, yet :( >Boot from a Live CD and fix it from there. I know about this but it's remote machine, so I can't do this. -- Best regards -- To UNSUBSCRIBE, email to [EMAIL PROTE

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

2007-02-25 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/25/07 17:21, Jarek Buczyński wrote: > Hi > > I changed my user root shell to /usr/src/passwd, by mistake :( > > I forgot add user to command chsh > > #chsh -s /usr/bin/passwd > > I can't login as root :( is it possible change this without goi

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

2007-02-25 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jarek Buczyński wrote: > Hi > > I changed my user root shell to /usr/src/passwd, by mistake :( > > I forgot add user to command chsh > > #chsh -s /usr/bin/passwd > > I can't login as root :( is it possible change this without going to > physical ma

Re: chsh

2000-02-03 Thread da Bobstopper
(in response to earlier email about chsh which i seem to have deleted) try booting from your rescue disk (you do have a rescue disk don't you?) if you have a Debian CD, boot from it, mount the root partition and whatever partition you might have /etc in and hit alt-f2. hit enter to open a shell,

Re: chsh

2000-02-03 Thread Eric G . Miller
Try using a "run command" utility from the menu (if there's one): chsh -s bash root That'll teach you! -- ++ | Eric G. Milleregm2@jps.net | | GnuPG public key: http://www.jps.net/egm2/gpg.asc | +---

Re: chsh

2000-02-03 Thread Brian Stults
I did something similar a while back. You don't necessarily have to reformat. If you have a rescue disk, or have access to another computer to create a rescue disk, use that to boot the machine. Then use ae to edit /etc/passwd. There, you can manually change "chsh --version" back to whatever sh