Dear Monks, Fellow wisdom seekers and alike. I have a problem as so many others. I'm trying to randomize an ACL setting string for a test i write in perl. I did not no much of ACL until now. I had to learn how to use it. But now i've got a problem as follow.
The ACL overwrites the previous settings. So the owner will disappear and replaced by the newly created ACL string which says : Everyone. I'm not able to set an ACL for the owner as if : domain\user because it says it cannot find the SID. i tried s:n and s:y also. the problem is the file which will be created will be on another domain. So it tends to be the problem that the created files cannot be accessable by anybody... No view now delete no permissions whatsoever, although the ACL string seams to be well.
Exm:
setacl.exe -on "z:\test8lhmJ.xls" -ot file -actn ace -ace "n:Everyone;s:n;i:so;p:read" -actn setprot -op "dacl:np"
So can i somehow append ACL settings or at least is there a fine way to just copy the current ACL settings and use them also? Or should i abandon the system use of setacl or calcls ... ?
Thank you for your answer in advice,
Gergely.