What permissions do you need to read a fike on Win2K?

2003-03-19 Thread Richard Sharpe
Hi,

After doing some testing of Win2K permission bits, I find that you need 
READ_DATA and READ_EXTENDED_ATTRIBUTES to be able to read a file under 
Win2K. Can anyone confirm that?

Similarly, you need WRITE_DATA, WRITE_ATTRIBUTES and 
WRITE_EXTENDED_ATTRIBUTES to be able to write a file.

Bizaro, unless you know that Windows implements file data as the unnamed 
$DATA attribute (except where you have created alternate data streams, in 
which case they are named).
 
Regards
-
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



RE: What permissions do you need to read a fike on Win2K?

2003-03-19 Thread Ken Cross
Right.  In smbd/posix_acls.c the definition:

 #define FILE_SPECIFIC_WRITE_BITS
(FILE_WRITE_DATA|FILE_APPEND_DATA|FILE_WRITE_EA|FILE_WRITE_ATTRIBUTES)

is used to set the required perms in the ACL.  

Ken


Ken Cross

Network Storage Solutions
Phone 865.675.4070 ext 31
[EMAIL PROTECTED] 

 -Original Message-
 From: 
 [EMAIL PROTECTED]
  
 [mailto:[EMAIL PROTECTED]
 amba.org] On Behalf Of Richard Sharpe
 Sent: Wednesday, March 19, 2003 6:08 PM
 To: [EMAIL PROTECTED]
 Subject: What permissions do you need to read a fike on Win2K?
 
 
 Hi,
 
 After doing some testing of Win2K permission bits, I find 
 that you need 
 READ_DATA and READ_EXTENDED_ATTRIBUTES to be able to read a 
 file under 
 Win2K. Can anyone confirm that?
 
 Similarly, you need WRITE_DATA, WRITE_ATTRIBUTES and 
 WRITE_EXTENDED_ATTRIBUTES to be able to write a file.
 
 Bizaro, unless you know that Windows implements file data as 
 the unnamed 
 $DATA attribute (except where you have created alternate data 
 streams, in 
 which case they are named).
  
 Regards
 -
 Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
 sharpe[at]ethereal.com, http://www.richardsharpe.com