[GRASS-dev] GRASS resets group access rights
Maciej Sieczka
tutey at o2.pl
Sun Jul 20 11:43:06 EDT 2008
When editing vector maps, GRASS changes permissions of 3 existing files
- topo, cidx and the dbf file, from "-rw-rw----" to "-rw-r--r--", which
means that the group members cannot edit the map anymore. Example
Original data with access rights set so that group members can edit the
data:
$ ls -lr dbf/pokrycie_przyborow_u65_10k.dbf
vector/pokrycie_przyborow_u65_10k
-rw-rw---- 1 user1 users-grass 466 2008-07-02 19:07
dbf/pokrycie_przyborow_u65_10k.dbf
vector/pokrycie_przyborow_u65_10k:
razem 140
-rw-rw---- 1 user1 users-grass 1986 2008-07-02 19:07 topo
-rw-rw---- 1 user1 users-grass 3195 2008-07-02 19:07 hist
-rw-rw---- 1 user1 users-grass 176 2008-07-02 19:07 head
-rw-rw---- 1 user1 users-grass 75 2008-07-02 19:07 dbln
-rw-rw---- 1 user1 users-grass 116326 2008-07-02 19:07 coor
-rw-rw---- 1 user1 users-grass 369 2008-07-02 19:07 cidx
Now edit the data as user2 and see the group write rights are removed:
$ ls -lr vector/pokrycie_przyborow_u65_10k
dbf/pokrycie_przyborow_u65_10k.dbf
-rw-r--r-- 1 user2 users-grass 375 2008-07-02 19:14
dbf/pokrycie_przyborow_u65_10k.dbf
vector/pokrycie_przyborow_u65_10k:
razem 140
-rw-r--r-- 1 user2 users-grass 1949 2008-07-02 19:14 topo
-rw-rw---- 1 user1 users-grass 3402 2008-07-02 19:13 hist
-rw-rw---- 1 user1 users-grass 176 2008-07-02 19:14 head
-rw-rw---- 1 user1 users-grass 75 2008-07-02 19:14 dbln
-rw-rw---- 1 user1 users-grass 116326 2008-07-02 19:14 coor
-rw-r--r-- 1 user2 users-grass 349 2008-07-02 19:14 cidx
Other programs don't seem to be doing this, no matter what the intial
umask is. I have tried with a simple text file:
$ umask
0022
$ ls -l file
-rw-rw---- 1 user1 users-grass 0 lip 11 14:16 file
$ mcedit file
$ ls -l file
-rw-rw---- 1 user1 users-grass 11 lip 11 14:18 file
$ su user2
$ mcedit file (edit the file an save)
$ ls -l file
-rw-rw---- 1 user1 users-grass 11 lip 11 14:19 file
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?
Maciek
--
Maciej Sieczka
www.sieczka.org
More information about the grass-dev
mailing list