How about a different solution:

( cd / ; tar cvzf /path/to/samba/share/etc-$( date +%Y-%m-%d ).tar.gz etc/ )

Then backup the tarball on your windows box.  Now you have all of the file
permissions stored inside the tarball.....

The problem is that file permissions on Windows and UNIX don't map neatly
into each other.

Good luck,

-Martin

 : I am having difficulty in try to preserve permissions on Unix files that
 : are copied from the samba server onto a Windows98 system, and then copied
 : again via samba back to an 'upload' directory on the samba server.
 :
 : Specifically, I am sharing "/etc" (samba read only) for backup purposes,
 : and while logged in as "root" on the windows system, I can drag and drop
 : these files to the Windows desktop to back them up.  How can I copy them
 : back to the server via samba and still preserve their original unix
 : permissions?
 :
 : 1. Do the files retain their permissions while they sit on a Win98/Fat32
 : file system?  Will a NTFS partition help?
 :
 : I see that my unix umask is "0022" and so all of the files I copy (create)
 : in the samba 'upload' directory inherit -rwxr--r-- perms.  When I set my
 : unix umask to "0000" then the files inherit ---------- perms (bad!).  What
 : can I do?
 :
 : I tried playing with "create mask", "security mask", "directory mask", etc...
 :
 : thanks, peace
 : Brian
 :
 :
 :

-- 
Martin A. Brown --- SecurePipe, Inc. --- [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to