[GRASS-user] Re: [Qgis-user] GRASS permission issue

Hi,

(It was a post on the QGIS-user mailing list only)

2010/3/24 Jeremy G <jeremy.grx@gmail.com>

It looks like I’m not authorised to work on any MAPSET I created (through the QGIS plugin).

Here are a couple of screenshots of the issue through grass without qgis : the first one (1) is the terminal window, the second one (2) is the “introduction window” of Grass. I can’t create neither open any Mapset…

Where exactly is the /media/Docs/geodata directory located on your machine/network?
You have to be the owner of the directory containing the Location and Mapset.

···
-- 
Micha Silver
[http://www.surfaces.co.il/](http://www.surfaces.co.il/)
Arava Development Co.  +972-52-3665918

Micha,

2010/3/28 Micha Silver <micha@arava.co.il>

Where exactly is the /media/Docs/geodata directory located on your machine/network?
You have to be the owner of the directory containing the Location and Mapset.

/media/Docs is a automatically mounted partition every time i startup the computer. Do you know how I can check if I’m fully authorized on it ? I don’t remember any similar issue with it but it could be related.

Probably checking:
ls -al /media/Docs
will give you an idea. What OS are you on? How is the partition mounted (i.e. what’s in the /etc/fstab)? Is it a samba/cifs share or nfs?
GRASS, unlike other apps, still checks if your are the owner of the mapset.

···
-- 
Micha Silver
[http://www.surfaces.co.il/](http://www.surfaces.co.il/)
Arava Development Co.  +972-52-3665918

2010/3/28 Micha Silver <micha@arava.co.il>

Probably checking:
ls -al /media/Docs

Here is the result (I didn’t paste the whole directory information) :

jeremy@jeremy:~$ ls -al /media/Docs
drwxrwx— 1 root plugdev 8192 2010-03-25 16:34 .
drwxr-xr-x 9 root root 4096 2010-03-28 12:37 …
drwxrwx— 1 root plugdev 4096 2010-03-11 21:33 geodata

OK, the owner of geodata is root (I assume that’s not your username).

After verification I’m listed on the group plugdev.

What OS are you on?

Running Ubuntu 9.10 with GRASS 6.4.0RC5.

How is the partition mounted (i.e. what’s in the /etc/fstab)? Is it a samba/cifs share or nfs?

This is the line about /media/Docs in /etc/fstab :

UUID=16A82CDCA82CBBDD /media/Docs ntfs defaults,nls=utf8,umask=007,gid=46 0 0

Try adding here uid= as an additional option. Something like:
UUID=16A82CDCA82CBBDD /media/Docs ntfs defaults,nls=utf8,umask=007,gid=46,uid=jeremy 0 0

Then do a:
sudo mount -o remount /media/Docs
Now check ls -al /media/Docs/geodata/TESTS/grass
If you appear as the owner instead of root, then GRASS should startup OK.

If you want to try this out “on the fly” without changing your fstab, then you can:
First check which disk (/dev/hdx or /dev/sdx where x might be 1,2,3…) is your ntfs partition with sudo fdisk -l, then…
sudo umount /media/Docs
sudo mount -o defaults,umask=0007,gid=46,uid=jeremy /dev/hdx /media/Docs
and check as above.

Let us know how it goes,

···
-- 
Micha Silver
[http://www.surfaces.co.il/](http://www.surfaces.co.il/)
Arava Development Co.  +972-52-3665918