[FreeNX-kNX] /tmp/.X11-unix problems with nx-3.0.0 and freenx-0.7.1

Johnny Hughes mailing-lists at hughesjr.com
Sat Nov 3 16:28:45 UTC 2007


Fabian Franz wrote:
>> Now to my question.
>>
>> Should nxnode create /tmp/.X11-unix with owner root and permissions 1777
>>  if that directory does not exist?  If it should, how would one create
>> that directory with the owner root?
> 
> It is not possible. This needs to be created by user root before login via ssh is allowed.
> 
> I added a sample init.d script called "freenx-server" to SVN.

This might be the route I need to take, as I don't want to modify the
initscripts RPM that provides rc.sysinit

> 
>> As a temporary work around, I have just added a command to properly
>> create the directory in /tmp/ on startup in rc.sysinit (just like
>> ICE-unix) but what I am wondering is where this scenario should
>> correctly be handled.
> 
> rc.sysinit is a good place.
>

That is what I was thinking too ... what is strange is that they (in
this case Red Hat) already do create /tmp/.ICE-unix but for whatever the
reason, they do not create /tmp/.X11-unix

I will open up a discussion about this on the RH message list.

I do make the freenx and nx RPMS for CentOS, so I could also create a
script that goes into /etc/init.d/ and does nothing more that create the
directory if it does not exist (as root) when the machine starts ...
which I can do if Red Hat will not modify their initscripts RPM.

>> When running xinit (startX calls that) the directory /tmp/X11-unix is
>> properly created, so this is only a problem for (at least for me) when
>> trying connect to the server with X not running using NX.
> 
> The problem is that xinit is suid root, but FreeNX has no suid root executable.

That is what I found as well.

> 
> cu
> 
> Fabian

Thanks,
Johnny Hughes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20071103/e61c2f1a/attachment.sig>


More information about the FreeNX-kNX mailing list