[FreeNX-kNX] Seamless / rootless session, allowing only certain application to start.

Kopra, Tom (NSN - FI/Espoo) tom.kopra at nsn.com
Thu Jan 31 22:57:30 UTC 2013


Hi, 

 

Finally figured out the nxacl.. did not realize that it only requires to
echo out the parameters that will be used for the session.

I configured the NX client with the parameters I want to use, then in
nxacl I did (to get the parameters from NX client).

 

echo $1 > /tmp/somefile.txt

 

then I copied all the parameters and put them in nxacl into CMDLINE and
finally echo them out.

 

Now that I understand how the file works it will be easier to customize.

 

Thanks for your help.

 

Regards,

 

Tom

 

 

From: freenx-knx-bounces at kde.org [mailto:freenx-knx-bounces at kde.org] On
Behalf Of ext chris at ccburton.com
Sent: Wednesday, January 23, 2013 5:46 PM
To: User Support for FreeNX Server and kNX Client
Subject: Re: [FreeNX-kNX] Seamless / rootless session, allowing only
certain application to start.

 


freenx-knx-bounces at kde.org wrote on 23/01/2013 14:51:14:

oopsadaisy 

--type="unix-application"  I meant . . . . 




 
if [ $USER = "im-a-testing-user" ] ; then  # you may also  want to 
check $type isn't shadow or windows or vnc 

        force_this_to_run="/path/to/your/application" 

        rootless_param=$(getparam rootless) 
        application_param=$(getparam application) 

        [ -z "$rootless_param" ] && addparam rootless 1 
        [     "$rootless_param" != "1" ] && changeparam rootless 1 

        [ -z "$application_param" ] && addparam application 
"$force_this_to_run" 
        [     "$application_param" != "$force_this_to_run" ] && 
changeparam application "$force_this_to_run" 

        changeparam type "unix-application"      # just make sure it's
not shadow etc 
fi 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130201/35435a28/attachment.html>


More information about the FreeNX-kNX mailing list