X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7FEB3858035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1690676630; bh=pdGV9ibjsUcBeQlOswwrkfnMB8z+YSeb5UMWqIfreQo=; h=Date:To:CC:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=vfnkXb0eGeGaQctmSaie8yHmN/HcySRaHEn0NfaXEA12fpiUb0pcTB22F+wkjQyGh yMxm4xZNUwxdpCSYRr4FX4WEeK4qzY8bR1yKw3g4OE6RVmbXGHszFQK1WHOkYG+flX LVZioC29CwbvirM9zmCQ9LTexel1fT6yNVLR+k4I= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D8DA3858D32 Message-ID: <64C5AD55.7050809@tlinx.org> Date: Sat, 29 Jul 2023 17:22:45 -0700 User-Agent: Thunderbird MIME-Version: 1.0 To: Roland Mainz CC: cygwin AT cygwin DOT com, Roland Mainz Subject: Re: Map home dir drive (H:) to /home/myuser/ ? References: In-Reply-To: X-Spam-Status: No, score=-17.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KHOP_HELO_FCRDNS, SPF_HELO_NONE, TXREP, T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: L A Walsh via Cygwin Reply-To: L A Walsh Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" On 2023/07/28 21:24, Roland Mainz via Cygwin wrote: > Good morning! > > ---- > > Does Cygwin have a way to map a (NFS) home dir drive (H:) to > /home/myuser/, without resorting to POSIX-style softlinks ([1]) ? > > Example: > 1. Home dir mounted on drive H: via NFS > 2. How do I now map H: to /home/myuser/ ? > > For example Linux and Solaris use the automounter to mount NFS dirs > directly to /home/myuser/ , and Solaris uses lofs (loopback > filesystem) to mount a local users home dir /export/home/myuser/. Does > Cygwin have a similar facility for drives represented by drive letters > (e.g. H: [2]) ? > --- Not really -- as the automounter and lofs are OS features in linux that are not in Windows. Windows can do similar if you have a Windows server that provides smbfs/cifs mounts. I do the same with a linux-samba server that provides a home-directory service to users, but Windows requires a server of some sort to provide some of these things, AFAIK. In my setup, though, 'h' provides the home directory of the user ON the samba server -- different the "local home dir". What you want, sorta CAN be done in that samba can also provide a user dir that provides scripts that get read into a user environment that can set the home dir through the environment. But setting "USERPROFILE" and such would have to be done/user -- maybe as part of creating a Domain that can controll users+logins. I did that ages ago when Win7 first came out -- and am not sure what new facilities there are for doing that, other than I think Win10/11 can't really be part of a Domain -- only business versions of them. Remember, NFS isn't a Windows technology so I wouldn't expect it to give you much in the way of Win-compatible feature -- though it might give you more feature if you limit yourself to the POSIX subsystem -- not sure how that works with Win10/11's linux subsystem (or if it does at all). -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple