su from root to user and gui applications

Kevin Krammer kevin.krammer at gmx.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 
environment.
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)

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20050707/fc565b93/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list