when to use su or su-
just reading in the Dutchmans Red Hat manual,
When using su , a sub shell is started. This is an environment where you are able to work as the target user account, but environment settings for that user account have not been set. If you need complete access to the entire environment of the target user account, you can use su - to start a login shell. If you start a login shell, all scripts that make up the user environment are processed, which makes you work in an environment that is exactly the same as when logging in as that user.
thats all fine,and i understand it...
but when would you want to login with the complete user environment,and when wouldnt you?
is it more to do with bash scripting and testing things?