Solved

unix2dos dos2unix changing file access

Posted on 2004-08-10
2
268 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now