[FreeNX-kNX] .nx and .ssh in Windows profile not deletable
holger.krull at gmx.de
Thu Mar 6 13:42:57 UTC 2008
Rupert Kolb schrieb:
> Holger Krull schrieb:
>> Rupert Kolb schrieb:
>>>>> connecting from windows clients with a (recent) nomachine client to an
>>>>> openSUSE FreeNX 0.7.1 we get .nx and .ssh directories in the local
>>>>> (temporary) profiles of the windows users.
>>>>> They are not deletable.
>>>> They are, if you add access rights for the group administrators.
>>>> The nomachine client creates these files with full controll access for the owner only. Windows default is full controll for the windows user, system and the group administrator. If you want them to get automatically deleted you will need to change the acls first.
>>> How can I do that? It seems that the nomachine client does ignore any
>>> access control settings in "documents and settings", which other
>>> newly-created files and folders inherit usually.
>> Yes, inheritance is disabled.
>> You need to start the nx client in a cmd file that sets the acls with cacls.exe
> ... more questions... Do you have an example script?
Not yet. Put the following in test.cmd
"%ProgramFiles%\NX Client for Windows\nxclient.exe"
cacls "%USERPROFILE%\.nx" /T /G SYSTEM:F
cacls "%USERPROFILE%\.ssh" /T /G SYSTEM:F
I didn't test this.
If you want to allow the Administrator to delete this, you will need an additional /G Administrator:F
Unfortunately the name Administrator changes with the language of Windows.
More information about the FreeNX-kNX