www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/30/01:19:29

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53U5JTlf1849879
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53U5JTlf1849879
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=P3nuR9/a
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3395E3858417
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1745990367;
bh=JxAwPzuFSXuwLBD/PKVI+5pQnpPxjMd3JElGWHafSjE=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=P3nuR9/aeWYFhQARNtQrVdAe8lCH/gzy3tqwPymv7ymGyHNGciH+hdVsmc+0VsU0u
RHUA6F38uGvGOGD3l22/qpOUa4zzf37GrgqNDscSqZyo0HpcTWqOI2moy3EU8XpdkM
MiMp2mv464Mu2FAvfb799PfC+632zrLyQ/FD9KcQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2093B3858C98
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2093B3858C98
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745990341; cv=none;
b=B2ul/GkusOJdFFcJLdFbd5dtob4SUUbin9SOqQS2SDEdVgKptQ8ZyRnAyXiz/VQj2SSS7T5L8M+3T7/5CtK6Lmes3vLsoTwo7fuBjUp6EQfmDjGFZxd7P17yk8Z357pvbJBCjrVi7locwNNDozHSkgoWZGFLTP2ruegH71GzWZE=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1745990341; c=relaxed/simple;
bh=R/H/sJHqlpUwPts26i8Zxsaua/z08K6XGLinSQbJAPs=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=a9FNFnDWeEa86JgwxTZqBCJahV+rPXEGXWNXVVL3Zo0iubuRZegQ8Ih3I30jnOvzPNUfAqd70BO43IiBhgOYZGrKD+pg7sWTwgspI9MDb6Nnbe7BRj9zmbhMw5G0ZUh1Sb8lX1Uz+lkEp+sgyG+4X+pvgq4OHD2TGuLrey7oEh4=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2093B3858C98
Message-ID: <816150c8-c85f-4af9-bae7-34f1bcb4d649@maxrnd.com>
Date: Tue, 29 Apr 2025 22:19:02 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Windows 10 Home and sshfs
To: cygwin AT cygwin DOT com
References: <e910c290-5bbf-44ec-aed8-5fa379381d47 AT holgerdanske DOT com>
<2a7fb3aa-bc16-4da8-a3f5-4df20a07a8b3 AT maxrnd DOT com>
<0a5a204c-73f9-4696-a579-9d9c8bc5f7aa AT holgerdanske DOT com>
<8f95355a-698e-490f-9aa0-dbbf3a87bc34 AT maxrnd DOT com>
<96fdaa30-eb58-447c-a87c-f68a18381bcf AT holgerdanske DOT com>
<5a60ff59-1b29-4285-9ab0-944aa772c4ca AT maxrnd DOT com>
<a7deca03-e4fe-4f51-a104-86507d8cef93 AT holgerdanske DOT com>
<14cef355-68c5-4d16-b217-e280a3610a07 AT SystematicSW DOT ab DOT ca>
<86e5f4e4-f5e4-4769-bb57-a02d97130320 AT holgerdanske DOT com>
<f4f8fd94-9485-5880-f4f5-4c2de77c1842 AT jdrake DOT com>
<2ce50191-3c50-646d-88f3-22522cd435fe AT jdrake DOT com>
<b0669b89-9487-45d2-8f2a-005bb7c9ff3f AT holgerdanske DOT com>
<4d4cb2ab-9879-db3f-c56b-8851324f1899 AT jdrake DOT com>
<624302e8-b34a-4001-bb1c-402f5957eddd AT holgerdanske DOT com>
<61e2410f-489c-4b31-956d-6a356babadfb AT maxrnd DOT com>
<d8258609-c892-4a09-bf83-1b230a350f5f AT holgerdanske DOT com>
<c7a947f3-229b-4ac9-a999-9f561a4aabcb AT maxrnd DOT com>
<5297cbb6-5b74-4906-80e9-62c7214e4172 AT holgerdanske DOT com>
In-Reply-To: <5297cbb6-5b74-4906-80e9-62c7214e4172@holgerdanske.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 53U5JTlf1849879

Hi David,

On 4/29/2025 7:30 PM, David Christensen via Cygwin wrote:
[...]
> 2025-04-29 19:24:53 admin AT dq67sw ~
> $ sshfs dpchrist AT f5:/var/local/samba/dpchrist /samba/dpchrist
> 
> 2025-04-29 19:25:22 admin AT dq67sw ~
> $ cat /var/run/fuse.mounts
> # Updated by FUSE apps; stale entries OK; DO NOT EDIT this binary file!
> /samba/dpchrist sshfs 2406 //dpchrist AT f5//var/local/samba/dpchrist
> 
> 2025-04-29 19:25:39 admin AT dq67sw ~
> $ ls -l /samba
> total 1
> drwxr-xr-x 1 Unknown+User Unknown+Group 0 Apr 29 19:21 dpchrist
> 
> 2025-04-29 19:29:33 admin AT dq67sw ~
> $ ls -d /samba/dpchrist/[A-Z]* | head
> /samba/dpchrist/David_s_iPhone
> /samba/dpchrist/Downloads
> /samba/dpchrist/Movies
> /samba/dpchrist/Music
> /samba/dpchrist/Music-leftovers
> /samba/dpchrist/Pictures
> /samba/dpchrist/Television
> /samba/dpchrist/Videos
> 
> 2025-04-29 19:26:07 admin AT dq67sw ~
> $ touch /samba/dpchrist/foo
> touch: cannot touch '/samba/dpchrist/foo': Permission denied
> 
> 
> So sshfs is connecting, but there are identity issues (UID/GID/SID) (?). 
>   I tried a few guesses at options to allow write access, but without 
> success.  Suggestions?

Congrats on the successful first steps!

I believe you can fix these new issues with options on the end of your 
sshfs command.  From the list shown by 'sshfs -h', I would try...
Oh wait a second.  Run these commands to see what Cygwin has for your 
uid and gid:
     id -u
     id -g

Then at the end of your sshfs command, I would try...
     -o umask=000 -o create_umask=000 -o uid=UUUUU -o gid=GGGGG
where UUUUU and GGGGG are your uid and gid from the 'id' command.
(Choosing 000 for both umasks means "full access".)

I don't know if you can 'chown' or 'chmod' files on the mounted 
filesystem; not enough experience with FUSE+sshfs yet.
HTH,

..mark

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019