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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -