Is there any way to make xhost settings remain unchange with each reboot?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.