• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Problems with permissions/ownership og image folder

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    7
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pmonstad
      last edited by

      I had never this problem when I used the default location of the image folder (/images). When I moved it into the /home folder I get problems as the folders made inside dev folder is set to root:root

      My /etc/exports file is correct, I thing:
      /home/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
      /home/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)

      Servers has been restarted.

      The folder inside the dev folder is never copied into /home/images as the ownership always seems to be root:root even if I manually set this to chown -R fog:fog /home/images and chmod -R 777 /home/images

      Any idea about this problem? I am running svn 2145 on CentOS 5.7

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        The /home/images folder is typically setup for root:root but has chmod -R 777 privileges, which means anybody can use and write to the folder.

        Did you make a link to /home/images?

        I don’t fully understand the issue then. If you’re reinstalling the system, then chances are it’s updating the privileges during install time to ensure things are fully functional.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • P
          pmonstad
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • P
            pmonstad
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • P
              pmonstad
              last edited by

              Hi Tom! I am quite stuck here as there are problems with permissions. Whenever I make an upload (I deleted the old image/files from gui). Then I recreate the image and start an upload. Inside the dev folder I now find these files:
              -rw-r–r-- 1 root root 1 aug 8 08:45 d1.fixed_size_partitions
              -rw-r–r-- 1 root root 15 aug 8 08:45 d1.original.fstypes
              -rw-r–r-- 1 root root 259 aug 8 08:45 d1.original.partitions
              -rw-r–r-- 1 root root 0 aug 8 08:45 d1.original.swapuuids
              -rw-r–r-- 1 root root 3571496504 aug 8 08:57 sys.img.000

              As you can see the files are owned by root and the permissions will not make it possible to move the folder/files outside the dev folder after upload completes. Right? I have to move them manually and change permissions. Could FOG set correct permissions or is it impossible to have the /images folder inside my home folder?

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                It’s possible to have /images in /home.

                Did you copy the folders from /images or move them?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • P
                  pmonstad
                  last edited by

                  Hi Tom! I started with a clean installation so nothing is moved or copied from /images. I even set the permissions/ownership correct in /home/images but they are back to wrong settings each time I do an upload.

                  During an update (svn) the /images are recreated again. I have not checked lately if the /etc/export file is kept unchanged (it was correct now with references to /home/images).

                  Sammary: The ownership is changed to root:root each time I do an upload

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  198

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project