You need to "su -" (as this triggers a login shell to root) and throw those 
commands in the relevant shell configuration script, ie, .cshrc, .tcshrc, .zshrc, .bashrc 
etc.

On 14/06/2026 12:33 am, Todd Gruhn wrote:
When I login as user, this is what works

PS1="gandalf$ "
export PS1

When I su to root, how do I get that to happen?
Put it in a specific file (.login) ?

Reply via email to