X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Jerome Fong Subject: Permissions/acl problem Date: Thu, 08 Nov 2007 23:10:03 -0800 Lines: 65 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Interesting problem. I have a nightly build script that has a crontab entry setup to run at 1:30 a.m. every morning. Besides building, it also copies my jar files out to a remote, shared file system for everyone to pickup and deploy in the morning. However, the cron job is having problems writing out to this directory. What is interesting is, if I see the permission on the directory from my bash shell, the privileges are O:RWX, G:RX and W:RX. $ ls -la //remote/builds total 0 drwxr-xr-x 1 jfong Domain Users 0 Jun 14 17:56 ./ dr-xr-xr-x 1 jfong Domain Users 0 Nov 8 13:32 ../ drwxr-xr-x 1 jfong Domain Users 0 Nov 7 18:01 Nightly/ drwxr-xr-x 1 jfong Domain Users 0 Apr 11 2007 Releases/ Now when I use the same command in my cron script (which shows the userID as myself), the privileges are O:RWX with nothing for Group or World. + id uid=11172(jfong) gid=10513(Domain Users) groups=544(Administrators),555(Remote Desktop Users),5 45(Users),10513(Domain Users) + ls -la //remote/builds total 0 drwx------+ 1 Administrators Domain Users 0 Jun 14 17:56 . dr-xr-xr-x 1 jfong Domain Users 0 Nov 8 12:58 .. drwx------+ 1 jfong Domain Users 0 Nov 7 18:01 Nightly drwx------+ 1 jfong Domain Users 0 Apr 11 2007 Releases + ls -la //remote/builds/Nightly total 0 drwx------+ 1 jfong Domain Users 0 Nov 7 18:01 . drwx------+ 1 Administrators Domain Users 0 Jun 14 17:56 .. drwx------+ 1 jfong Domain Users 0 Oct 1 01:33 200710010130 drwx------+ 1 jfong Domain Users 0 Oct 2 01:33 200710020130 I tried using getfacl from the cron script, but that don't seem to match anything either. It shows + getfacl //remote/builds # file: //remote/builds # owner: Administrators # group: Domain Users user::rwx group::--- group:SYSTEM:rwx group:Users:rwx mask:rwx other:--- default:user::rwx default:user:Administrators:rwx default:group:SYSTEM:rwx default:group:Users:rwx default:mask:rwx + mkdir //remote/builds/Nightly/200711080630 mkdir: cannot create directory `//remote/builds/Nightly/200711080630': Permission denied Any idea what I need to change since chmod doesn't seem to have any effect. Jerome -- 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/