the - makes su use the users environment. from man suI cant find the difference between su and su - except for the prompt(?)
Code:-, -l, --login Provide an environment similar to what the user would expect had the user logged in directly. When - is used, it must be specified as the last su option. The other forms (-l and --login) do not have this restriction.