jonathan wrote:
>
> guess I should have given an example. I have a cron job that backups a
> data directory and the tar file has the following permissions
> -rw-r--r-- and I would like to drop the 'other' read. I could just
> issue a chmod, but I would have to do this for every cron job, I just
> figured I could change the umask and that would take care of all.
In your cron entry just add 'umask NNN' before your script executes:
* * * * * umask '777'; backup_script_here
>
> Wandered Inn wrote:
> >
> > jonathan wrote:
> > >
> > > Hello all,
> > >
> > > I want to make my home systems so that all files created have no rwx for
> > > the "other" group. I have found umask options in a couple of places.
> > > Where all do I need to make this change? My wife and I are in a
> > > specific group, so I don't want "other" to have any permissions. I have
> > > a cable modem and am a little paranoid. I am using SuSE6.4. TIA
> >
> > Based on previous UNIX implementations, you could put a call to umask in
> > the /etc/profile script to force these settings on login. I'm not sure
> > that Linux always follows suite here, but my current experiences
> > indicate it does.
> >
> > --
> > Until later: Geoffrey ">esoteric@denali.atlnet.com
> >
> > Microsoft != Innovation
> > --
> > To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
--
Until later: Geoffrey                ">esoteric@denali.atlnet.com
Microsoft != Innovation
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.