cygwin - Safely change home directory -


i'm trying safely update home directory specified in /etc/passwd, standard linux utils - usermod , vipw - doing aren't provided cygwin.

could tell me how changed in cygwin?

edit: recent versions of cygwin (1.7.34 , beyond), see this newer question.

like sblundy's answer, can edit by-hand.

but if want "official" way, use cygwin-specific mkpasswd command. below snippet official docs on mkpasswd :

for example, command:

example 3.11. using alternate home root

$ mkpasswd -l -p "$(cygpath -h)" > /etc/passwd 

would put local users' home directories in windows 'profiles' directory.

there's bunch of other useful commands described on cygwin utilities documentation page (which includes mkpasswd). use of cygpath in example above of these cygwin-specific tools.

while you're @ it, want read using cygwin windows documentation. there's bunch of advice.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -