Solved I can't copy a file - "Access Denied"

peter7277

New member
Member
Local time
9:19 PM
Messages
83
I have Cygwin installed on my Windows 7 machine but it seems there is a problem with the permissions on the Cygwin folder because it doesn't allow me to copy any files to it, i get "access denied" every time i try. I tried to change the permissions from the folder properties but it doesn't allow me to save the settings. I tried different copy programs, also Robocopy, but still getting "access denied".

Any solution for this?
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Are you on an admin account?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
OpenBSD 6.8
CPU
AMD A10-7850K APU @ 4300MHz
Motherboard
ASRock FM2A58M-VG3+ R2.0
Memory
8GB G-Skill Ripjaws @ 2133MHz
Graphics Card(s)
I have an APU
Monitor(s) Displays
LG 24M35
Screen Resolution
1920x1080@74Hz
Hard Drives
931GB Seagate ST31000524NS 45W8867 59Y1812IBM
PSU
Cooler Master 750W
Case
Bitfenix NOVA
Cooling
120mm fan
Keyboard
Microsoft Digital Media Keyboard 1.0A
Mouse
Logitech G403
Internet Speed
40Mbps
Browser
Firefox
Other Info
Headset: Audio-Technica M50X
Can you take ownership of the folder?

Try adding your own account to permissions and give full control.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
Can you take ownership of the folder?

Try adding your own account to permissions and give full control.

To add to GokAy's answer -- http://www.sevenforums.com/tutorials/129063-take-ownership-allow-prevent-users-groups.html Shows you how to do this easily.

You may also need to assign guest access to the Cygwin folder through BASH -- bash - Root user/sudo equivalent in Cygwin? - Stack Overflow the first answer on there is a detailed guide to doing this.
**Warning** This is from base knowledge of Cygwin / Linux use at risk **Warning**
Once you have done this, you should use "CHMOD 777 -R -F" to force the files to be R/W/Executable by all users.

I think i may have a syntax issue on that, but i'm not certain.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 8.1
CPU
Intel i5 3750k OC'd 4.0Ghz
Motherboard
P8Z77-V LX3
Memory
16GB Vengence Corsair
Graphics Card(s)
GTX 770 OC 2GB Windforce
Sound Card
C-Media 7.1 Surround Card
Monitor(s) Displays
Asus 3D 23" & BenQ 24" & LG 19"
Screen Resolution
1920*1080, 1920*1080, 1440*900
Hard Drives
Crucial 512GB SSD
WD 1.5 TB
WD 500Gb
PSU
850MW Silverstone
Case
inWin DragonRider
Cooling
4 * 140mm LED Akasa, One 140mm Fan Akasa
Keyboard
Corsair k95
Mouse
R.A.T 7 Contagion
Internet Speed
152 Mb Fiber Optic
Antivirus
ESET Nod32
Browser
Waterfox x64 / Chrome x64
Other Info
Freenas / Plex Media server
Q6600
6Gb DDR3
6TB ZFS Raid
500W PSu
2 x Intel NIC's
I added my user name to the owners of the folder and finally i was able to copy files in this directory. I go to Properties>Security>Advanced>Change Permissions>Add and i added my user name and gave it Full Control permission.
I don't know why but original owners of the folder were Everyone, Creator Owner, Creator Group and these other two:

S-1-5-21-737781111-1622150700-586221225-1001
S-1-5-21-737781111-1622150700-586221225-513
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Did you copy paste this folder from some other installation perhaps?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
No, the folder was there from the beginning but recently i reinstalled Windows.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Back
Top