Windows 10: DOS2UNIX Problem - Operation not permitted when using dos2unix to file Solved

  1.    04 Dec 2016 #1

    DOS2UNIX Problem - Operation not permitted when using dos2unix to file

    Excuse me, I'm a fellow newbie here wanting to resolve this issue because it is tiring only to resolve this issue by restarting the bash.exe. I just want no errors to be seen when doing my project. Thank you!
    Attached Thumbnails Attached Thumbnails Capture.PNG  
      My ComputerSystem Spec

  2.    04 Dec 2016 #2

    My Cygwin does not have dos2unix (nor d2u). It was present in older versions of Cygwin years ago, but no more.

    I had to get mine (d2u) from a third-party source. (The reverse u2d is also available.)

    To your problem ... I wonder whether your dos2unix is defective. There are some bad ones out there in the wild.

    Also, its "operation not permitted" error messageis a bit cryptic.
    Does it mean that you don't have read (or write) permission on the file? Check and see.
    Last edited by margrave55; 06 Dec 2016 at 14:19.
      My ComputerSystem Spec

  3.    05 Dec 2016 #3

    I tried to make the file and directories a 777 permission base but it doesn't work.... Thanks for the reply. :)
      My ComputerSystem Spec

  4. Golden's Avatar
    Posts : 761
    macOS High Sierra
       05 Dec 2016 #4

    How about trying chmod +rw

    What text editor are using? Some will save as Unix format. E.g. UltraEdit.
    Last edited by Golden; 05 Dec 2016 at 11:19.
      My ComputersSystem Spec

  5.    05 Dec 2016 #5

    Cygwin chmod is not quite the same as Windows iacls.
    In particular, a file can have a DENY acl ... which chmod cannot deal with.
    So use Windows explorer. Go to file properties, select the Security tab, and click Advanced.

    Check to see that you are the owner. If not, click the Change link, take ownership, and click OK. Back on the Advanced panel, click OK.
    When you change ownership, you have to exit from properties, and go back in before the next step.

    Next step ... on Security / Advanced panel ... If there are any DENY acls, remove them. Then add yourself in as a acl with full control. (Or, if your account is already there, change it to full control.) Then OK OK to exit.
      My ComputerSystem Spec

  6.    06 Dec 2016 #6

    @Golden I'm using atom as text editor and i always apply the command dos2unix in order to apply unix format. Sorry for the misunderstanding but both chmod 777 and chmod +rw worked but error still appeared while editing the file. BTW,
    @margrave55 i set to full control both to users. so far so good, no error has occurred yet. will update you tomorrow if there will be errors. sorry got no time this weekdays due to many workloads but i'll try
      My ComputerSystem Spec


Related Threads
Hello, I just bought myself an HDD docking station, and following instructions on lifehacker, tried to create a spanned volume, so that I can use two spare Western Digital 500Gb HDDs as a single 1Tb HDD. All seemed to go OK until the last...
Hello, So I have 51GB .eappx file that needed to be decrypt-ed. I launched powershell and put in the command line Add-appxpackage "File location here".eappx I had to run powershell as admin to properly execute the operation but I did not. ...
I have been successfully running Tiger Woods PGA Tour 08 with Windows 10 Home. But suddenly when trying to start the program I am getting the message "This application is not compatible with the installed operation system. Please upgrade to Windows...
Bluetooth phone operation and setting in Drivers and Hardware
Where have the Bluetooth phone operations and setting screen gone when I right click on my iPhone under devices and printers that option is not there which means I cannot show screen when phone rings or want to play audio files from my phone the...
This is a follow-up to my problem described here (keep reading, this is different config now) Stuck on configure with spinning wheel - Windows 10 Forums It looked very much like the initial problem was the legacy on-board video, with no future...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:48.
Find Us