Hi Andy, On Friday 05 May 2006 20:54, Andrew Hanushevsky wrote: > Hi Fabrizio and Andreas, > > The stat request already tells you whether the file is readable or > writable. In the xrootd world information beyond that is somewhat > ephemeral as the server owns all the files and access permissions do not > fit into the normal Unix framework. I say that because access persmissions > are determined by the authorization plugin (or in Alice's case, the > filesystem plugin). So, permissions are relative to the person making the > request and can only be represented externally by a yes/no indication. This yes/no indication is all we need. In XProtocol/XProtocol.hh we found the enum used to determine the access mode. We were mislead for sometime, because we were using the documentation of the old prod version of xrootd :-). > The chmod was put in strictly to control overall read or read/write access > for everyone and really wasn't meant to be useful in the "Unix" way. > Chown was never put in since it didn't make any sense. > > It's important to realize that xroot does not present a traditional > filesystem and will never be able to do so (well, at least not without > sacrificing performance). Cheers, Andreas, Jan Erik. > > Uhm, > > > > don't be sorry please. I missed that, so I am sorry... > > > > I gave a look at the protocol, and I agree with you. It seems that > > there is no way of getting the current access mode for a file. Well, I > > totally ignore what is it for in your case, since the files typically > > are owned by the server. > > > > Anyway, if it does make sense, we could speak about adding some info > > to the stat response or a new request symmetrical to chmod. From my > > point of view there is not much effort, since I have to add something > > tothe interface in the next days. Andy, what do you think? > > > > Fabrizio > > > > Andreas Petzold wrote: > > > Hi Fabrizio, > > > > > > sorry to bother you directly, but my posting to the xrootd mailing list > > > seems to have not caught anyone's attention. > > > > > > Thanks, > > > > > > Andreas > > > > > > ---------- Forwarded Message ---------- > > > > > > Subject: How to determine the access mode for a path > > > Date: Tuesday 02 May 2006 16:01 > > > From: Andreas Petzold <[log in to unmask]> > > > To: [log in to unmask] > > > > > > Hi, > > > > > > we are looking for a possibility to determine the access mode of a > > > path/file on an xrootd server with XrdClientAdmin/XrdClient. Since the > > > kXR_chmod request can set the user/group/others privileges we thought > > > that there might be a way to get them from the server. > > > > > > Cheers, > > > > > > Jan Erik, > > > Andreas > > > > > > -------------------------------------------------------