Re: How to bypass /etc/passwd's shell

From: Murat Koc (muratkoc_at_linux.org.tr)
Date: 07/19/01


Hi,

add this line at the beginning of this script before #!/bin/bash

trap "" 2

and for other signals (kill -l)

>> #!/bin/sh
>> /usr/sbin/chroot /home/<user chroot> /bin/bash -login
>
>> dummy:x:500:500:chroot user:/home/dummy:/bin/rshell
>
>
> not wise. one can ^C out of the script's execution, leaving you with
> /bin/sh as your shell. (been there, tried that, was able to break out,
> it's easier than you may guess.)

and it can't be break by pressing ctrl_c

                                                                         
                                                              MURAT KOC



Relevant Pages

  • RE: How to bypass /etc/passwds shell
    ... not wise. ... /bin/sh as your shell. ...
    (Focus-Linux)
  • Re: Anesthesiologists Delay Calif. Execution
    ... They were supposed to be there to monitor Morales, ... because the state has decided to kill Morales ... Morales isn't feeling pain during the execution. ... the patient to adjunct executioners made their participation in the ...
    (alt.true-crime)
  • Re: Anesthesiologists Delay Calif. Execution
    ... They were supposed to be there to monitor Morales, ... because the state has decided to kill Morales ... Morales isn't feeling pain during the execution. ... the patient to adjunct executioners made their participation in the ...
    (alt.true-crime)
  • Re: OT -- Texas to World Court, "Fuck You"
    ... It's pretty easy to avoid the death penalty here in the US... ... to openly contemplate the execution of an innocent prisoner. ... of Texas, Margaret ... to do is not kill anyone or do it in one of the leftish pinko states like ...
    (rec.scuba)
  • Re: death penalty
    ... society, this statement needs rephrasing. ... :> And ANY alternative to execution is AUTOMATICALLY preferable to ... No one is less entitled to kill than a government, ... :>: One thing can certainly be said about the death penalty, ...
    (alt.fan.harry-potter)