Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <406C31FD.1040108@acm.org> Date: Thu, 01 Apr 2004 07:15:09 -0800 From: David Rothenberger User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040326) MIME-Version: 1.0 To: Yufeng Xiong CC: cygwin AT cygwin DOT com Subject: Re: Questions on cygwin filemode in WindowsXP References: <001f01c417f8$45619d90$22e94b9f AT YufengDell> In-Reply-To: <001f01c417f8$45619d90$22e94b9f@YufengDell> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Yufeng Xiong wrote: >1. What is the '+' in the file mode? I know it has something to do with file >permission, after >the editing, my web server/PHP does not have permission to open test.php >anymore > I believe the "+" indicates that there are some Windows permissions that do not map to the Unix-style user/group/other. For example, if I create a new file using cygwin (say, with touch), and then open the file's properties with Windows and explicitly add permission for another user to modify the file, I see the "+". >2. How do I set the '+' in mode manually? I used 'fstat' on the two files >and it shows the exact >same mode (o100700). > Well, you can copy all the file attributes from one file (sourceFile) to another (destFile) with a command like this: % getfacl - sourceFile | setfacl -f- destFile >3. Why xemacs changed the file mode? Could it be because of different file >system? > Do "M-x customize-apropros" on "backup-by-copying". The default behavior is to move the old file to the backup file and then create a new file. If you set this option on (non-nil), the backup copy will be made as a copy and the original file will be modified. This will preserve the extra file permissions on the original file (although the backup copy won't have them). HTH, Dave -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/