[GRASS-dev] GRASS resets group access rights

Maciej Sieczka tutey at o2.pl
Sun Jul 20 13:04:42 EDT 2008


Maciej Sieczka pisze:
> Glynn Clements pisze:
>> Maciej Sieczka wrote:

>>> As you can see although 2 different users (members of the same
>>> group) edit the file, permissions were not changed. Yet in GRASS
>>> they are. Is this OK?

>> Not really. How to handle this situation will need to be resolved if 
>> and when we actually decide to remove the restriction that GRASS 
>> doesn't allow you to modify other users' files. Until then, the goal 
>> should be to determine why that restriction isn't being honoured, and
>>  how to fix it.

> For now I put 'umask 7' into my grass64 executable, which forces access
> rights I desire for files newly created by GRASS.

And, forgot to say, I apply a following patch to allow non-owners to 
access mapsets, per your instructions some months ago:

--- mapset_msc.c	2008-04-05 11:47:54.000000000 +0200
+++ mapset_msc.c.patched	2008-04-05 11:56:40.000000000 +0200
@@ -108,9 +108,9 @@

  #ifndef __MINGW32__
      if (info.st_uid != getuid())
-	    return 0;
+	    return 1;
      if (info.st_uid != geteuid())
-	    return 0;
+	    return 1;
  #endif

      return 1;
@@ -141,9 +141,9 @@

  #ifndef __MINGW32__
      if (info.st_uid != getuid())
-	    return 0;
+	    return 1;
      if (info.st_uid != geteuid())
-	    return 0;
+	    return 1;
  #endif

      return 1;

Maciek

-- 
Maciej Sieczka
www.sieczka.org


More information about the grass-dev mailing list