su from root to user and gui applications

Kevin Krammer kevin.krammer at
Thu Jul 7 14:47:54 BST 2005

On Wednesday 06 July 2005 11:57, Sebastian Reitenbach wrote:

> gui applications a root. but if i then as root su -l to another user, i
> cannot

The -l or - makes a shell a login shell, which means it also gets its own 
Thus DISPLAY is not set yet, thus X applications assume local :0

You could try also using -m to preserve the enironment
(see man su for details)


Kevin Krammer <kevin.krammer at>
Qt/KDE Developer, Debian User
Moderator: (German),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>
-------------- next part --------------
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list