-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"You do not have permission to access..." error when trying to browse SSHFS-WIN mounted drive #101
Comments
It looks like permissions for SSHFS are not set up properly for some reason. Can you try also with the latest SSHFS and WinFsp Beta and see if the problem persists? |
Tried SSHFS 3.5.19106 and WinFSP 1.5.19090 (I had an issue installing the most recent beta). Same error message. |
i have same problem |
Maybe it is caused by a Windows Domain change? When I check the Security in the properties menu of the mounted drive in explorer, when it does work, my current user exists within the list of users. However when the permissions do not work, I do not see my current user. |
I'm having this same problem. sshfs-win-3.5.19106-x64 and winfsp-1.5.19192 . I'm on windows 10 pro. Login to the machine is done with Azure active directory (cloud login, not quite the same as a real active directory). Don't know if that has anything to do with it. Let me know if there is anything I can check or any info I can give you. Thanks. |
2 months later lol still no fix for this |
If I log in as a local Administrator, then the mount works fine, but then logging back in as an Azure Active Directory user, I get the same error as above. If it would help you debug this, I happen to have a test-bed Azure / office365 setup that I could give you an account on, if you had a win10 machine you could join to it. |
I'm having this same issue although found a workaround. net use i: \sshfs\ec2-user@ # to mount the drive Presumably it mounted /home/ec2-user |
Can you make steps can i need this program so baddly in my environment |
Further to this, I found you could simply mount using: net use x: \sshfs\[email protected]\a_folder_inside_users_homeDir So as an example, I had a folder /home/ec2-user/myFolder. I used command net use x: \sshfs\[email protected]\myFolder |
Then i type the password? |
If you dont type the password in the net use command it'll just prompt you for it |
That work around didnt work for me i noticed when i installed the program on new computer it worked and saw 3 users in permission propites but on old one saw 2 and reinstalling doesnt effect anything |
@billziss-gh is there way to remove everything related to the program then do full reinstall? |
Just run the installer which will allow you to uninstall everything. |
@billziss-gh Problem still there |
I have four partitions on the same machine and this problem only occurs on the two that use btrfs as a filesystem. The ones using NTFS and ext4 work fine. The workaroud described above also works for me. Edit: |
That work arround didnt work for me as its permission error by windows side |
This happens to me whenever I try to access a file or directory that isn't world-readable, even if it's owned and readable by the remote user that I log in as. However, the problem only occurs when I map or access the drive from an admin Windows account. As long as I both map and access the drive from a non-admin account, I can access non-world-readable files normally. For example, my home directory on the SSH server is:
and it contains the following directories:
From Explorer on my Windows client (while logged in as an admin), I map Y: to "\\sshfs\[email protected]\" and enter my password when Windows prompts me for it. When I try browsing to "Y:", I get the same error as the OP. I also get that error if I browse to "Y:\mail" or "Y:\test", but I can successfully browse to "Y:\test2" or "Y:\test3". If I change the permissions on my home directory to make it world-readable, I can then open "Y:\" itself. I can access all of these directories fine when using a normal SSH client (WinSCP). I'm using WinFsp 2019.3 and SSHFS-Win 2020 (x86) on Win10 Pro 1809. The SSH servers that I've tested with are CentOS 7 and Lubuntu 16.04.6 LTS, both running OpenSSH's sshd. On both servers, the home directory is on an ext4 partition. |
Thanks, @mcsjosh ! Had the same problem, (However, be careful if you use certificate-based SSH authentication - this may lock you out.) A better solution: add
|
This is still a problem... |
I'm also seeing this happen with AzureAD accounts. Works fine on local accounts. |
I also had this problem, I can now access the files! Try out the below code...
|
Summary:
Please, fix the problem. |
It looks like, when umask is not specified explicitly, then absence of permissions is taken as prohibition. For example, execute the following commands for a directory:
After that, you have access to the directory, because you are the owner. Yes, your group has no permissions to access, but you still has access because you are allowed as the owner. But SSHFS-Win forbids you to access the directory anyway. It sees that your group has no access to the directory. It ignores the fact that you are allowed as the owner and makes the absence of permissions for your group as prohibition and doesn't allow you to access the directory. @billziss-gh, can you check this? |
Should What does |
@megazet404 not sure if this helps, but this is some code where
|
This is still a problem in Dec. 2024. Window 11 Home. |
WinFSP version 1.4.19049
SSHFS-WIN version 2.7.17334
Windows 10 Pro version 1809
I'm attempting to mount the home directory on my Ubuntu box with:
net use D: \\sshfs\cobrien@<Ubuntu box IP address>
This appears to succeed; the 'D' drive appears in Windows Explorer and the sshd logs on the Ubuntu box show that the SSH session was established. However, clicking on drive 'D' in Windows Explorer results in the following pop-up:
Any idea how I would go about debugging this?
The text was updated successfully, but these errors were encountered: