Ethan Benson wrote: > > On Thu, Jan 04, 2001 at 04:26:53PM +0100, Kent Nyberg wrote: > > When i su to root, then root wont use the LANG variable. > > Well.. the LANG isn't passed on from the normal user.. > > How could i make it so that su will use that.. > > im not sure why su resets that, probably some security reason. i > would say just export it in /root/.bashrc. in general you shouldn't > be root enough for it to matter though.
I think putting the LANG into the root env is a better idea than preserving the env from a normal user. You could also set it manually once the su is complete. If you want the root env you should login su - which should source the env file and put you in the /root directory. Eric :-)