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. messages 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): 2.13.0-3 How reproducible: Always Steps to Reproduce: 1.open term and su - 2.gedit filename 3.messages print Actual Results: returned to term Expected Results: gedit s/h opened the file for editing in the GUI Additional info: Installed Jan 1, 2006 as HTTP.
Can you post the contents of /etc/pam.d/su?
# As requested /etc/pam.d # cat su #%PAM-1.0 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 Darwin
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.