passwd-SOS

Achilleas Kotsis achille at eexi.gr
Thu Sep 3 01:24:22 EEST 1998


On Wed, 2 Sep 1998, Vasilis Spiliopoulos wrote:

> to sosto den einai su -s /bin/bash alla su -c
> /bin/bash , sou zhtaei password kai trexei to bash
> san root, ka8ws otidhpote meta thn parametro -c to
> pairnei san entolh, kati allo diladi pou mporeis na
> kaneis einai px ena su -c pico (pou fysika trexei
> katw apo id 0) kai anoigeis to /etc/passwd kai to
> peirazeis. ayta :-)
>                                            Ciao,
>                                                Vasilis

man su

  Additional  arguments  may be provided after the username,
       in which case they are supplied to the user's login shell.
       In particular, an argument of -c will cause the next argu-
       ment to be treated as a command  by  most  command  inter-
       preters.  The command will be executed by the shell speci-
                                              ^^^^^^^^^^^^^^^^^^^
       fied in /etc/passwd for the target user.
       ^^^^^^^^^^^^^^^^^^^
opote 8a paei na ektelesei thn entolh,xrhsimopoiwntas to shell,to opoio
den 8a uparxei,opote to su DEN 8a tre3ei...

To skefthka kai gw alla den pianei :)

      Achilleas Kotsis (Achille on IRC) 
achille at eexi.gr , http://w4u.eexi.gr/~achille/

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list