LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Is there any way to make xhost settings remain unchange with each reboot? (https://www.linuxquestions.org/questions/debian-26/is-there-any-way-to-make-xhost-settings-remain-unchange-with-each-reboot-166786/)

davidas 04-06-2004 06:25 AM

Is there any way to make xhost settings remain unchange with each reboot?
 
I open a xterm with a normal user account, and do a su. But make xconfig can't run with root cos my xhost access control is enabled. So I did a xhost +local: with my normal user account and su again. This time make xconfig runs without error. However, when I reboot the system, my xhost setting (+local:) has been reset back to the original. I have to re-add +local:. Is there any way to make the settings stay after each reboot?

Thanks!

waster 04-06-2004 05:24 PM

for KDE,

/etc/kde3/kdm/Xaccess

might be the answer. If you use gnome, the equivalent will exist. for xdm, it's in /etc/X11/xdm/Xaccess

davidas 04-06-2004 06:43 PM

I'm using xdm. However, when I make some changes to xhost setting, those changes are not reflected in /etc/X11/xdm/Xaccess.

Quote:

Originally posted by waster
for KDE,

/etc/kde3/kdm/Xaccess

might be the answer. If you use gnome, the equivalent will exist. for xdm, it's in /etc/X11/xdm/Xaccess


waster 04-06-2004 06:59 PM

executing an xhost command will only take effect until X is restarted. I think, but don't quote me, you'll need to change the default permissions in the Xaccess file. Google it,

Xaccess seems to be for allowing other terminals to connect to this server, which is kind of what you want.

man xhost suggest a file /etc/X*.hosts should be used (???)
maybe you have to create it.

davidas 04-07-2004 11:11 PM

The problem I have is that all the xhost setting done in one session is gone with each server reboot.

Eg. make xconfig must be run as root. When I su into root account, I can't run make xconfig unless I have done a "xhost +local:" or "xhost +" on my normal user account before su into the root account. After each reboot, I have to redo the xhost +local: command before going into root account for the application to run.

Is there any configuration file for xhost to save all the settings, so that I don't have to redo the setting after each reboot?

Thanks !
PS. Cant' seem to find any help on X*.hosts

Quote:

Originally posted by waster
executing an xhost command will only take effect until X is restarted. I think, but don't quote me, you'll need to change the default permissions in the Xaccess file. Google it,

Xaccess seems to be for allowing other terminals to connect to this server, which is kind of what you want.

man xhost suggest a file /etc/X*.hosts should be used (???)
maybe you have to create it.



All times are GMT -5. The time now is 03:48 PM.