I LOOK FOR A COMMAND THAT SETS THE PERMISSIONS OF ONE FILE LIKE THE PERMISSIONS
OF ANOTHER FILE.

This is analogous to the touch command that sets the timestamps of one file 
like another file,
    touch -r file-template  file-target

Of course, one can go through machinations like
   cp -p file-template file-target
   cp    file-target   file-template
   mv    file-template file-target
However, in Linux, what we imagine has often been incorporated into a command,
slickly.

Context: I copy/alter numerous files/directories around a server to set up 
diskless computers.
Usually, I want the same file permissions, but not necessarily the same file
contents.  

-- 
Jim Burt, NJ9L,         Fairfax, Virginia, USA
[EMAIL PROTECTED]       http://www.mnsinc.com/jameson
[EMAIL PROTECTED]       (703) 235-5213 ext. 132  (work)

"A poor man associating with a rich man will soon be too poor 
to buy even a pair of breeches."                   --Chinese Proverb

Reply via email to