Menu

Bad file permissions in gnat-conf-1.1.0-r2

2006-01-24
2012-09-15
  • Björn Persson

    Björn Persson - 2006-01-24

    After installing gnat-conf-1.1.0-r2.noarch.rpm I can't access the files in /opt/gnat/bin as an unprivileged user. Trying a directory listing I only see this:

    [bjorn@groucho ~]$ ls -la /opt/gnat/bin/
    totalt 0
    ?--------- ? ? ? ? ? .
    ?--------- ? ? ? ? ? ..
    ?--------- ? ? ? ? ? Declare_ASIS.bash
    ?--------- ? ? ? ? ? Declare_Booch.bash
    ?--------- ? ? ? ? ? Declare_GNAT.bash
    ?--------- ? ? ? ? ? Declare_GtkAda.bash
    ?--------- ? ? ? ? ? Declare_XMLAda.bash
    ?--------- ? ? ? ? ? Set_ASIS.bash
    ?--------- ? ? ? ? ? Set_Booch.bash
    ?--------- ? ? ? ? ? Set_GNAT.bash
    ?--------- ? ? ? ? ? Set_GtkAda.bash
    ?--------- ? ? ? ? ? Setup_GNAT.bash
    ?--------- ? ? ? ? ? Set_XMLAda.bash
    ?--------- ? ? ? ? ? Show_ASIS.bash
    ?--------- ? ? ? ? ? Show_Booch.bash
    ?--------- ? ? ? ? ? Show_GNAT.bash
    ?--------- ? ? ? ? ? Show_GtkAda.bash
    ?--------- ? ? ? ? ? Show_XMLAda.bash

    As root I can see why: The execute (access) bit for "others" isn't set on the directory, and not on the files therein either:

    [root@groucho ~]# ls -la /opt/gnat/bin/
    totalt 76
    drwxrwxr-- 2 root root 4096 25 jan 00.08 .
    drwxr-xr-x 3 root root 4096 25 jan 00.08 ..
    -rwxrwxr-- 1 root root 1863 22 jan 19.21 Declare_ASIS.bash
    -rwxrwxr-- 1 root root 1935 22 jan 19.21 Declare_Booch.bash
    -rwxrwxr-- 1 root root 3709 22 jan 19.21 Declare_GNAT.bash
    -rwxrwxr-- 1 root root 1944 22 jan 19.21 Declare_GtkAda.bash
    -rwxrwxr-- 1 root root 1944 22 jan 19.21 Declare_XMLAda.bash
    -rwxrwxr-- 1 root root 2205 22 jan 19.21 Set_ASIS.bash
    -rwxrwxr-- 1 root root 2328 22 jan 19.21 Set_Booch.bash
    -rwxrwxr-- 1 root root 2163 22 jan 19.21 Set_GNAT.bash
    -rwxrwxr-- 1 root root 2197 22 jan 19.21 Set_GtkAda.bash
    -rwxrwxr-- 1 root root 4317 22 jan 19.21 Setup_GNAT.bash
    -rwxrwxr-- 1 root root 2126 22 jan 19.21 Set_XMLAda.bash
    -rwxrwxr-- 1 root root 1965 22 jan 19.21 Show_ASIS.bash
    -rwxrwxr-- 1 root root 2070 22 jan 19.21 Show_Booch.bash
    -rwxrwxr-- 1 root root 1991 22 jan 19.21 Show_GNAT.bash
    -rwxrwxr-- 1 root root 2058 22 jan 19.21 Show_GtkAda.bash
    -rwxrwxr-- 1 root root 2058 22 jan 19.21 Show_XMLAda.bash

    If the intention is that anyone be able to run these programs, then the execute bit should be set on both the programs and the directory. If they shouldn't be readable, I would suggest clearing the read bit for "others". If anyone should be able to read them but not execute them, the execute (access) bit on the directory needs to be set.

    During installation I also got warnings that the user "gnat" and the group "gnat" didn't exist.

     
    • Martin Krischik

      Martin Krischik - 2006-01-25

      The new version shoud fix both problems.

      BTW: Do you want to join the Project.

      Martin

       
      • Björn Persson

        Björn Persson - 2006-01-28

        I assume members can upload the packages they build, so yes, I want to join if I get the build process to work.

         
        • Martin Krischik

          Martin Krischik - 2006-01-29

          Not only packages - you have write access to the cvs archive which might be helpfull while creating the packages.

          Martin

           
    • Martin Krischik

      Martin Krischik - 2006-01-25

      I have also updated the user guide to gnat-conf:

      http://gnuada.sourceforge.net/pmwiki.php/Packages/GNATConfig

      Martin

       

Log in to post a comment.