On 2016-7-11 17:04, Pierre Ossman wrote:
> On 09/07/16 09:26, asm warrior wrote:
>> From the document of vncconfig,
http://tigervnc.org/doc/vncconfig.html
>> I see that this program is used to support the clipboard copy and paste
>> text between local and remote computer. My question is: is there any way
>> from the server side I could disable this feature.
>>
>> I mean, I could remove the vncconfig executable from the /usr/bin/, thus,
>> when a server is created, the clipboard is disabled. But a user can simply
>> copy a vncconfig program from other computer, and run it from his own home
>> folder, and this clipboard support comes back.
>>
>> So, is it possible to disable this feature globally(by a root user), so
>> normal user has no way to enable this feature?
>>
>
> Afraid not. There is no global configuration for TigerVNC. Not that it would really help if the users can run their own binaries as they could just start a modified Xvnc.
>
> If you've somehow managed to control Xvnc though you can specify these parameters:
>
> -NoClipboard -SendCutText=0 -AcceptCutText=0
>
> Regards
Thanks for the help.
In-fact, for security reasons, I'm having xrdp 0.6.1 and TigerVNC(installed from offical repo by the yum command) both installed on a Centos 6.7 system. So, a user can only login through the xrdp, then the xrdp will dynamically create a vnc session. A user is not allowed to create another vnc session, because only the port of the xrdp is allowed in the firewall, and if the user kill the xvnc process, the remote connection is also disconnected. I can set the parameter of the command when xrdp create/run a vnc session.
From the document of TigerVNC, especially the vncconfig, is it necessary running vncconfig to support clipboard, I mean if I don't run vncconfig, the clipboard is always disabled(whether I have -SendCutText=1 -AcceptCutText=1 ?), If I disable the clipboard from xvnc's command line, does vncconfig can re-enable the clipboard feature?
I see an issue that clipboard does not work in this case. If I try to run the vncconfig, then the remote session just get disconnected if I copy anything in the remote computer. (there is a bug report in xrdp's issue system: copying to the X clipboard causes disconnect from tightvnc · Issue #141 · neutrinolabs/xrdp -
https://github.com/neutrinolabs/xrdp/issues/141), but it looks like an xrdp issue.
The feature I just like is that: some thing like "-SendCutText=0 -AcceptCutText=1", so that user can only copy content from the server, but they can't copy content from local computer to the server.
Thanks.
asmwarrior