Hi,
a user reported that, when installing GRASS with
make install
some permissions are wrong.
He compilied as "root" and installed (make install).
The permissions for
/opt/grass5/tcltkgrass/script/gis_set.tcl
/opt/grass5/bin/tcltkgrass
were not right for the normal users. As I am installing
GRASS as normal user, I cannot verify this.
Does anyone know about this problem? Do we have
to fix a missing "chmod"?
Thanks,
Markus
Markus Neteler wrote:
Hi,
a user reported that, when installing GRASS with
make install
some permissions are wrong.
He compilied as "root" and installed (make install).
The permissions for
/opt/grass5/tcltkgrass/script/gis_set.tcl
/opt/grass5/bin/tcltkgrass
were not right for the normal users. As I am installing
GRASS as normal user, I cannot verify this.
Does anyone know about this problem? Do we have
to fix a missing "chmod"?
Markus, are you talking here about what I have complained about or is
this
somebody else? We had exactly this problem. Nviz and tcltk does not run,
you have to change the permissions
Helena
Thanks,
Markus
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5
On Wed, Jan 09, 2002 at 12:48:45PM -0500, Helena Mitasova wrote:
Markus Neteler wrote:
> Hi,
>
> a user reported that, when installing GRASS with
> make install
> some permissions are wrong.
>
> He compilied as "root" and installed (make install).
> The permissions for
> /opt/grass5/tcltkgrass/script/gis_set.tcl
> /opt/grass5/bin/tcltkgrass
>
> were not right for the normal users. As I am installing
> GRASS as normal user, I cannot verify this.
>
> Does anyone know about this problem? Do we have
> to fix a missing "chmod"?
Markus, are you talking here about what I have complained about or is
this
somebody else? We had exactly this problem. Nviz and tcltk does not run,
you have to change the permissions
Helena
It seems to be exactly that problem. Anyone else ? 
Markus
Markus Neteler wrote:
a user reported that, when installing GRASS with
make install
some permissions are wrong.
He compilied as "root" and installed (make install).
The permissions for
/opt/grass5/tcltkgrass/script/gis_set.tcl
/opt/grass5/bin/tcltkgrass
were not right for the normal users. As I am installing
GRASS as normal user, I cannot verify this.
Does anyone know about this problem? Do we have
to fix a missing "chmod"?
I don't see any problem ("make" as user, "make install" as root).
However, note that "make install" mostly just copies the files to the
installation directory. The installed files will have the same
ownership and permissions as the versions in dist.<platform>.
For files which aren't generated by compilation (e.g. scripts), they
will probably have the ownership and permissions resulting from
installation (i.e. "tar x" or "cvs checkout/update").
If the permissions are wrong, the first thing for the user to check is
his (i.e. root's) umask setting.
I don't see any reliable solution until we have a conventional
"make install" procedure (i.e. a recursive "make install", with the
individual programs using "install" on the appropriate files). And
that's too significant a change for 5.0, IMHO.
--
Glynn Clements <glynn.clements@virgin.net>
Helena Mitasova wrote:
> a user reported that, when installing GRASS with
> make install
> some permissions are wrong.
>
> He compilied as "root" and installed (make install).
> The permissions for
> /opt/grass5/tcltkgrass/script/gis_set.tcl
> /opt/grass5/bin/tcltkgrass
>
> were not right for the normal users. As I am installing
> GRASS as normal user, I cannot verify this.
>
> Does anyone know about this problem? Do we have
> to fix a missing "chmod"?
Markus, are you talking here about what I have complained about or is this
somebody else? We had exactly this problem. Nviz and tcltk does not run,
you have to change the permissions
From what, to what?
--
Glynn Clements <glynn.clements@virgin.net>
Glynn Clements wrote:
> a user reported that, when installing GRASS with
> make install
> some permissions are wrong.
>
> He compilied as "root" and installed (make install).
> The permissions for
> /opt/grass5/tcltkgrass/script/gis_set.tcl
> /opt/grass5/bin/tcltkgrass
>
> were not right for the normal users. As I am installing
> GRASS as normal user, I cannot verify this.
>
> Does anyone know about this problem? Do we have
> to fix a missing "chmod"?
I don't see any problem ("make" as user, "make install" as root).
However, note that "make install" mostly just copies the files to the
installation directory. The installed files will have the same
ownership and permissions as the versions in dist.<platform>.
For files which aren't generated by compilation (e.g. scripts), they
will probably have the ownership and permissions resulting from
installation (i.e. "tar x" or "cvs checkout/update").
Well, the build procedure for tcltkgrass is:
make[1]: Entering directory `<SRC>/tcltkgrass'
if [ ! -d <DST>/tcltkgrass ]; then mkdir <DST>/tcltkgrass; fi
rm -f <DST>/bin/tcltkgrass
tar cf - docs/Pro* docs/HIS* main/* module/* script/* | (cd <DST>/tcltkgrass; tar xf -)
cp main/gis_set.tcl <DST>/tcltkgrass/script
cp tcltkgrass <DST>/bin/tcltkgrass
chmod ugo+x <DST>/tcltkgrass/main/tksys.tcl
chmod ugo+x <DST>/bin/tcltkgrass
chmod -R u+w <DST>/tcltkgrass
make[1]: Leaving directory `<SRC>/tcltkgrass'
where <SRC> is the GRASS "src" directory and <DST> is the
dist.<platform> directory.
IOW, "make" simply copies everything into the staging directory, from
where "make install" will copy it to the final $GISBASE directory. So,
the ownership and permissions will be the same as the source files,
minus any permission bits which are cleared by way of the umask
setting.
It would probably suffice to add "chmod -R ugo+rX ${INST_DIR}" to the
end of the "install" target.
--
Glynn Clements <glynn.clements@virgin.net>
On Wed, Jan 09, 2002 at 07:15:37PM +0000, Glynn Clements wrote:
Glynn Clements wrote:
> > a user reported that, when installing GRASS with
> > make install
> > some permissions are wrong.
> >
> > He compilied as "root" and installed (make install).
> > The permissions for
> > /opt/grass5/tcltkgrass/script/gis_set.tcl
> > /opt/grass5/bin/tcltkgrass
> >
> > were not right for the normal users. As I am installing
> > GRASS as normal user, I cannot verify this.
> >
> > Does anyone know about this problem? Do we have
> > to fix a missing "chmod"?
>
> I don't see any problem ("make" as user, "make install" as root).
> However, note that "make install" mostly just copies the files to the
> installation directory. The installed files will have the same
> ownership and permissions as the versions in dist.<platform>.
>
> For files which aren't generated by compilation (e.g. scripts), they
> will probably have the ownership and permissions resulting from
> installation (i.e. "tar x" or "cvs checkout/update").
Well, the build procedure for tcltkgrass is:
make[1]: Entering directory `<SRC>/tcltkgrass'
if [ ! -d <DST>/tcltkgrass ]; then mkdir <DST>/tcltkgrass; fi
rm -f <DST>/bin/tcltkgrass
tar cf - docs/Pro* docs/HIS* main/* module/* script/* | (cd <DST>/tcltkgrass; tar xf -)
cp main/gis_set.tcl <DST>/tcltkgrass/script
cp tcltkgrass <DST>/bin/tcltkgrass
chmod ugo+x <DST>/tcltkgrass/main/tksys.tcl
chmod ugo+x <DST>/bin/tcltkgrass
chmod -R u+w <DST>/tcltkgrass
make[1]: Leaving directory `<SRC>/tcltkgrass'
where <SRC> is the GRASS "src" directory and <DST> is the
dist.<platform> directory.
IOW, "make" simply copies everything into the staging directory, from
where "make install" will copy it to the final $GISBASE directory. So,
the ownership and permissions will be the same as the source files,
minus any permission bits which are cleared by way of the umask
setting.
It would probably suffice to add "chmod -R ugo+rX ${INST_DIR}" to the
end of the "install" target.
So,
now "my" user sent me the permissions:
before:
-rw-r----- 1 root root /opt/grass5/tcltkgrass/script/gis_set.tcl
-rwxr-x--x 1 root root /opt/grass5/bin/tcltkgrass
after:
-rw-r----- 1 root users /opt/grass5/tcltkgrass/script/gis_set.tcl
-rwxr-x--x 1 root users /opt/grass5/bin/tcltkgrass
Additionally all files in /opt/grass5/tcltkgrass/script
except gis_set.tcl got the wrong owner.
As this seems to happen on several machines, we should consider to
modify the install script.
Markus
Markus Neteler wrote:
now "my" user sent me the permissions:
before:
-rw-r----- 1 root root /opt/grass5/tcltkgrass/script/gis_set.tcl
-rwxr-x--x 1 root root /opt/grass5/bin/tcltkgrass
after:
-rw-r----- 1 root users /opt/grass5/tcltkgrass/script/gis_set.tcl
-rwxr-x--x 1 root users /opt/grass5/bin/tcltkgrass
My first thought would be that his umask was set to 027 when he
installed the source ("tar x", "cvs checkout/update"). tcltkgrass gets
execute permission added during the "compilation" phase, but a script
also needs read permission to work.
Additionally all files in /opt/grass5/tcltkgrass/script
except gis_set.tcl got the wrong owner.
Ownership isn't changed by the install. "tar x" will use the ownership
from the tar file when run as root.
As this seems to happen on several machines, we should consider to
modify the install script.
It may suffice to add:
chmod -R ugo+rX ${INST_DIR}
chown -R root ${INST_DIR} >& /dev/null
to the "install" target (the second command will fail if not run by
root).
--
Glynn Clements <glynn.clements@virgin.net>