Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: file sharing permission issue involving ssh, cygwin

01 Feb 2012   #1

Windows 7 Enterprise 64 bit
file sharing permission issue involving ssh, cygwin

Hi. I apologize if this forum is inappropriate, I do not know if I am having a Unix problem or a Windows problem here. I have two machines, WORKER1 and WORKER2, both running Windows 7 Enterprise 64 bit. I have the latest version of Cygwin and OpenSSH installed on each, and am running sshd from Cygwin on WORKER2. I have a file stored in the default Users\Public folder on WORKER1 that I am having permission issues with and was hoping for some advice on how to fix it.

I am using Cygwin on WORKER1 to ssh into WORKER2 using public RSA key authentication. Then after doing this I am trying to run a file located in Users\Public on WORKER1. I keep getting permission denied and have run out of ideas. Here is the permissions information I am getting from ls -l and getfacls in Cygwin. The file I am trying to run is

root@Worker1 ~ 
$ ssh WORKER2 
Last login: Tue Jan 31 10:51:54 2012 from worker1  

root@Worker2 ~ 
$ cd //WORKER1/Users/Public/pMatlab/MatlabMPI/Examples/MatMPI 

root@Worker2 //WORKER1/Users/Public/pMatlab/MatlabMPI/Examples/MatMPI
$ sh 
sh: Permission denied

root@Worker2 //WORKER1/Users/Public/pMatlab/MatlabMPI/Examples/MatMPI 
$ ls -l
total 28 
-rwxrwxrwx+ 1 Administrators None   2 Jan 31 11:01
-rwxrwxrwx+ 1 Administrators None 127 Jan 31 11:01
-rwxrwxrwx+ 1 Administrators None 250 Jan 31 11:01 Dos_Commands.bat 
-rwxrwxrwx+ 1 Administrators None 636 Jan 31 11:01 MPI_COMM_WORLD.mat 
-rwxrwxrwx+ 1 Administrators None  97 Jan 31 11:01 MatMPIdefs1.m
-rwxrwxrwx+ 1 Administrators None 199 Jan 31 11:01 p0_p0_t10000_buffer.mat
-rwxrwxrwx+ 1 Administrators None 199 Jan 31 11:01 p0_p1_t10000_buffer.mat
-rwxrwxrwx+ 1 Administrators None   0 Jan 31 11:01 p0_p1_t10000_lock.mat
root@Worker2 //WORKER1/Users/Public/pMatlab/MatlabMPI/Examples/MatMPI
$ getfacl
# file:
# owner: Administrators
# group: None
And then running icacls from cmd.exe yields:

C:\Users\Public\pMatlab\MatlabMPI\examples\MatMPI>icacls Everyone:(F)
                          NT AUTHORITY\SYSTEM:(I)(F)
                          NT AUTHORITY\BATCH:(I)(F)
                          NT AUTHORITY\INTERACTIVE:(I)(F)
                          NT AUTHORITY\SERVICE:(I)(F)
Running the file locally works fine. Running the file from the Windows GUI on WORKER2 works fine. If I ssh from WORKER2 to itself, the file works fine. If I connect via Remote Desktop from WORKER1 to WORKER2 and run the file it works fine. The only time I get a permission denied error is if I ssh from WORKER1 to WORKER2 and then try to run the file on WORKER1 from there (which unfortunately is the only thing I care to do).

From what I can see, I have the maximum possible permission set for file sharing in Windows, and WORKER1 and WORKER2 are on the same LAN (marked as the Home network) and in the same Homegroup. The sshd on WORKER2 is installed as a service. I apologize if this is a really basic question - I am very new to this stuff and tried searching but have been unable to find anything. Here is a screenshot of my settings in the Network and Sharing Center. Thanks!

Attached Thumbnails
file sharing permission issue involving ssh, cygwin-security.jpg  
My System SpecsSystem Spec
02 Feb 2012   #2

Windows 7 Enterprise 64 bit

Issue resolved. It turns out that all of my permissions were set fine, but the software I was using (pMatlab) unzips as an encrypted folder! I did not know that green folder meant encrypted - I just thought that maybe you could set folder colors and the author liked to color-code his folders.
My System SpecsSystem Spec

 file sharing permission issue involving ssh, cygwin

Thread Tools

Similar help and support threads
Thread Forum
Unable to delete file after installing Cygwin
Hello, I installed cygwin in C:\cygwin\... Unfortunately, for one reason or another, my whole cygwin install became horribly buggered up (my home directory was not recognized and I could not access many of my commands/applications that I had installed/built). Now, I figured that I'm going to...
General Discussion
Yet another file sharing issue
Been working with a client who's two identical W7Pro desktops will no longer "see" each other in their Homegroup (HG). This network sharing ran well for almost a year and recently fell apart for no apparent reason. 1. Removed all AV products and disabled the firewall on both PCs 2. Renamed the...
Network & Sharing
File sharing issue
Did some searching and can't seem to find a solution to this issue. I have 3 computers on the same network all using Windows 7 build 7000. 1 is 32bit and the other 2 are 64bit. The 2 64bit machines have no trouble sharing files between them but neither can access the 32bit machine. The 32bit...
Network & Sharing
file sharing permission problem over network
I have two computers on my network. Both use Win7-64 Ultimate and both have Homegroups enabled with all the file types enabled (video, printers, etc). My problem is that I get an error message when I try to connect to any subdirectory under the users name (on the other computer). I can see the...
Network & Sharing
Win 7 and XP file sharing issue
Just after your help guys. i have 2 PCs that i am trying to get file sharing going, but seem to only get 1 direction file sharing. PC1: winxp pro sp3 (wireless connection) PC2: win7 pro (ethernet connection) extra info: same workgroup
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:58.
Twitter Facebook