From: [EMAIL PROTECTED] > Does windows use the chmod command in the same manner as unix
No. There is no chmod in the system itself. And the builtin chmod() function is almost a NOOP under windows. The ony thing chmod() does under Windows is that it sets the "READONLY" attribute on the file according to the user-writeable bit of the permissions. AFAIK. The permissions model used by Unix and Windows is too different for chmod() to do anything better. >From "ActivePerl-faq5 - Implementation Quirks": ------------------------------------------------------------------ How does the chmod function work on Win32 platforms? chmod() is supported in ActivePerl. However, it can only be used for setting "owner" read/write access. (The "group" and "other" bits are ignored.) UNIX-style security for files is not applicable to files on Win32 systems. Win32 systems inherit from DOS four possible file attributes: archived (A), read-only (R), hidden (H), and system (S). These can be checked and set with the Win32::File::Get/SetAttributes(). Windows NT/2000 systems using NTFS can also have more specific permissions granted on individual files to users and groups. For builds 300 and above, and the Perl Resource Kit for Win32, you can use the Win32::FileSecurity module to maintain file permissions. ------------------------------------------------------------------ HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]