Neil Bothwick wrote:
>> it's probably pam related.
>>
> I have he same here and I don't use pam.
have you looked at /etc/profile{,.d,.env} ?
otherwise, if you really want to know, then strace "su -"
--b
--
[EMAIL PROTECTED] mailing list
On Sat, 24 Nov 2007 16:00:38 -0500, Billy Holmes wrote:
> > Sorry, but I don't get your point. How does this explain why root has
> > a correct $DISPLAY after using "su" or "su -"?
> it's probably pam related.
I have he same here and I don't use pam.
--
Neil Bothwick
Quick!! Act as if nothin
Dirk Heinrichs wrote:
> Sorry, but I don't get your point. How does this explain why root has a
> correct $DISPLAY after using "su" or "su -"?
>
it's probably pam related.
check /etc/pam.d/su
check if it has:
sessionrequired pam_env.so
sessionoptional pam_xauth.so
Am Freitag 23 November 2007 schrieb Billy Holmes:
> Dirk Heinrichs wrote:
> > No difference with "su -". I don't have any line in root's *rc files
> > which set the DISPLAY.
>
> $ set | grep XAUTH
> $ su -
> # set | grep XAUTH
>
> notice, they will be different.
>
> It boils down to security.
>
> y
Dirk Heinrichs wrote:
> No difference with "su -". I don't have any line in root's *rc files which
> set the DISPLAY.
$ set | grep XAUTH
$ su -
# set | grep XAUTH
notice, they will be different.
It boils down to security.
you can do it two ways.
$ su -
# export XAUTHORITY=/home/$OLDUSER/.Xaut
On Fri, 23 Nov 2007 08:55:33 +0100, Dirk Heinrichs wrote:
> > Using 'sux' with no problems so far
>
> How does this explain why I have $DISPLAY set _correctly_ after using
> _normal_ su?
Hmm, so do I. I hadn't noticed because I have su aliased to sux, but
calling su directly now leaves $DISPL
Am Freitag, 23. November 2007 schrieb ext Rumen Yotov:
> Using 'sux' with no problems so far
How does this explain why I have $DISPLAY set _correctly_ after using
_normal_ su?
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211
On (23/11/07 07:58) Dirk Heinrichs wrote:
> Am Donnerstag, 22. November 2007 schrieb ext Dan Farrell:
> > However, if you su or
> > something, you'll no longer have that environment variable.
>
> Hmm, although I'm not sure why, I do:
>
> % whoami
> dheinric
> % echo $DISPLAY
> :0
> % su
> Passwor
Am Donnerstag, 22. November 2007 schrieb ext Dan Farrell:
> However, if you su or
> something, you'll no longer have that environment variable.
Hmm, although I'm not sure why, I do:
% whoami
dheinric
% echo $DISPLAY
:0
% su
Passwort:
# whoami
root
# echo $DISPLAY
:0
No difference with "su -". I
On Thu, 22 Nov 2007 12:37:28 -0600, Dan Farrell wrote:
> did you start the X session as root?
>
> it's important to differentiate between having permission to write to an
> X display (xhost permits that) and knowing which display to write to -
> $DISPLAY will be set to that if you're already in
On Thu, 22 Nov 2007 02:49:11 + (UTC)
Thufir <[EMAIL PROTECTED]> wrote:
> I only started googling $DISPLAY, but yes, it's the same user who
> started the X session. Normally I use GNOME, but will also try just
> X and KDE.
>
really? in your previous message you pasted:
>arrakis ~ # gtkpod
Am Donnerstag 22 November 2007 schrieb Thufir:
> [EMAIL PROTECTED] ~ $ echo $DISPLAY
>
> [EMAIL PROTECTED] ~ $
So it's unset, which is the reason for the error you get from gtkpod. It
doesn't know on which display to open.
Try setting it ":0" (export DISPLAY=:0) before you run the command.
How
On Thu, 22 Nov 2007 07:46:33 +0100, Dirk Heinrichs wrote:
> So, what does "echo $DISPLAY" show? Also helpfull would be the output of
> "ps -ef|grep X". How do you start X, via display manager (gdm, xdm,
> kdm,...) or with startx after text console login?
Quick response:
display manager: gdm I
Am Donnerstag, 22. November 2007 schrieb ext Thufir:
> On Wed, 21 Nov 2007 07:56:33 +0100, Dirk Heinrichs wrote:
> > That has it all. Is your $DISPLAY variable set correctly? Is this the
> > same user who started the X session?
>
> I only started googling $DISPLAY, but yes, it's the same user who s
On Wed, 21 Nov 2007 07:56:33 +0100, Dirk Heinrichs wrote:
> That has it all. Is your $DISPLAY variable set correctly? Is this the
> same user who started the X session?
I only started googling $DISPLAY, but yes, it's the same user who started
the X session. Normally I use GNOME, but will also
15 matches
Mail list logo