Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Win32::Perms and Network Shares

by rchiav (Deacon)
on Feb 06, 2004 at 22:16 UTC ( #327239=note: print w/replies, xml ) Need Help??


in reply to Win32::Perms and Network Shares

My guess is that you don't have permissions to read the security info on the share you're testing this against. I just ran this code against a network share and it worked. You're only going to get info back if the account you're logged in as is able to get the info in the first place.

Replies are listed 'Best First'.
Re: Re: Win32::Perms and Network Shares
by thoughtless (Initiate) on Feb 09, 2004 at 17:43 UTC
    Thanks for your replies, at first I thought I missed a small detail. I did talk with some of our admins, that have more privs than I do, and yeah I do not have this type of access. Once again thanks for the help
      I'm just getting into this w2k security so this is
      a 101.
      
      I tried your code for a single directory and got this.
      This seems to be more a permissions question. Look
      at the mask output below.
      (I modified your %permissions build to:
        $loop++;
        $permissions{$aceName . "__$loop"} = {access => $access, mask => \@mask};
      and added a flag view.
      )
      
      I get the same listing for allow and deny.
      Does that look right? 
      Thanks 
      
      ACE
      Owner of "\\y-fps3\Home\Star_hub" is "RAYO\2007617" with "3" aces.
      Group of "\\y-fps3\Home\Star_hub" is "" with "3" aces.
      
         ACE:
          Ace name:    RAYO\2007617
          Ace access:  Denied
          Ace sid:     S-1-5-21--1289165036-66035279--551693756-12389
          Ace domain:  RAYO
          Ace entry:   DACL
          Ace account: DACL
          Ace type:    2
          flag:        OBJECT_INHERIT_ACE
          flag:        CONTAINER_INHERIT_ACE
      
         ACE:
          Ace name:    RAYO\2007617
          Ace access:  Allowed
          Ace sid:     S-1-5-21--1289165036-66035279--551693756-12389
          Ace domain:  RAYO
          Ace entry:   DACL
          Ace account: DACL
          Ace type:    1
          flag:        OBJECT_INHERIT_ACE
          flag:        CONTAINER_INHERIT_ACE
      
         ACE:
          Ace name:    RAYO\OUoperators
          Ace access:  Allowed
          Ace sid:     S-1-5-21--1289165036-66035279--551693756-10260
          Ace domain:  RAYO
          Ace entry:   DACL
          Ace account: DACL
          Ace type:    1
          flag:        OBJECT_INHERIT_ACE
          flag:        CONTAINER_INHERIT_ACE
      
         PERMISSIONS mask
      
          Group/User: RAYO\OUoperators__3
          Permissions: (Allowed)
                         STANDARD_RIGHTS_ALL
                         FILE_READ_EA
                         FILE_WRITE_EA
                         FILE_EXECUTE
                         FILE_DELETE_CHILD
                         FILE_READ_ATTRIBUTES
                         FILE_WRITE_ATTRIBUTES
      
          Group/User: RAYO\2007617__1
          Permissions: (Denied)
                         STANDARD_RIGHTS_ALL
                         FILE_READ_EA
                         FILE_WRITE_EA
                         FILE_EXECUTE
                         FILE_DELETE_CHILD
                         FILE_READ_ATTRIBUTES
                         FILE_WRITE_ATTRIBUTES
      
          Group/User: RAYO\2007617__2
          Permissions: (Allowed)
                         STANDARD_RIGHTS_ALL
                         FILE_READ_EA
                         FILE_WRITE_EA
                         FILE_EXECUTE
                         FILE_DELETE_CHILD
                         FILE_READ_ATTRIBUTES
                         FILE_WRITE_ATTRIBUTES
      
      Never mind.  Code error.  %permissions overwrites....
      right?  I put the permissions assignment and printout
      in the main loop and ... presto.  Thanks.
      Just another error of many.
      
Re^2: Win32::Perms and Network Shares
by zechim (Initiate) on Dec 27, 2005 at 12:22 UTC
    Hi,
    In my case, I have permission to read the permissions (on Explorer I can visualize the permissions) but using Win32::Perms I canīt! Maybe itīs necessary have privileges to write permissions

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://327239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-09-27 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?