Re: su from root to user and gui applications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

Attachment: pgpQ3uz38GuhB.pgp
Description: PGP signature

___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux