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

    Problem with ownership when /images folder is moved

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    6
    1.7k
    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 have moved the folder /images to /home/images. The export file is updated and everything works OK except one thing: The ownership of uploaded images are wrong. They changes to root:root

      I have done chmod -R 777 /home/images and chown -R fog:fog /home/images but every new folder inside /home/images is then changed to root:root. I have to manually change this every time an upload is done.

      I run CentOS 5.7 and 1.1.2 of FOG.

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        why did you move it?

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

          [quote=“Junkhacker, post: 31935, member: 21583”]why did you move it?[/quote]
          Because my disk is full and my /home directory is located in a large storage group.

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

            just a thought: could there be some hard coded stuff here referring to /images instead of the true path where the images are stored?

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

              If the folder’s moved or still on /images, it doesn’t matter.

              The upload tasks move the folder from images/dev to images.

              The permissions shouldn’t matter that much because the entirety of the folder is in:
              [code]chmod -R 777 imagespath[/code]

              So whether they’re owned by fog:root or joe:schmoe, 777 means anybody can access and use those files.

              Are you having problems or is it just a “permissions” noticed issue?

              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

                The files is not moved out of the dev folder and into its own folder. This was not a problem before I moved the /images folder into the /home folder. I have to do some more research tomorrow.

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

                292

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project