Red Hat Bugzilla – Bug 176771
su - in term , gedit file causes invalid disply 0:0 message. Exits and returns to term.
Last modified: 2007-11-30 17:11:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060101 Firefox/1.5
Description of problem:
gedit fialled in root term while opening a file.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
I used nano editer and that worked fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.open term and su -
Actual Results: returned to term
Expected Results: gedit s/h opened the file for editing in the GUI
Installed Jan 1, 2006 as HTTP.
Can you post the contents of /etc/pam.d/su?
# As requested /etc/pam.d
# cat su
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth include system-auth
account include system-auth
password include system-auth
# pam_selinux.so close must be first session rule
session required pam_selinux.so close
session include system-auth
# pam_selinux.so open and pam_xauth must be last two session rules
session required pam_selinux.so open
session optional pam_xauth.so
I can reproduce the problem only when SELinux is set to Enforcing.
However I think that the latest SELinux policy packages should be OK. Please try
to upgrade to current rawhide and test if the problem is still there.
I installed rawhide today (2006-01-05) and have the same problem.
Try restorecon -R -v /root /home
FC5Test1 has a labeling problem on the /root and /home directories.
(In reply to comment #5)
> Try restorecon -R -v /root /home
> FC5Test1 has a labeling problem on the /root and /home directories.
this did not solve the problem for me
What policy are you running? Do you see any avc message in your log file?
Does removing pam_selinux.so from /etc/pam.d/su fix the problem?
This is working fine for me :^(
Fixed in rawhide.