Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X-овые проги из под sudo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
SFx.M0D8
n00b
n00b


Joined: 20 Apr 2005
Posts: 11

PostPosted: Mon Apr 25, 2005 1:23 am    Post subject: X-овые проги из под sudo Reply with quote

Проблемка в том, что из под sudo x-овые проги говорят:
cannot connect to X server
Как исправить, кто подскажет?
Back to top
View user's profile Send private message
rusxakep
Guru
Guru


Joined: 09 Jul 2004
Posts: 458

PostPosted: Mon Apr 25, 2005 5:59 am    Post subject: Reply with quote

xhost +
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Mon Apr 25, 2005 6:45 am    Post subject: Reply with quote

pam_env ?
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Mon Apr 25, 2005 7:23 am    Post subject: Reply with quote

Может export DISPLAY=:0
Back to top
View user's profile Send private message
d_n_k
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2004
Posts: 138
Location: Russia

PostPosted: Mon Apr 25, 2005 1:03 pm    Post subject: Reply with quote

поправь /etc/sudoers

Defaults env_reset
Defaults:denis !env_reset

теперь у denis'а не сбрасываются переменные окружения
Back to top
View user's profile Send private message
WI
n00b
n00b


Joined: 27 Jan 2005
Posts: 53

PostPosted: Tue Apr 26, 2005 12:54 pm    Post subject: Re: X-овые проги из под sudo Reply with quote

SFx.M0D8 wrote:
Проблемка в том, что из под sudo x-овые проги говорят:
cannot connect to X server
Как исправить, кто подскажет?


Похоже на ошибку авторизации X сервера.

А из под su запускаются ? Если нет то под su

export XAUTHORITY="$HOME/.Xauthority"

после этого опять запускаем прогу. Cработает - строчку пропиши в /etc/profiles
Back to top
View user's profile Send private message
ClieX
n00b
n00b


Joined: 19 Jan 2005
Posts: 44
Location: Europe/Moscow

PostPosted: Tue Apr 26, 2005 3:36 pm    Post subject: Reply with quote

Да легче в /etc/sudoers раскомментить строчку :
Code:

# Uncomment to allow people in group wheel to export variables
Defaults:%wheel !env_reset

Думаю, так будет лучше.
_________________
Gentoo Base System version 1.6.13, Stage 1/3 with NPTL,UTF-8
GCC 3.4.4-r1, GLIBC 2.3.5-r1, 2.6.13.2-nitro1
GNOME 2.12
Back to top
View user's profile Send private message
WI
n00b
n00b


Joined: 27 Jan 2005
Posts: 53

PostPosted: Thu Apr 28, 2005 8:02 am    Post subject: Reply with quote

ClieX wrote:
Да легче в /etc/sudoers раскомментить строчку :
Code:

# Uncomment to allow people in group wheel to export variables
Defaults:%wheel !env_reset

Думаю, так будет лучше.


Возможно и проще. Но если X программа не запускается под su, то не запустится и под sudo . Переменную авторизации теперь не прописывают в profiles по умолчанию. Объясняют, как правило, улучшением настроек защиты X сервера "из коробки".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum