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

    Unable to move /images/dev - How to change the default folder creator?

    FOG Problems
    2
    3
    1873
    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.
    • B
      bardicverse last edited by

      I’ve scoured the internet and have tried many solutions to my “unable to move /images/dev/(macaddress) to /images/(image folder)” issue, to no avail.
      After poking and prodding, I stumbled across something. The new image folder in /images/dev has a different owner when the folder is created. These temporary folders are created by “root”. When I chowned -R the folder to the user “fog”, the “unable to move” issue went away.

      Yet, every time I upload a new image, “root” owns the file in in /images/dev, which causes the issue all over again.

      How do I assign the default creator to “fog”? I’m not sure if this is in one of the fog installation configs, or if its a general linux thing. Fog version 0.32 and Ubuntu 10.04 LTS.

      1 Reply Last reply Reply Quote 0
      • B
        bardicverse last edited by

        yup tried that too, doesnt fix the issue. The problem is the workflow - client computer set to upload a new image - folder is created under /images/dev, then is transported to its final spot /images/(image name) . This normally works flawlessly. Yet, it seems that because “root” is the owner of the temporary folder, it wont allow “fog” to copy it and then remove it from its temporary spot. Since this process in fog is consecutive and unattended, there’s no time to pause and chmod or chown the folder.

        Basically I need to make “fog” be the users who creates the temporary image folder. Yet, right now, its “root” who has that honor. I need to figure out where I can assign “fog” for the folder creation process.

        1 Reply Last reply Reply Quote 0
        • Jaymes Driver
          Jaymes Driver Developer last edited by

          You can try changing the read write values for the folder rather than the owner.

          I’ll probably catch flak for this but try sudo chmod 0777 /images/dev

          That way anyone can write to the dev folder.

          WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

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

          188
          Online

          10.4k
          Users

          16.4k
          Topics

          150.5k
          Posts

          Copyright © 2012-2023 FOG Project