The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-15-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
You could set your umask before editing the file.

$ umask 266

That would leave any file you edit as read-only to owner. You'll need to switch back immediately after editing the first file, as strange behavior can result from such.

$ umask 022

Cheers,

Keith

Last edited by kduffin; 11-17-2003 at 10:40 PM..