proper home directory for ssh configuration (e.g. ~/.ssh/config);
authorwenzelm
Thu, 06 Oct 2022 17:24:55 +0200
changeset 76272 b8072e5a1637
parent 76271 7eedccabbc74
child 76273 4c7e8d01f6b9
proper home directory for ssh configuration (e.g. ~/.ssh/config); avoid redundant mkpasswd + mkgroup information, as recommended by Cygwin documentation;
Admin/Windows/Cygwin/isabelle/postinstall
--- a/Admin/Windows/Cygwin/isabelle/postinstall	Thu Oct 06 14:40:45 2022 +0200
+++ b/Admin/Windows/Cygwin/isabelle/postinstall	Thu Oct 06 17:24:55 2022 +0200
@@ -4,8 +4,7 @@
 
 bash /etc/postinstall/base-files-mketc.sh.done
 
-mkpasswd -l >/etc/passwd
-mkgroup -l >/etc/group
+mkpasswd -l -u "$USER" -p "$(cygpath -u "$HOMEDRIVE$HOMEPATH\\..")" >/etc/passwd
 
 find -type d -exec setfacl -m default:user::rwx,default:group::r-x,default:other:r-x '{}' +
 find -type d -exec chmod 755 '{}' +