Mail Archives: cygwin/2007/11/09/02:11:06
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/
- Raw text -