X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 18 Dec 2007 13:58:56 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Michael Kairys cc: cygwin AT cygwin DOT com Subject: Re: Intermittent perl crash (Attn: coreutils and bash maintainer) In-Reply-To: Message-ID: References: <6910a60712171332t3e8db66fn4cf1a64fe611011 AT mail DOT gmail DOT com> <47674E3E DOT 2080201 AT cygwin DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Tue, 18 Dec 2007, Michael Kairys wrote: > "Igor Peshansky" wrote in message > news:Pine DOT GSO DOT 4 DOT 63 DOT 0712181009420 DOT 28181 AT access1 DOT cims DOT nyu DOT edu... Again, . Thanks. > > I'm guessing one can reconstruct your permissions as follows: > > > > $ cd /tmp > > $ mkdir nw > > $ setfacl -m g:Users:rwx nw > > $ chmod a-rwx nw > > $ ls -ld nw > > d---------+ 2 igor root 0 Dec 18 10:08 nw/ > > $ touch nw/foo > > $ ls -l nw/foo > > -rw------- 1 igor root 0 Dec 18 10:08 nw/foo > > $ if [ -w nw ]; then echo "Yes"; else echo "No"; fi > > No > > $ > > Not sure about the setfacl but I note that if I repeat your sequence I get > "dr-xr-xr-x", which is what all my dirs look like: > > 1 > cd /tmp > 2 > mkdir nw > 3 > setfacl -m g:Users:rwx nw > 4 > chmod a-rwx nw > 5 > ls -ld nw > dr-xr-xr-x 2 michael None 0 Dec 18 11:46 nw > 6 > touch nw/foo > 7 > ls -l nw/foo > -rw-r--r-- 1 michael None 0 Dec 18 11:47 nw/foo > 8 > if [ -w nw ]; then echo "Yes"; else echo "No"; fi > No > > > One solution is, of course, "chmod u+rwx /tmp". > > Well, this has no effect for me: > > 9 > ls -ld /tmp > dr-xr-xr-x 9 michael None 245760 Dec 18 11:46 /tmp > 10 > chmod u+rwx /tmp > 11 > ls -ld /tmp > dr-xr-xr-x 9 michael None 245760 Dec 18 11:46 /tmp Heh. I just looked, and it seems you've never posted the output of "cygcheck -svr" on your system as requested in > Problem reports: http://cygwin.com/problems.html I bet that if you did post one, it would show that your Cygwin is installed on either FAT or FAT32, not NTFS. That, and the DOS "Read-only" bit on the directory is probably set. Another (less likely) alternative is that you've installed on a network drive. If it's FAT32, you're out of luck. In other cases you would probably benefit from reviewing . Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it." -- Rabbi Hillel -- 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/