On 4/29/25 22:19, Mark Geisert via Cygwin wrote:
Congrats on the successful first steps!


Thank you for the help!


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".)


2025-04-30 00:12:08 admin@dq67sw ~
$ fusermount3 -u /samba/dpchrist
fusermount3: /samba/dpchrist unmounted

2025-04-30 00:12:26 admin@dq67sw ~
$ id -u
197609

2025-04-30 00:12:46 admin@dq67sw ~
$ id -g
197121

2025-04-30 00:15:08 admin@dq67sw ~
$ sshfs dpchrist@f5:/var/local/samba/dpchrist /samba/dpchrist -o umask=000 -o create_umask=000 -o uid=197609 -o gid=197121

2025-04-30 00:15:40 admin@dq67sw ~
$ cat /var/run/fuse.mounts
# Updated by FUSE apps; stale entries OK; DO NOT EDIT this binary file!
/samba/dpchrist sshfs 2530 //dpchrist@f5//var/local/samba/dpchrist

2025-04-30 00:16:08 admin@dq67sw ~
$ ls -l /samba
total 1
drwxrwxrwx 1 admin None 0 Apr 29 19:21 dpchrist

2025-04-30 00:16:14 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-30 00:16:46 admin@dq67sw ~
$ touch /samba/dpchrist/foo


Create is fixed.  :-)


Run a simple benchmark:

2025-04-30 00:16:54 admin@dq67sw ~
$ dd if=/dev/urandom of=/samba/dpchrist/foo bs=1M count=1k
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 11.3246 s, 94.8 MB/s

2025-04-30 00:17:49 admin@dq67sw ~
$ dd if=/samba/dpchrist/foo of=/dev/null bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 10.7516 s, 99.9 MB/s

2025-04-30 00:18:52 admin@dq67sw ~
$


So write works, and sequential read and sequential write throughput is decent for Gigabit Ethernet.


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

..mark


chmod appears to have no effect from Cygwin sshfs:

2025-04-30 00:23:41 admin@dq67sw ~
$ ls -l /samba/dpchrist/foo
-rwxrwxrwx 1 admin None 1073741824 Apr 30 00:17 /samba/dpchrist/foo

2025-04-30 00:25:44 admin@dq67sw ~
$ chmod 0644 /samba/dpchrist/foo

2025-04-30 00:25:56 admin@dq67sw ~
$ ls -l /samba/dpchrist/foo
-rwxrwxrwx 1 admin None 1073741824 Apr 30 00:17 /samba/dpchrist/foo


The server shows mode 0644, which is acceptable. I may play with the sshfs options to see if I can get the Cygwin permissions to also display 0644:

2025-04-30 00:25:57 admin@dq67sw ~
$ ssh dpchrist@f5 ls -l /var/local/samba/dpchrist/foo
-rw-r--r-- 1 dpchrist dpchrist 1073741824 Apr 30 00:17 /var/local/samba/dpchrist/foo


I do not need chown from Cygwin sshfs at the moment.


Thanks, again!  :-)


David


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

Reply via email to