Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1135 closed bug (worksforme)

GRASS Edit modifies files access permissions

Reported by: msieczka Owned by: timlinux
Priority: critical: causes crash or data corruption Milestone:
Component: GRASS Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Linux
Platform Version: Awaiting user input: no

Description

See what are the initial rights for the files that a given GRASS vector layer is composed of:

$ ls -lr dbf/pokrycie_przyborow_u65_10k.dbf vector/pokrycie_przyborow_u65_10k
-rw-rw---- 1 ms      users-grass  466 2008-07-02 19:07 dbf/pokrycie_przyborow_u65_10k.dbf

vector/pokrycie_przyborow_u65_10k:
razem 140
-rw-rw---- 1 ms      users-grass   1986 2008-07-02 19:07 topo
-rw-rw---- 1 andrzej users-grass   3195 2008-07-02 19:07 hist
-rw-rw---- 1 andrzej users-grass    176 2008-07-02 19:07 head
-rw-rw---- 1 andrzej users-grass     75 2008-07-02 19:07 dbln
-rw-rw---- 1 andrzej users-grass 116326 2008-07-02 19:07 coor
-rw-rw---- 1 ms      users-grass    369 2008-07-02 19:07 cidx

As can be seen both group and owner can edit data. Now I open the vector in QGIS GRASS Edit, modify a feture and quit. QGIS modifies file access rights for the group, preventing other group members from being able to edit the data from now on:

$ ls -lr vector/pokrycie_przyborow_u65_10k dbf/pokrycie_przyborow_u65_10k.dbf
-rw-r--r-- 1 ms      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 ms      users-grass   1949 2008-07-02 19:14 topo
-rw-rw---- 1 andrzej users-grass   3402 2008-07-02 19:13 hist
-rw-rw---- 1 andrzej users-grass    176 2008-07-02 19:14 head
-rw-rw---- 1 andrzej users-grass     75 2008-07-02 19:14 dbln
-rw-rw---- 1 andrzej users-grass 116326 2008-07-02 19:14 coor
-rw-r--r-- 1 ms      users-grass    349 2008-07-02 19:14 cidx

Please don't!

Change History (4)

comment:1 by msieczka, 16 years ago

Summary: GRASS Edit modifies files access permitionsGRASS Edit modifies files access permissions

comment:2 by timlinux, 16 years ago

Owner: changed from nobody to timlinux
Status: newassigned

Yes thats not good lets try to fix that.

comment:3 by jef, 16 years ago

Resolution: worksforme
Status: assignedclosed

GRASS behaves the same. Setting umask helps.

See thread http://lists.osgeo.org/pipermail/qgis-developer/2008-July/004277.html ff for more details.

comment:4 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.