[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freenx-knx
Subject:    Re: [FreeNX-kNX] .nx and .ssh in Windows profile not deletable
From:       "Fabian Franz" <FabianFranz () gmx ! de>
Date:       2008-03-10 23:08:46
Message-ID: 20080310230846.261700 () gmx ! net
[Download RAW message or body]

> Holger Krull schrieb:
> > 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.
> >   
> One more flag is necessary for the cacls: "/E", otherwise the control 
> settings will be replaced!
> 
> It works!
> This is the script "MyApplication.cmd":
> 
> "%ProgramFiles%\NX Client for Windows\nxclient.exe" --session
> "\path_to_nx_sessions\MyApplication.nxs"
> cacls "%USERPROFILE%\.nx" /T /E /G SYSTEM:F 
> cacls "%USERPROFILE%\.ssh" /T /E /G SYSTEM:F
> 
> 
> Somewhat critical is the period between the start of the script and the 
> start of the application, which the nx client starts:
> The access control settings are not set properly yet. If something 
> crashes there, one have to fix the .nx and .ssh files manually.

Couldn't you create the .ssh and .nx manually before starting nxclient and add the cacls accordingly?

Just an idea.

cu

Fabian
________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:
  http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/ 

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX@kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic