[GRASS-dev] Directory security/permission issue
Hamish
hamish_nospam at yahoo.com
Thu Jul 12 20:59:58 EDT 2007
Glynn Clements wrote:
> Also, lib/init/init.sh had two occurrences of:
>
> echo "umask 022" >> "$bashrc"
>
> which I have removed.
any g.access repercussions to this? (beyond the obvious)
> The remaining occurrence:
>
> tmp=/tmp/grass6-$USER-$GIS_LOCK
> (umask 077 && mkdir "$tmp") || {
>
> has been retained, although I'm not sure why this doesn't just use
> "mkdir -m 007" rather than (temporarily) setting the umask.
my inspiration for that:
http://www.linuxsecurity.com/content/view/115462/151/#mozTocId648982
Is 'mkdir -m' portable?
Hamish
More information about the grass-dev
mailing list