-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John P Verel wrote:

>su - starts a login shell for root.  Info page says:
>
>su - 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)
>
>So, this does two things I don't want:
>Change to ~/root
>Uses root .bash_history.  I want to use the john's history

I see, sorry.  I misunderstood what you meant by 'pick up the user's 
history'.  I see that you meant the invoking user.  And I'd forgotten 
that 'su -' changes the working dir.

Shutting up.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPE99Er9BpdPKTBGtEQLv7gCgkahgaGFwQWuZ2scy1Y0lEHNGOOoAn1q0
+aagKGT1ZGhy6hnoWi56Qi6n
=cQDJ
-----END PGP SIGNATURE-----




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to