[TriLUG] Re: dumb sh*t question

Lance A. Brown lance at bearcircle.net
Thu Feb 16 14:22:45 EST 2006


Steve Hoffman wrote:
> I need a way to lock the umask on a particular directory to be 754 for all
> files inside it so that when rsync (using the -p flag) syncs the two and
> dreamweaver has already hosed the  permissions...they dont' get changed on
> production...there's nothing worse then an irate customer calling and
> complaining to me that A) our web guy is an idiot, and B) his website won't
> display images and looks like a$$.

I would have your rsync script run a couple find commands to locate all
directories and files and force their permissions to the correct settings:

find /wherever -type d | xargs chmod 755
find /wherever -type f | xargs chmod 664

with appropriate values for 'wherever' and the permission bits.

If the web designer is accessing via samba, you can do things with
smb.conf to force modes when creating directories and files.

--[Lance]

-- 
 Celebrate The Circle   http://www.celebratethecircle.org/
 Carolina Spirit Quest  http://www.carolinaspiritquest.org/
 My LiveJournal  http://www.livejournal.com/users/labrown/
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer



More information about the TriLUG mailing list