windows 7 - Best strategy for installing cygwin under restrictive IT policies? -



windows 7 - Best strategy for installing cygwin under restrictive IT policies? -

my organization has grouping policy in effect allow executable programs reside under programme files (or programme files x86) directory. obviously, these directories not writable normal users. have access local admin rights, can install things there if want. of course of study doesn't create sense set whole cygwin tree there, since users need able write /home, /tmp, etc. thinking might able links, maybe install c:\cygwin, move /bin directory under programme files , create hard link it?

has run similar situation , come elegant solution? win 7 enterprise.

prior cygwin 1.7.34, solving such problems required fair bit of hoop-jumping,¹ it's easy:

if haven't installed cygwin yet, so.²

if have cygwin installed , started version of cygwin prior 1.7.34, move /etc/passwd , /etc/group out of way,³ upgrade current version.

start cygwin terminal.

open cygwin's /etc/nsswitch.conf in favorite text editor.⁴ add together line this:

db_home: /%h

that's it! when next re-start cygwin, treat windows profile directory cygwin home directory.⁵ means have useful sub-folders desktop , downloads sub-folders, matches way os x , lot of desktop linuxes work.

some people might not want these 2 directories treated equivalents. can take path scheme like. example, alter /cygdrive/c/users/%u/cygwin set cygwin home folder cygwin subdirectory of windows profile directory.

this new feature of cygwin powerful , can lot more show here. example, can alter cygwin user home directory via advertisement instead, if like. see documentation details.

you might want rearrange few other elements of cygwin path scheme. can editing cygwin's /etc/fstab file. want move /tmp, /usr/tmp, , /var/tmp directory non-admin users can write to, 1 thing:

c:/tmp /tmp ntfs auto 0 0 c:/tmp /usr/tmp ntfs auto 0 0 c:/tmp /var/tmp ntfs auto 0 0

this allow install (and later update) cygwin administrator while still letting unprivileged users run cygwin. makes cygwin behave more linux or unix. since software in cygwin bundle repository comes world, can count on behave correctly under such scheme.

footnotes:

the first version of answer tells how equivalent thing older versions of cygwin.

cygwin doesn't care install it, if default doesn't work you, sense free alter it. ideas:

c:\program files\cygwin c:\users\jeremy\cygwin d:\cygwin

cygwin remember selection on subsequent updates.

if don't move these files out of way, interfere solution build above. part of cygwin complex plenty deserve a whole section in cygwin user manual. hint. :)

cygwin installs stripped-down version of vim text editor default.

if don't vi, there many other text editors in cygwin bundle repository.

if do vi, suggest installing total version of vim, adding alias vi=vim ~/.bashrc.

you can utilize native windows gui text editor. cygwin's /etc/nsswitch.conf parser appears cope dos line endings.

the cygwin dll building path %homedrive% , %homepath% environment variables, converting posix form.

windows-7 cygwin group-policy

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -