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
Nobody knows?
Is it possible in general?
--
Best regards
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 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
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=/
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
> 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
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
> --
> 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
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
> 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
-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
-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
(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,
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 |
+---
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
15 matches
Mail list logo