Red Hat Bugzilla – Bug 55183
dos2unix mangles file permissions
Last modified: 2007-04-18 12:37:48 EDT
Description of problem:
dos2unix, when running in "old file mode", always changes the permissions
on the file it runs on to 600.
Steps to Reproduce:
1. echo test >a.txt
2. chmod 666 a.txt
3. dos2unix a.txt
4. ls -al a.txt
Actual Results: a.txt now has permissions 600
Expected Results: a.txt's permissions should remain the same. I can think
of no legitimate reason why dos2unix should modify them. The behavior
isn't documented either.
*** This bug has been marked as a duplicate of 91331 ***
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.