Hi David,
On 4/29/2025 7:30 PM, David Christensen via Cygwin wrote:
[...]
2025-04-29 19:24:53 admin@dq67sw ~
$ sshfs dpchrist@f5:/var/local/samba/dpchrist /samba/dpchrist
2025-04-29 19:25:22 admin@dq67sw ~
$ cat /var/run/fuse.mounts
# Updated by FUSE apps; stale entries OK; DO NOT EDIT this binary file!
/samba/dpchrist sshfs 2406 //dpchrist@f5//var/local/samba/dpchrist
2025-04-29 19:25:39 admin@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@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@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