Hi there If I do 'sudo -u zope -s', then I get the correct title in the session list (ctrl-a"); however the values of e.g. HOME and PATH are wrong. If I do 'sudo -u zope -i', then HOME and PATH are correct, but the title is wrong.
In the first case, the title is 'z...@host:~/path' (changed to 'zope'). In the second case, the title is 'j...@host:~/path' (still 'jean', though I'm now working as the 'zope' user). j...@web2:~$ sudo -i -u zope z...@web2:~$ echo $HOME && echo $PATH # Shows correct values. /home/zope /home/zope/bin:/home/zope/bin:/usr/local/bin:/usr/bin:/bin z...@web2:~$ logout j...@web2:~$ sudo -s -u zope z...@web2:~$ echo $HOME && echo $PATH # Show WRONG values. /home/jean /home/jean/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin The bashrc files are identical, this shows now difference: z...@web2:~$ diff -u /home/jean/.bashrc .bashrc z...@web2:~$ echo $PS1 ${debian_chroot:+($debian_chroot)}...@\h:\w\$ The session list looks like this: [...] 24 z...@web2:~ 25 j...@web2:~ Any advice would be gratefully received. Regards, -- jean . .. .... //\\\oo///\\ _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users