On 2021/10/05 01:42, Rex ford wrote: > Hello! > I may have found a bug, or an undocumented feature. > For context, > I am mounting a directory like this: > *sshfs rex@myserver:/mnt/my_mount /mnt/my_mount* > I understand that Theo disabled usermount because it's dangerous, but after > mounting a filesystem with sshfs and using root, the directory is ownership > shows root:wheel, and the mode is only letting root access anything. > > If I try > *doas chown rex:rex /mnt/my_mount* > then > *ls -lah /mnt/my_mount* > I still see > *root:wheel as the user and group for that directory.* > > Also, the* chmod* command is ignored on an sshfs mounted directory. Isn't > this a bug? Shouldn't I be able to mount the file system,* then* hand > privilege to another user afterward? > > Generally, the goal is to access the data mounted by root with sshfs ... > but from a normal user. > > Best regards, > Rex
I think this is expected. sshfs "idmap" options may help.