Fastream Technologies wrote:
> Arno,
> 
> I think you misunderstood. For each folder listing record (file or
> folder in Windows, plus links in UNIX) in FTP, the FTP server GETs
> the permissions 
>> from the system for display purposes. This is not for CHMOD setting,
>> this is 
> for folder listings.

Anyway,  

> 
> Please tell me how will I get the read/write/execute permissions from
> the AD for each folder without attempting each operation. There must
> be a practical way!

I use these Windows API functions:
GetNamedSecurityInfo()
MapGenericMask()
AccessCheck()

Anyway, I don't know how to translate the resulting mask to unix format,
also there's no reliable way to get the effective rights of users without
having the user access token, even XP shows sometimes nonsense effektive
rights of not logged on users.  

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


> 
> Regards,
> 
> SZ
> 
> ----- Original Message -----
> From: "Arno Garrels" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Friday, August 31, 2007 5:56 PM
> Subject: Re: [twsocket] Question regarding ActiveDirectory in FTP for
> Arno 
> 
> 
>> Fastream Technologies wrote:
>>> Helo Arno,
>>> 
>>> I wonder how would one determine the permission field for FTP
>>> directory listings. For example:
>>> 
>>> drwxrwxrwx ....
>>> 
>>> This may not be needed for the demo yet definitely required for a
>>> real server. SurgeFTP does this but it's not open source. FileZilla
>>> has no AD support.
>> 
>> I doubt that SurgeFTP realy writes permissions on a Windows box.
>> Setting NTFS rights is no problem _if_ somebody knows how to
>> translate the UNIX access mask into a Windows mask?
>> 
>> --
>> Arno Garrels [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to