AllVersions: Running Cygwin X w/ Registy Entries

Thorsten Kampe
Wed Oct 26 17:10:00 GMT 2005

* Chris Taylor (2005-10-26 17:38 +0100)
> Thorsten Kampe wrote:
>> * Christopher Faylor (2005-10-26 15:37 +0100)
>>>On Wed, Oct 26, 2005 at 10:26:36AM +0100, Thorsten Kampe wrote:
>>>>* (2005-10-26 00:45 +0100)
>>>>>Quoting Igor Pechtchanski <>:
>>>>>>See "man mount".  Please, please, please don't manipulate the registry
>>>>>>directly if you want to stay portable.  You can easily create a batch file
>>>>>>to reproduce the mounts properly.
>>>>>>"User mounts" is the answer.  The CURRENT_USER tree is usually writable.
>>>>>>Make sure you don't write over the existing settings if they are present.
>>>>>Current XP computers I am trying to run this into give me: "Registry Editing has
>>>>>been Disabled by your administrator." even if I try to write to Current_User
>>>>>All I am trying to keep portable is the X server thus XWIN.exe is the only
>>>>>executable I have, the only one I execute. After running the X server as the
>>>>>background server I am tunneling the packets using Putty / Securecrt.
>>>>Try "regedit /s" in a batch (instead of double clicking). This
>>>>sometimes works.
>>>Or, I dunno, if that works, you could just use "mount" and forget about
>>>regedit entirely.
>>>It's a crazy idea, I know.  I wonder why no one has thought of it before.
>> *I* didn't know about it (because I was under the impression that all
>> cygwin programs depend on the mount tables).
>> Well, obviously there are a few that don't (mount, cygcheck, ash (?),
>> etc.?)
>> And I think it's easier to just import a reg file than dealing with
>> multiple mount commands...
> Problem with that is that if the sysadmin knows what he's doing, it only 
> takes about 4 seconds to block off almost all possible ways of actually 
> editing the registry...

Definitely not. As a user running programs you are almost constantly
changing the registry (your HKEY_CURRENT_USER). So often importing a
.reg file is not allowed (by double clicking) and starting regedit in
GUI mode. 

> A batch file that checks for an existing mount table and saves it, then 
> mounts it according to what you want is far, far better.

This batch file is registry editing, too. If you edit the registry or
the mount command - that's no difference from a sysadmin's point of

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list