From: paul@... (paul vudmaska) Date: 2004-05-18T14:48:50+09:00 Subject: Re: Dir.mkdir Mark Hubbart wrote in message news:<1DE91023-A86D-11D8-AE47-000502FDD5CC@mac.com>... > On May 17, 2004, at 6:38 PM, paul vudmaska wrote: > > > I'm attempting to make a script that creates directories on a bsd > > server. > > > > #needs write privs to the server(for uploading from web) > > /upload > > #just write to owner > > /htm > > > > For the first, i'm using > > owner - all privs = 07 > > group - read,write = 6 > > other - read = 4 > > > > Dir.mkdir('upload', 0764) > > Which, when looking at with ls -al > > shows > > drwxr--r-- > > all privs to owner, read to group and nothing to other > > > > This seems to work ok for files, just not dirs. > > > > What mask do i need to allow the server to write to dirs?? > > Is your umask causing the problem? I know mine is set by default to > 0022, so it would mask off the group/world write bits. > > "%04o" % File.umask > ==>"0022" > File.umask 0 > ==>18 > "%04o" % File.umask > ==>"0000" > > HTH, > --Mark Mucho, mucho, thanks Mark, using File.umask 0 worked. Now i need to figure out why. :P, thanks again.