su root pres putty - nemohu delat vse

Milan Kopacka mkop5230 na ss1000.ms.mff.cuni.cz
Středa Březen 29 14:20:52 CEST 2000


On Wed, 29 Mar 2000, Mirek Kokrda wrote:

> Kdyz provedu "su root", tak si snad prevezme vsechna prava a nastaveni
> roota, ne?

Ne. V podstate "jen" prepne user ID.

Pouzijte 

su - root

z manu:

`-'
`-l'
`--login'
     Make the shell a login shell.  This means the following.  Unset all
     environment variables except `TERM', `HOME', and `SHELL' (which
     are set as described above), and `USER' and `LOGNAME' (which are
     set, even for the super-user, as described above), and set `PATH'
     to a compiled-in default value.  Change to USER's home directory.
     Prepend `-' to the shell's name, intended to make it read its
     login startup file(s).

  Milan Kopacka




Další informace o konferenci Linux