Re: Need help in comparing permissions/ownerships on different systems



"snoopy_@xxxxxxxxxx" typed:
I have started down both paths that you recommend only to choke.
For one, the octal conversion for pattern matching might be a high
overhead for a program; every file it would have to figure out the
octal? I think I have decided to just match the whole expression.
I.E. If ( "-rwxrw-r--" -eq "-rw-r--r--)....

Yes, you can do without converting permission strings into equivalent
octal representations. I needed that in my script because the missing rest
part of that script, which I will work on in future, deals with
*resetting* the permissions of files whose permissions look warped.

--
Ayaz Ahmed Khan

It is impossible to defend perfectly against the attack of those who
want to die.
.



Relevant Pages

  • Re: cant get access to disk share when connecting from a remote s
    ... The systems are DUTs. ... for each of the drives within the system. ... Everything in the scripts work except the file permissions below the shares ... the shares on the DUTs manually, after they run my rename script, but I would ...
    (microsoft.public.windows.server.scripting)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... The CREATOR OWNER is likely on windows to be one of the admin accounts ...
    (microsoft.public.windowsmedia)
  • Re: how to restrict users to search in their own Organizational Unit
    ... will be given the necessary permissions. ... Who would you DENY? ... decided a script can make it possible to accomplish, ... If I need to create a security group per OU and then add all users ...
    (microsoft.public.windows.server.active_directory)
  • Re: VBScript to audit shares and share permissions
    ... You can also use SRVCHECK tool included in Windows Server Resources Kit. ... A simple script will allow you to scan all your network. ... see all shares. ... VBScript to audit shares and share permissions ...
    (Focus-Microsoft)