[SOLVED] lxterminal as local user "fail on bind, permission denied"
Posted: Fri Oct 12, 2018 6:02 am
Apologies if this is the wrong forum, but as LXTerminal seems to be the only app having this problem I thought it a reasonable place to start asking questions.
Background: I'm running LXDE on several gentoo linux installations. The problem first appeared a couple of upgrades back (my current lxterminal version is 0.3.1). At first I only knew that autostart of lxterminal failed. When subsequent upgrades failed to correct the problem and extensive google searches failed to find anyone else reporting the same difficulty I started poking around and now know what's happening, but not why (or how to fix it).
Specifically when started from xterm as root lxterminal runs fine. When started as a normal user over ssh it also runs fine. Attempts to start from xterm as a normal local user returns: WARNING **: Bind on socket failed: Permission denied
What seems to be happening is that attempts to start lxterminal as a normal user creates a socket file in /var/run/user/0 which that instance cannot access. Instances started over ssh correctly create a localhost socket file in /var/run/user/1000 and so work fine, and root, of course, has no permission problems with /var/run/user/0.
It seems unlikely that I'm the only one having this problem and the lack of any reference to it online likely means I'm missing something obvious, but I can't imagine what it is.
If more info on my systems is required let me know..
Any information, assistance or pointers would be greatly appreciated.
Brett K. Heath
Background: I'm running LXDE on several gentoo linux installations. The problem first appeared a couple of upgrades back (my current lxterminal version is 0.3.1). At first I only knew that autostart of lxterminal failed. When subsequent upgrades failed to correct the problem and extensive google searches failed to find anyone else reporting the same difficulty I started poking around and now know what's happening, but not why (or how to fix it).
Specifically when started from xterm as root lxterminal runs fine. When started as a normal user over ssh it also runs fine. Attempts to start from xterm as a normal local user returns: WARNING **: Bind on socket failed: Permission denied
What seems to be happening is that attempts to start lxterminal as a normal user creates a socket file in /var/run/user/0 which that instance cannot access. Instances started over ssh correctly create a localhost socket file in /var/run/user/1000 and so work fine, and root, of course, has no permission problems with /var/run/user/0.
It seems unlikely that I'm the only one having this problem and the lack of any reference to it online likely means I'm missing something obvious, but I can't imagine what it is.
If more info on my systems is required let me know..
Any information, assistance or pointers would be greatly appreciated.
Brett K. Heath