Solved

unix2dos dos2unix changing file access

Posted on 2004-08-10
2
270 Views
Last Modified: 2006-11-17
Is there any way to keep unix2dos or dos2unix from chaning the file properties? e.g.

create file testfile as user xfer
ls -la > testfile [return]
ls -la [return]
-rw-rw-rw- 1 xfer xfer 529 Aub 10 09:52 testfile
unix2dos testfile [return]
ls -la [return]
-rw------- 1 xfer xfer 529 Aub 10 09:52 testfile

I would like to do the commands above with a script. My work around right now is:

unix2dos testfile
chmod 666 testfile

It seems strange that I should have to do that.
 
0
Comment
Question by:dwanders
2 Comments
 
LVL 11

Accepted Solution

by:
avizit earned 500 total points
ID: 11764795
0
 

Author Comment

by:dwanders
ID: 11765519
I believe you just won the cigar - thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question